]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Grow.c
Grow: don't allow array geometry change with ppl enabled
[thirdparty/mdadm.git] / Grow.c
diff --git a/Grow.c b/Grow.c
index 4ecb1d8449ae1dc1286ab7b08d9c968b82e84453..f7325cbd6a050b1ab80ec00612d98289fb1535f2 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -1880,6 +1880,13 @@ int Grow_reshape(char *devname, int fd,
                                        free(subarray);
                                        return 1;
                                }
+                               if (content->consistency_policy ==
+                                   CONSISTENCY_POLICY_PPL) {
+                                       pr_err("Operation not supported when ppl consistency policy is enabled\n");
+                                       sysfs_free(cc);
+                                       free(subarray);
+                                       return 1;
+                               }
                        }
                        sysfs_free(cc);
                }