From: Oleg Drokin Date: Fri, 4 Mar 2011 16:15:41 +0000 (-0500) Subject: LU-111 Fix force options parsing X-Git-Tag: 2.0.59-llnl2-base~18 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=b53ec6e67dfeeb1eec1a29a67a0a139df381751c;hp=63256d846fcf7bf430699d89b76a9d91bc8ed93a LU-111 Fix force options parsing 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 --- diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index 2f30df9..464dca9 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -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);