Whamcloud - gitweb
LU-111 Fix force options parsing 97/297/2
authorOleg Drokin <green@whamcloud.com>
Fri, 4 Mar 2011 16:15:41 +0000 (11:15 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 4 Mar 2011 22:43:53 +0000 (17:43 -0500)
parse_options had incorrect check for force option that matched
all force options like force_over_16tb and as a result those did
not get propagated down.

Change-Id: I46d07a6d505acc9150e2655a63be55fb7ef6954d
Signed-off-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/mount_lustre.c

index 2f30df9..464dca9 100644 (file)
@@ -308,7 +308,7 @@ int parse_options(char *orig_options, int *flagp)
                                 retry = 0;
                 } else if (val && strncmp(arg, "mgssec", 6) == 0) {
                         append_option(options, opt);
-                } 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);