]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Fix regression when using 'grow' to add a bitmap.
authorNeilBrown <neilb@suse.de>
Tue, 15 Mar 2011 05:31:20 +0000 (16:31 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 15 Mar 2011 05:31:20 +0000 (16:31 +1100)
commit1d8862cf613d671bcfbb796ca023161d2b907402
treea8f2bb91a65a79b8ce585e5a33a81c49e2e8ed86
parent88b496c2697ed531ffecf2f8ced76f437297e5fe
Fix regression when using 'grow' to add a bitmap.

When we allowed a devlist to accompany some --grow modes - but not
--bitmap - we made --bitmap always fail, in stead of fail of a device
was given to add.
As 'devs_found' includes the md device, we need to  compare against
'1'.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.c