]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: FIX: size have to be calculated based on first map
authorAdam Kwolek <adam.kwolek@intel.com>
Tue, 1 Feb 2011 14:24:54 +0000 (15:24 +0100)
committerNeilBrown <neilb@suse.de>
Thu, 3 Feb 2011 07:23:50 +0000 (18:23 +1100)
commit9653001d8ba785aa6d2d1df217df2b5404f29806
tree614331333b42324fb6e39a6e7cac046201919eb3
parent70bdf0dcc307bb88d3f7100ec3f4d8a3d2e4ea58
imsm: FIX: size have to be calculated based on first map

Before reshape finalization migration is still present in metadata.
After patch 'imsm: FIX: crash during getting map'
function get_imsm_map() returns correct value,
this means in our case from second (start) map.

We should calculate map size basing on first (final) map.
For this we should request it by setting second function parameter to '0'

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