]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
FIX: Size change is possible as standalone change only
authorAdam Kwolek <adam.kwolek@intel.com>
Fri, 13 Apr 2012 14:52:07 +0000 (16:52 +0200)
committerNeilBrown <neilb@suse.de>
Tue, 17 Apr 2012 02:33:38 +0000 (12:33 +1000)
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 <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 1b45199c6fd0be46f6609aeb78409142819c499a..389992e24a3e84cee1997776d91f96dc6d85da6c 100644 (file)
--- 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,