summaryrefslogtreecommitdiff
path: root/Grow.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-06-24 13:06:32 +1000
committerNeilBrown <neilb@suse.de>2013-06-24 13:06:32 +1000
commitddbf2ebb0ee576be3be4a879a4c996d38af9cd73 (patch)
tree670993f56a2b83dc50c0e075cb36e92c66522a4e /Grow.c
parentb397d7f3e08bdebcfce11ae9e281f93c5c4b9761 (diff)
Grow: analyse_change needs to set new_size even if nothing much is happening.
This means it will be set for a "--data-offset" only reshape so that case doesn't complain that the array is getting smaller. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Grow.c b/Grow.c
index 7bfb3ceb..37f36677 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1412,6 +1412,7 @@ char *analyse_change(struct mdinfo *info, struct reshape *re)
/* So we have a restripe operation, we need to calculate the number
* of blocks per reshape operation.
*/
+ re->new_size = info->component_size * re->before.data_disks;
if (info->new_chunk == 0)
info->new_chunk = info->array.chunk_size;
if (re->after.data_disks == re->before.data_disks &&