summaryrefslogtreecommitdiffstats
path: root/mdadm.c
diff options
context:
space:
mode:
authorzhilong <zlliu@suse.com>2016-03-25 03:22:03 +0100
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-03-29 17:41:26 +0200
commit6447a1270547307651b35b1a3828f3ab19cbf191 (patch)
tree1cf75ad492e153a55ae4710e5d4fd118816c4788 /mdadm.c
parentChange the option from NoUpdate to NodeNumUpdate (diff)
downloadmdadm-6447a1270547307651b35b1a3828f3ab19cbf191.tar.xz
mdadm-6447a1270547307651b35b1a3828f3ab19cbf191.zip
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 <zlliu@suse.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c1
1 files changed, 1 insertions, 0 deletions
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) {