]> git.ipfire.org Git - thirdparty/mdadm.git/commit
FIX: Raid0 expansion cannot be restarted
authorAdam Kwolek <adam.kwolek@intel.com>
Mon, 11 Apr 2011 05:00:13 +0000 (15:00 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 11 Apr 2011 05:00:13 +0000 (15:00 +1000)
commitb357ef43f926179b34fa3d9c78b96f1defd7e4b2
tree50359ee6fb6ac7cecdb2dd0d479157924096337a
parent8ccca44dde83e91a162373c681d3ad3bf9023c0e
FIX: Raid0 expansion cannot be restarted

When raid0 expansion is restarted, mdadm refuses to correctly assemble
array because critical section cannot be restored from backup file.
mdadm exits with information:
mdadm: Failed to restore critical section for reshape - sorry.

For raid0 new level is 0, current array level is 4.
Function Grow_restart() doesn't allow for level change.

Grow_restart really shouldn't be checking for level changes.
As they are always instantaneous they should never appear
in the metadata so it doesn't mean anything to check for them.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c