]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fix-partition-check-20070510
authorFrank Cusack <fcusack@fcusack.com>
Thu, 10 May 2007 23:41:32 +0000 (23:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 10 May 2007 23:41:32 +0000 (23:41 +0000)
oops

src/vol/partition.c

index 02764d3009331e7e5b0e457353a3058096b76c87..85a65779b8225393df3c340e42b52360a00d51ba 100644 (file)
@@ -463,14 +463,14 @@ VAttachPartitions(void)
        /* 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")))
+           ((!(strcmp(mnt.mnt_fstype, "ufs") &&
+               strcmp(mnt.mnt_fstype, "zfs"))))
 #else
-       (strcmp(mnt.mnt_fstype, "ufs") != 0)
+           (strcmp(mnt.mnt_fstype, "ufs") != 0)
 #endif
-       || (strncmp(mnt.mnt_mntopts, "ro,ignore", 9) == 0))
+           || (strncmp(mnt.mnt_mntopts, "ro,ignore", 9) == 0))
            continue;
-
+       
        /* If we're going to always attach this partition, do it later. */
        if (VIsAlwaysAttach(mnt.mnt_mountp))
            continue;