]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: FIX: Sometimes reshape cannot be finished
authorAdam Kwolek <adam.kwolek@intel.com>
Tue, 14 Jun 2011 23:13:49 +0000 (09:13 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 14 Jun 2011 23:13:49 +0000 (09:13 +1000)
commitf8b72ef517ea305f714230b0503f94ae5f1b8fa4
treeacb249e4d2bc369b3dc43dc9466937e36e538f86
parent7534230b07cffa1cd74153a344090c1892fcebdc
imsm: FIX: Sometimes reshape cannot be finished

When array size is not aligned to copy area, number of migration unit
is increased in init_migr_record_imsm():7665 to reshape whole array.
During calculation of last migration unit, this should be in mind also,
otherwise checkpoint (max-1) is always written and reshape
is never finished in mdadm.

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