diff options
author | Lukasz Dorau <lukasz.dorau@intel.com> | 2011-10-10 09:16:40 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-10-10 09:16:40 +1100 |
commit | b601104eb4a4733a838fb86e9e279fed14ce9d3f (patch) | |
tree | f535ccbfc5a1c305cc6f93e3a3ba4a49a6bcc5a9 /super-intel.c | |
parent | 3bd58dc65f154993f2cc8b1460c67884cb901605 (diff) |
imsm: fix: stopped resync does not continue after auto-assemblation
Resync stopped with "mdadm -Ss" command does not continue
after issuing "mdadm -As" command.
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index 587da383..af06660b 100644 --- a/super-intel.c +++ b/super-intel.c @@ -2295,7 +2295,8 @@ static void getinfo_super_imsm_volume(struct supertype *st, struct mdinfo *info, info->custom_array_size |= __le32_to_cpu(dev->size_low); info->recovery_blocked = imsm_reshape_blocks_arrays_changes(st->sb); - if (prev_map && map->map_state == prev_map->map_state) { + if (prev_map && map->map_state == prev_map->map_state && + (migr_type(dev) == MIGR_GEN_MIGR)) { info->reshape_active = 1; info->new_level = get_imsm_raid_level(map); info->new_layout = imsm_level_to_layout(info->new_level); |