diff options
author | Tomasz Majchrzak <tomasz.majchrzak@intel.com> | 2017-06-08 16:05:51 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-06-09 16:56:22 +0200 |
commit | b208f817ec538e56df7280f0353e6bda532b9432 (patch) | |
tree | ea551857dd29eaee311691c21027c0bce6e663a6 /Grow.c | |
parent | Get failed disk count from array state (diff) | |
download | mdadm-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); } |