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