]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: FIX: imsm_add_spare() wrongly tests spares list
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 15 Dec 2010 09:38:15 +0000 (10:38 +0100)
committerNeilBrown <neilb@suse.de>
Wed, 15 Dec 2010 22:03:03 +0000 (09:03 +1100)
commit6c932028981f82b69044214623d5175ebd06d8fa
tree32079e710522d82c4d1516e54d1d25439f8f24a6
parent44d337f04d35321084b4e309b4d68cf828bf7ec8
imsm: FIX: imsm_add_spare() wrongly tests spares list

For more than one disk tested additional_test_list was searched from last
point, not from begin.

This bug causes that more than 2 disks cannot be added to imsm array,
when imsm_add_spare() is used for this.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c