]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Grow: make sure mdmon is running for Grow_continue arrays.
authorNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 00:36:47 +0000 (11:36 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 00:36:47 +0000 (11:36 +1100)
when starting an array that is in the middle of a migration,
we need to start mdmon, just as we do for arrays which are not
in the middle of a migration.

Repored-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c

diff --git a/Grow.c b/Grow.c
index 5acd94dee0b350bfe7525879c8b74bb4190a2917..734fa6dccbd0092d2e34ab976b904d744c676825 100644 (file)
--- a/Grow.c
+++ b/Grow.c
@@ -3371,6 +3371,11 @@ int Grow_continue(int mdfd, struct supertype *st, struct mdinfo *info,
                container = buf;
                freeze(st);
 
+               if (!mdmon_running(st->container_dev))
+                       start_mdmon(st->container_dev);
+               ping_monitor(devnum2devname(st->container_dev));
+
+
                if (info->reshape_active == 2) {
                        int cfd = open_dev(st->container_dev);
                        if (cfd < 0)