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>
This commit is contained in:
parent
3bd58dc65f
commit
b601104eb4
|
@ -439,7 +439,7 @@ A device may belong to several domains. The domain of an array is a union
|
||||||
of domains of all devices in that array. A spare can be automatically
|
of domains of all devices in that array. A spare can be automatically
|
||||||
moved from one array to another if the set of the destination array's
|
moved from one array to another if the set of the destination array's
|
||||||
.I domains
|
.I domains
|
||||||
contains all the
|
ppcontains all the
|
||||||
.I domains
|
.I domains
|
||||||
of the new disk or if both arrays have the same
|
of the new disk or if both arrays have the same
|
||||||
.IR spare-group .
|
.IR spare-group .
|
||||||
|
@ -463,6 +463,7 @@ any arbitrary string
|
||||||
.B path=
|
.B path=
|
||||||
file glob matching anything from
|
file glob matching anything from
|
||||||
.B /dev/disk/by-path
|
.B /dev/disk/by-path
|
||||||
|
.TP
|
||||||
.B type=
|
.B type=
|
||||||
either
|
either
|
||||||
.B disk
|
.B disk
|
||||||
|
@ -471,6 +472,8 @@ or
|
||||||
.TP
|
.TP
|
||||||
.B action=
|
.B action=
|
||||||
include, re-add, spare, spare-same-slot, or force-spare
|
include, re-add, spare, spare-same-slot, or force-spare
|
||||||
|
.B auto=
|
||||||
|
yes, no, or homehost.
|
||||||
|
|
||||||
.P
|
.P
|
||||||
The
|
The
|
||||||
|
|
|
@ -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->custom_array_size |= __le32_to_cpu(dev->size_low);
|
||||||
info->recovery_blocked = imsm_reshape_blocks_arrays_changes(st->sb);
|
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->reshape_active = 1;
|
||||||
info->new_level = get_imsm_raid_level(map);
|
info->new_level = get_imsm_raid_level(map);
|
||||||
info->new_layout = imsm_level_to_layout(info->new_level);
|
info->new_layout = imsm_level_to_layout(info->new_level);
|
||||||
|
|
Loading…
Reference in New Issue