[PATCH 8/9] FIX: Block array monitoring when assembling reshaped array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To allow for array reconfiguration, mdmon cannot push array in to active
state. Assemble should block monitor for external metadata to allow
for reshape configuration and restart.

Signed-off-by: Adam Kwolek <adam.kwolek@xxxxxxxxx>
---

 Assemble.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Assemble.c b/Assemble.c
index e65022c..8b4b037 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1532,6 +1532,11 @@ int assemble_container_content(struct supertype *st, int mdfd,
 		if (sysfs_set_array(content, md_get_version(mdfd)) != 0)
 			return 1;
 		if (content->reshape_active) {
+
+			/* mdmon can activate array, so array has to be blocked
+			 */
+			block_subarray(content);
+
 			/* set 'new' array geometry parameters
 			 * to restart reshape
 			 * ToDo:
@@ -1545,6 +1550,7 @@ int assemble_container_content(struct supertype *st, int mdfd,
 					      content->delta_disks);
 		}
 	}
+
 	if (sra)
 		sysfs_free(sra);
 

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux