diff options
author | Pawel Baldysiak <pawel.baldysiak@intel.com> | 2017-09-28 14:41:13 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-10-02 22:13:25 +0200 |
commit | 41b25549f080ebac1269689f942f722368ed28b1 (patch) | |
tree | 1a8c02b069e733ddb1837161e25bbdd0914afb8c | |
parent | imsm: switch to multiple ppls automatically during assemble (diff) | |
download | mdadm-41b25549f080ebac1269689f942f722368ed28b1.tar.xz mdadm-41b25549f080ebac1269689f942f722368ed28b1.zip |
Grow: fix switching on PPL during recovery
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>
-rw-r--r-- | Grow.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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) { |