imsm: FIX: Do not continue reshape when backup exists
When backup exists in copy area reshape cannot be continued. In such situation, array is in unstable state. Signed-off-by: Adam Kwolek <adam.kwolek@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
ccced3dc40
commit
b2c5943816
|
@ -8744,6 +8744,13 @@ static int imsm_manage_reshape(
|
|||
/* initialize migration record for start condition */
|
||||
if (sra->reshape_progress == 0)
|
||||
init_migr_record_imsm(st, dev, sra);
|
||||
else {
|
||||
if (__le32_to_cpu(migr_rec->rec_status) != UNIT_SRC_NORMAL) {
|
||||
dprintf("imsm: cannot restart migration when data "
|
||||
"are present in copy area.\n");
|
||||
goto abort;
|
||||
}
|
||||
}
|
||||
|
||||
/* size for data */
|
||||
buf_size = __le32_to_cpu(migr_rec->blocks_per_unit) * 512;
|
||||
|
|
Loading…
Reference in New Issue