Do not set default 'before.layout' when reshaping from RAID4 to RAID4

Commit fdcad551e9
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>
This commit is contained in:
Baldysiak, Pawel 2014-05-30 14:38:09 +00:00 committed by NeilBrown
parent 868ab80dea
commit 18d9bcfa33
1 changed files with 0 additions and 1 deletions

1
Grow.c
View File

@ -1322,7 +1322,6 @@ char *analyse_change(char *devname, struct mdinfo *info, struct reshape *re)
switch (re->level) {
case 4:
re->before.layout = 0;
re->after.layout = 0;
break;
case 5: