From: Elena Gryaznova Date: Thu, 17 Feb 2011 14:17:43 +0000 (+0300) Subject: b=24432 mount_lustre.c/parse_options() fix X-Git-Tag: 1.8.5.55~12 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=daf085d6709a6c655b5d88c24db5a252c9a8874e;p=fs%2Flustre-release.git b=24432 mount_lustre.c/parse_options() fix o=Chris.Horn i=Elena.Gryaznova to differentiate between 'force*' and 'force' --- diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 79c1518..7b728c3 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -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);