dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/Grow-fix-switching-on-PPL-during-recovery.patch

2c1b57
From 41b25549f080ebac1269689f942f722368ed28b1 Mon Sep 17 00:00:00 2001
2c1b57
From: Pawel Baldysiak <pawel.baldysiak@intel.com>
2c1b57
Date: Thu, 28 Sep 2017 14:41:13 +0200
2c1b57
Subject: [PATCH 07/12] Grow: fix switching on PPL during recovery
2c1b57
2c1b57
If raid memeber is not in sync - it is skipped during
2c1b57
enablement of PPL. This is not correct, since the drive that
2c1b57
we are currently recovering to does not have ppl_size and ppl_sector
2c1b57
properly set in sysfs.
2c1b57
Remove this skipping, so all drives are updated during turning on the PPL.
2c1b57
2c1b57
Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
2c1b57
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
2c1b57
---
2c1b57
 Grow.c | 3 ---
2c1b57
 1 file changed, 3 deletions(-)
2c1b57
2c1b57
diff --git a/Grow.c b/Grow.c
2c1b57
index bab1eec..1149753 100644
2c1b57
--- a/Grow.c
2c1b57
+++ b/Grow.c
2c1b57
@@ -637,9 +637,6 @@ int Grow_consistency_policy(char *devname, int fd, struct context *c, struct sha
2c1b57
 			int dfd;
2c1b57
 			char *devpath;
2c1b57
 
2c1b57
-			if ((sd->disk.state & (1 << MD_DISK_SYNC)) == 0)
2c1b57
-				continue;
2c1b57
-
2c1b57
 			devpath = map_dev(sd->disk.major, sd->disk.minor, 0);
2c1b57
 			dfd = dev_open(devpath, O_RDWR);
2c1b57
 			if (dfd < 0) {
2c1b57
-- 
2c1b57
2.7.4
2c1b57