]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
super1: allow reshape that hasn't really started to be reverted.
authorNeilBrown <neilb@suse.com>
Thu, 28 Jan 2016 01:57:08 +0000 (12:57 +1100)
committerNeilBrown <neilb@suse.com>
Thu, 28 Jan 2016 01:57:08 +0000 (12:57 +1100)
commitd5ff855d477cea9c8f242721923982aeb81a6dbc
treedb7c1d07c43349b142745829eb0df5dfbcbd661c
parent9f7f28ee5030bbed94c4d54a8da908649ccb7ce0
super1: allow reshape that hasn't really started to be reverted.

A simple revert doesn't work here because the reshape_position is
in the critical section.
The best approach is to let the reshape progress a bit and then
go backwards.
If that isn't possible, assembling with --update=revert-reshape and
--invalid-backup should work.

Reported-by-tested-by: George Rapp <george.rapp@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Assemble.c
super1.c