From: zhilong Date: Fri, 25 Mar 2016 02:22:03 +0000 (+0800) Subject: mdadm:Add '--nodes' option in GROW mode X-Git-Tag: mdadm-4.0~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6447a1270547307651b35b1a3828f3ab19cbf191;p=thirdparty%2Fmdadm.git mdadm:Add '--nodes' option in GROW mode mdadm:add '--nodes' option in GROW mode, because 'Cluster nodes' is set 4 by default if the nodes parameter is not specified when switch bitmap from none to clustered. Signed-off-by: Zhilong Liu Signed-off-by: Jes Sorensen --- diff --git a/mdadm.c b/mdadm.c index d2afcb2b..58ac32a0 100644 --- a/mdadm.c +++ b/mdadm.c @@ -589,6 +589,7 @@ int main(int argc, char *argv[]) ident.raid_disks = s.raiddisks; continue; case O(ASSEMBLE, Nodes): + case O(GROW, Nodes): case O(CREATE, Nodes): c.nodes = parse_num(optarg); if (c.nodes <= 0) {