]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
super1: add more checks for NodeNumUpdate option
authorGuoqing Jiang <gqjiang@suse.com>
Wed, 11 May 2016 09:31:36 +0000 (17:31 +0800)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 12 May 2016 19:44:51 +0000 (15:44 -0400)
commit45a87c2f31335a759190dff663a881bc78ca5443
treee7e167f54bf53e977f717f3a7797562eb687905f
parent6ac963cef0178800ac6d1a1852bf857bd9be0817
super1: add more checks for NodeNumUpdate option

There are some cases which didn't need to check the space
is enough or not for NodeNumUpdate option.

1. for array which does not have clustered bitmap.
2. "--nodes" parameter is 0 (eg, add a disk to clustered raid).
3. if "--nodes" parameter is set to a smaller num than
   current bms->nodes.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
super1.c