]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Grow.c
FIX: Check correctly raid disks during reshape restart
[thirdparty/mdadm.git] / Grow.c
diff --git a/Grow.c b/Grow.c
index 9c1f096a25375c3f07249451b6c6f89ed5eb012b..9c630369a11f72061853c6caa8d8e9370330a40f 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -1692,7 +1692,8 @@ static int reshape_array(char *container, int fd, char *devname,
        if (restart &&
            (reshape.level != info->array.level ||
             reshape.before.layout != info->array.layout ||
-            reshape.before.data_disks + reshape.parity != info->array.raid_disks)) {
+            reshape.before.data_disks + reshape.parity
+            != info->array.raid_disks - info->delta_disks)) {
                fprintf(stderr, Name ": reshape info is not in native format -"
                        " cannot continue.\n");
                goto release;