diff --git a/src/vol/vutil.c b/src/vol/vutil.c index bbd2ef0c84..404273afe8 100644 --- a/src/vol/vutil.c +++ b/src/vol/vutil.c @@ -217,7 +217,7 @@ VCreateVolume_r(Error * ec, char *partname, VolId volumeId, VolId parentId) (p->inodeType == VI_LINKTABLE) ? vol.parentId : vol.id, INODESPECIAL, p->inodeType, vol.parentId); if (!(VALID_INO(*(p->inode)))) { - if (errno == EEXIST) { + if (errno == EEXIST && (p->inodeType == VI_LINKTABLE)) { /* Increment the reference count instead. */ IHandle_t *lh; int code;