From b53ec6e67dfeeb1eec1a29a67a0a139df381751c Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Fri, 4 Mar 2011 11:15:41 -0500 Subject: [PATCH] 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 --- lustre/utils/mount_lustre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1