summaryrefslogtreecommitdiffstats
path: root/Grow.c
diff options
context:
space:
mode:
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>2017-06-08 16:05:51 +0200
committerJes Sorensen <jsorensen@fb.com>2017-06-09 16:56:22 +0200
commitb208f817ec538e56df7280f0353e6bda532b9432 (patch)
treeea551857dd29eaee311691c21027c0bce6e663a6 /Grow.c
parentGet failed disk count from array state (diff)
downloadmdadm-b208f817ec538e56df7280f0353e6bda532b9432.tar.xz
mdadm-b208f817ec538e56df7280f0353e6bda532b9432.zip
Grow: don't allow array geometry change with ppl enabled
Don't allow array geometry change (size expand, disk adding) when PPL consistency policy is enabled. Current PPL implementation doesn't work when reshape is taking place. Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Grow.c')
-rw-r--r--Grow.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Grow.c b/Grow.c
index 4ecb1d84..f7325cbd 100644
--- 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);
}