]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: abort reshape if sync_action is not "reshape"
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Wed, 23 Dec 2015 11:57:11 +0000 (12:57 +0100)
committerNeilBrown <neilb@suse.com>
Wed, 23 Dec 2015 23:04:24 +0000 (10:04 +1100)
commitd7d3809a1b93f9f7b7ca7d874c17632cb3305c76
tree61c864d4c03de1371e9c2c5a97576af85e4edafb
parent10df72a080f71f01553a14ed8112cee6af7912e8
imsm: abort reshape if sync_action is not "reshape"

When reshape was interrupted, an incorrect checkpoint would be saved in
the migration record. Change wait_for_reshape_imsm() to return -1 when
sync_action is not "reshape" to abort early in imsm_manage_reshape()
without writing the migration record.

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: NeilBrown <neilb@suse.com>
super-intel.c