summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorAdam Kwolek <adam.kwolek@intel.com>2011-02-01 15:24:54 +0100
committerNeilBrown <neilb@suse.de>2011-02-03 08:23:50 +0100
commit9653001d8ba785aa6d2d1df217df2b5404f29806 (patch)
tree614331333b42324fb6e39a6e7cac046201919eb3 /super-intel.c
parentimsm: move common code for array size calculation to function (diff)
downloadmdadm-9653001d8ba785aa6d2d1df217df2b5404f29806.tar.xz
mdadm-9653001d8ba785aa6d2d1df217df2b5404f29806.zip
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>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 988b603e..4f92c01c 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -5187,7 +5187,7 @@ static int imsm_set_array_state(struct active_array *a, int consistent)
int used_disks;
struct mdinfo *mdi;
- used_disks = imsm_num_data_members(dev, -1);
+ used_disks = imsm_num_data_members(dev, 0);
if (used_disks > 0) {
array_blocks =
map->blocks_per_member *