summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Grow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Grow.c b/Grow.c
index 017a79db..9c1f096a 100644
--- a/Grow.c
+++ b/Grow.c
@@ -1676,8 +1676,10 @@ static int reshape_array(char *container, int fd, char *devname,
if (info->reshape_active) {
int new_level = info->new_level;
info->new_level = UnSet;
+ info->array.raid_disks -= info->delta_disks;
msg = analyse_change(info, &reshape);
info->new_level = new_level;
+ info->array.raid_disks += info->delta_disks;
if (!restart)
/* Make sure the array isn't read-only */
ioctl(fd, RESTART_ARRAY_RW, 0);