From ca36d7073509dd23aef8a29bbcaa3892ec441c1b Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 11 Jul 2013 12:42:12 +1000 Subject: [PATCH] Grow: pass INVALID_SECTORS to reshape_array, not 0. '0' means 'make it 0', which isn't what we want here. We want 'leave it unchanged'. Signed-off-by: NeilBrown --- Grow.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Grow.c b/Grow.c index 84f0a295..b552a3f3 100644 --- a/Grow.c +++ b/Grow.c @@ -3475,7 +3475,7 @@ int reshape_container(char *container, char *devname, flush_mdmon(container); rv = reshape_array(container, fd, adev, st, - content, force, NULL, 0ULL, + content, force, NULL, INVALID_SECTORS, backup_file, verbose, 1, restart, freeze_reshape); close(fd); @@ -4846,7 +4846,8 @@ int Grow_continue(int mdfd, struct supertype *st, struct mdinfo *info, freeze_reshape); } else ret_val = reshape_array(NULL, mdfd, "array", st, info, 1, - NULL, 0ULL, backup_file, 0, 0, + NULL, INVALID_SECTORS, + backup_file, 0, 0, 1 | info->reshape_active, freeze_reshape); -- 2.39.2