]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix: correct adding and activation of spare disks
authorLukasz Dorau <lukasz.dorau@intel.com>
Wed, 5 Oct 2011 03:17:38 +0000 (14:17 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 5 Oct 2011 03:17:38 +0000 (14:17 +1100)
commitb303fe21b5ad9a239a2984649446fce060918571
treed4fc21a547691ea057e7b6d1e6bcd490a3c9b688
parent6937e6d21698b7a81aff9a116a6e09659defbe91
imsm: fix: correct adding and activation of spare disks

During activation of spare disks, only one of all available
spare disks can be activated at this moment.
It causes that for example during take-over from
RAID0 with 2 disks to RAID10, only one of two spare disks
is taken for recovery and a degraded RAID10 array
with only 3 of 4 working disks is created.
It has been fixed by adding more than one of all available
spare disks and saving them in additional_test_list
which is passed to imsm_add_spare().

Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c