From: Adam Kwolek Date: Fri, 13 Apr 2012 14:52:07 +0000 (+0200) Subject: FIX: Size change is possible as standalone change only X-Git-Tag: mdadm-3.2.4~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58d26a2a81c4ad93ccce88865f2c4ac2588bec69;p=thirdparty%2Fmdadm.git FIX: Size change is possible as standalone change only Size change is possible as standalone change only. To make sure size change is not requested pass '-1' as size parameter. Signed-off-by: Adam Kwolek Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index 1b45199c..389992e2 100644 --- a/Grow.c +++ b/Grow.c @@ -1973,7 +1973,7 @@ size_change_error: /* Impose these changes on a single array. First * check that the metadata is OK with the change. */ - if (reshape_super(st, info.component_size, info.new_level, + if (reshape_super(st, -1, info.new_level, info.new_layout, info.new_chunk, info.array.raid_disks, info.delta_disks, backup_file, devname, APPLY_METADATA_CHANGES,