]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Grow: report correct new chunk size.
authorNeilBrown <neilb@suse.com>
Wed, 5 Dec 2018 23:36:28 +0000 (10:36 +1100)
committerJes Sorensen <jsorensen@fb.com>
Thu, 6 Dec 2018 12:57:19 +0000 (07:57 -0500)
When using "--grow --chunk=" to change chunk
size, the old chunksize is reported instead of the new.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Grow.c

diff --git a/Grow.c b/Grow.c
index 76f82c075e38b3b718d2b80ae6ec08e877dd58a5..363b209d14a3ac6bc352df8626c5267beaa01489 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -3286,7 +3286,7 @@ static int reshape_array(char *container, int fd, char *devname,
                                goto release;
                        } else if (verbose >= 0)
                                printf("chunk size for %s set to %d\n",
-                                      devname, array.chunk_size);
+                                      devname, info->new_chunk);
                }
                unfreeze(st);
                return 0;