]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Manage: fix test for 'is array failed'.
authorNeilBrown <neilb@suse.de>
Wed, 6 May 2015 05:03:50 +0000 (15:03 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 6 May 2015 05:03:50 +0000 (15:03 +1000)
commitd180d2aa2a1770af1ab8520d6362ba331400512f
tree1639eb277cc476c1e717b7d491689b9472de0d68
parent72a45777041901f37d187920d03462ee6d5e655f
Manage: fix test for 'is array failed'.

We 'active_disks' does not count spares, so if array is rebuilding,
this will not necessarily find all devices, so may report an array
as failed when it isn't.

Counting up to nr_disks is better.

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