From: Adam Kwolek Date: Wed, 5 Oct 2011 02:59:28 +0000 (+1100) Subject: Monitor reshaped array X-Git-Tag: mdadm-3.2.3~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a93ada3b7d301eee390d35a39c23ce061de76820;p=thirdparty%2Fmdadm.git 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 Signed-off-by: NeilBrown --- 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) {