]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Grow: fix switching on PPL during recovery
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Thu, 28 Sep 2017 12:41:13 +0000 (14:41 +0200)
committerJes Sorensen <jsorensen@fb.com>
Mon, 2 Oct 2017 20:13:25 +0000 (16:13 -0400)
If raid memeber is not in sync - it is skipped during
enablement of PPL. This is not correct, since the drive that
we are currently recovering to does not have ppl_size and ppl_sector
properly set in sysfs.
Remove this skipping, so all drives are updated during turning on the PPL.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Grow.c

diff --git a/Grow.c b/Grow.c
index bab1eec1f705d30ccff4ead0d4f1e0e83d8384ef..1149753d601e4a68fc81792510030a9a743e3183 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -637,9 +637,6 @@ int Grow_consistency_policy(char *devname, int fd, struct context *c, struct sha
                        int dfd;
                        char *devpath;
 
-                       if ((sd->disk.state & (1 << MD_DISK_SYNC)) == 0)
-                               continue;
-
                        devpath = map_dev(sd->disk.major, sd->disk.minor, 0);
                        dfd = dev_open(devpath, O_RDWR);
                        if (dfd < 0) {