]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
mdadm:check the nodes when operate clustered array
authorZhilong Liu <zlliu@suse.com>
Wed, 1 Mar 2017 10:42:33 +0000 (18:42 +0800)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Mon, 6 Mar 2017 21:28:21 +0000 (16:28 -0500)
commit9d67f6496c71efbc68b33aea663dbcc1597a0828
treec2d2ab60ea2ce7ab3ff49054b96086946d297bac
parente93bb91b12b5c8a799a04e314d376da38d007e9d
mdadm:check the nodes when operate clustered array

It doesn't make sense to write_bitmap with less than 2 nodes,
in order to avoid 'write_bitmap' received invalid nodes number,
it would be better to do checking nodes in getopt operations.

Signed-off-by: Zhilong Liu <zlliu@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
mdadm.c
super1.c