From: Dan Williams Date: Tue, 16 Sep 2008 03:58:43 +0000 (-0700) Subject: mdmon: resume rebuild X-Git-Tag: mdadm-3.0-devel1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f7cacab36cfe61e8e6360f33c36391856b9d17;p=thirdparty%2Fmdadm.git mdmon: resume rebuild If we started a degraded array that was previously rebuilding we may have enough information to resume the rebuild without a trip through the monitor. Signed-off-by: Dan Williams --- diff --git a/managemon.c b/managemon.c index 15e431f7..fc34d778 100644 --- a/managemon.c +++ b/managemon.c @@ -475,8 +475,13 @@ static void manage_new(struct mdstat_ent *mdstat, mdstat->metadata_version); new->container = NULL; free_aa(new); - } else + } else { replace_array(container, victim, new); + if (failed) { + new->check_degraded = 1; + manage_member(mdstat, new); + } + } } void manage(struct mdstat_ent *mdstat, struct supertype *container)