]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Specify nodes number when updating cluster nodes
authorXiao Ni <xni@redhat.com>
Mon, 27 Jul 2020 01:14:20 +0000 (09:14 +0800)
committerJes Sorensen <jsorensen@fb.com>
Fri, 7 Aug 2020 13:46:03 +0000 (09:46 -0400)
commit138a9e9bbe2622eafc90c976b82f3d84895dbebd
tree9e908ab634b25c155b5d379aa6c9216cb6bb12e8
parent77b72fa828132a35c8b2e08d3fb07eea80b11895
Specify nodes number when updating cluster nodes

Now it allows updating cluster nodes without specify --nodes. It can write superblock
with zero nodes. It can break the current cluster. Add this check to avoid this problem.

v2: It needs check c.update first to avoid NULL pointer reference
v3: Wol points the typo error

Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
mdadm.c