From: NeilBrown Date: Thu, 10 Mar 2011 00:36:47 +0000 (+1100) Subject: Grow: make sure mdmon is running for Grow_continue arrays. X-Git-Tag: mdadm-3.2.1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f362d22b5bc492c60fa1ea7e0f8346b7837dd7da;p=thirdparty%2Fmdadm.git Grow: make sure mdmon is running for Grow_continue arrays. 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 Signed-off-by: NeilBrown --- diff --git a/Grow.c b/Grow.c index 5acd94de..734fa6dc 100644 --- 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)