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);