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:
parent
e553d2a458
commit
93f7cacab3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue