Thread (5 messages) 5 messages, 1 author, 2011-02-23

[PATCH 3/4] FIX: Block monitor when starting array with reshape in progress

STALE5704d

From: Adam Kwolek <hidden>
Date: 2011-02-23 13:51:56
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---

 Assemble.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Assemble.c b/Assemble.c
index bffbbf0..bdbe50a 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1518,6 +1518,12 @@ int assemble_container_content(struct supertype *st, int mdfd,
 			return 1;
 		}
 	content->reshape_active = reshape_active;
+	if (content->reshape_active) {
+		char buf[64];
+		sprintf(buf, "external:%s\n", content->text_version);
+		buf[9] = '-';
+		sysfs_set_str(sra, NULL, "metadata_version", buf);
+	}
 	if (sra)
 		sysfs_free(sra);
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help