diff --git a/src/vol/partition.c b/src/vol/partition.c index 9eea9f577d..02764d3009 100644 --- a/src/vol/partition.c +++ b/src/vol/partition.c @@ -460,8 +460,15 @@ VAttachPartitions(void) } while (!getmntent(mntfile, &mnt)) { /* Ignore non ufs or non read/write partitions */ - if ((strcmp(mnt.mnt_fstype, "ufs") != 0) - || (strncmp(mnt.mnt_mntopts, "ro,ignore", 9) == 0)) + /* but allow zfs too if we're in the NAMEI environment */ + if ( +#ifdef AFS_NAMEI_ENV + ((!strcmp(mnt.mnt_fstype, "ufs") && + !strcmp(mnt.mnt_fstype, "zfs"))) +#else + (strcmp(mnt.mnt_fstype, "ufs") != 0) +#endif + || (strncmp(mnt.mnt_mntopts, "ro,ignore", 9) == 0)) continue; /* If we're going to always attach this partition, do it later. */