]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Do not set default 'before.layout' when reshaping from RAID4 to RAID4
authorBaldysiak, Pawel <pawel.baldysiak@intel.com>
Fri, 30 May 2014 14:38:09 +0000 (14:38 +0000)
committerNeilBrown <neilb@suse.de>
Mon, 2 Jun 2014 02:29:37 +0000 (12:29 +1000)
commit18d9bcfa33939cee345d4d7735bc6081bcc409c8
tree27551b42d3be948b885f3cf0b6811fda37db4f1e
parent868ab80deae400ec3c3896b135cf5d68784638d0
Do not set default 'before.layout' when reshaping from RAID4 to RAID4

Commit fdcad551e9a54c4aa8c4b63160b76e2c539a0441
brings some changes to reshape process.
Setting 'before.layout' when reshaping from RAID4 to another RAID4 is
not really necessary.
If reshape is restarted 'before.layout' will be compared with
'info->array.layout' in reshape_array(). Changes brought by mentioned
commit will cause this comparation return as false, becouse 'array.layout'
is always set to 'ALGORITHM_PARITY_N' in analyse_change() for RAID4, so
reshape will not be continued after reboot/stop.
This patch reverts unnecessary changes.

Signed-off-by: Pawel Baldysiak pawel.baldysiak@intel.com
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c