]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: FIX: spares are not counted
authorAdam Kwolek <adam.kwolek@intel.com>
Wed, 12 Jan 2011 23:16:07 +0000 (10:16 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 12 Jan 2011 23:16:07 +0000 (10:16 +1100)
commit04c3c514136a7bbda05def7538f6dfae5be8b14d
tree53a48e7cf3ed3ca7677efd89f0ec163e8d1977d0
parenteb744788d10fd038fd57920149615775bc4b121c
imsm: FIX: spares are not counted

Field info->array.spare_disks is used on begin of reshape_array() to
check if there is enough number of spares to process reshape.  During
container_content_imsm() call spare disks are not counted.  This
causes that reshape_array() reports that there is not enough spares to
execute reshape.

Patch adds spares counting for reshape process.

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