summaryrefslogtreecommitdiff
path: root/Grow.c
diff options
context:
space:
mode:
authorBaldysiak, Pawel <pawel.baldysiak@intel.com>2014-05-30 14:38:09 +0000
committerNeilBrown <neilb@suse.de>2014-06-02 12:29:37 +1000
commit18d9bcfa33939cee345d4d7735bc6081bcc409c8 (patch)
tree27551b42d3be948b885f3cf0b6811fda37db4f1e /Grow.c
parent868ab80deae400ec3c3896b135cf5d68784638d0 (diff)
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>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Grow.c b/Grow.c
index 2af6c96e..2bb4e98f 100644
--- a/Grow.c
+++ b/Grow.c
@@ -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: