Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:15.0:Ports
mdadm
0051-Grow-don-t-allow-array-geometry-change-wit...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0051-Grow-don-t-allow-array-geometry-change-with-ppl-enab.patch of Package mdadm
From b208f817ec538e56df7280f0353e6bda532b9432 Mon Sep 17 00:00:00 2001 From: Tomasz Majchrzak <tomasz.majchrzak@intel.com> Date: Thu, 8 Jun 2017 16:05:51 +0200 Subject: [PATCH] Grow: don't allow array geometry change with ppl enabled Git-commit: b208f817ec538e56df7280f0353e6bda532b9432 Patch-mainline: mdadm-4.0+ References: bsc#1069165, bsc#1069167, bsc#1068030 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> Signed-off-by: Coly Li <colyli@suse.de> --- Grow.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Grow.c b/Grow.c index 4ecb1d8..f7325cb 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); } -- 2.12.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor