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 <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2008-09-15 20:58:43 -07:00
parent e553d2a458
commit 93f7cacab3
1 changed files with 6 additions and 1 deletions

View File

@ -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)