Whamcloud - gitweb
b=24432 mount_lustre.c/parse_options() fix
authorElena Gryaznova <elena.gryaznova@oracle.com>
Thu, 17 Feb 2011 14:17:43 +0000 (17:17 +0300)
committerTerry Rutledge <terry.rutledge@oracle.com>
Thu, 17 Feb 2011 16:39:22 +0000 (08:39 -0800)
o=Chris.Horn <hornc@cray.com>
i=Elena.Gryaznova

to differentiate between 'force*' and 'force'

lustre/utils/mount_lustre.c

index 79c1518..7b728c3 100644 (file)
@@ -293,7 +293,7 @@ int parse_options(char *orig_options, int *flagp)
                                 retry = MAX_RETRIES;
                         else if (retry < 0)
                                 retry = 0;
-                } else if (strncmp(opt, "force", 5) == 0) {
+                } else if (strcmp(opt, "force") == 0) {
                         //XXX special check for 'force' option
                         ++force;
                         printf("force: %d\n", force);