diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2011-10-05 04:59:28 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-10-05 04:59:28 +0200 |
commit | a93ada3b7d301eee390d35a39c23ce061de76820 (patch) | |
tree | 53560c95ce9954d6ebb466632fcc76c1a5ca5062 /Assemble.c | |
parent | Remove freeze() call from Grow_continue() (diff) | |
download | mdadm-a93ada3b7d301eee390d35a39c23ce061de76820.tar.xz mdadm-a93ada3b7d301eee390d35a39c23ce061de76820.zip |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |