summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
authorAdam Kwolek <adam.kwolek@intel.com>2011-10-05 13:59:28 +1100
committerNeilBrown <neilb@suse.de>2011-10-05 13:59:28 +1100
commita93ada3b7d301eee390d35a39c23ce061de76820 (patch)
tree53560c95ce9954d6ebb466632fcc76c1a5ca5062 /Assemble.c
parent2370a4dc029bcf96076d7fbfc53a38123dad4cd3 (diff)
Monitor reshaped array
Reshape can be run for monitored arrays only /external metadata case/. Before reshape can be executed, make sure that just starter array/container is monitored. If not, run mdmon for it. Signed-off-by: Adam Kwolek <adam.kwolek@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index 4511f4d4..285eeee3 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1561,6 +1561,12 @@ int assemble_container_content(struct supertype *st, int mdfd,
spare, backup_file, verbose) == 1)
return 1;
+ if (st->ss->external) {
+ if (!mdmon_running(st->container_dev))
+ start_mdmon(st->container_dev);
+ ping_monitor_by_id(st->container_dev);
+ }
+
err = Grow_continue(mdfd, st, content, backup_file,
freeze_reshape);
} else switch(content->array.level) {