From: NeilBrown Date: Fri, 18 Jul 2008 06:37:26 +0000 (+1000) Subject: monitor: call get_resync_start on array shutdown. X-Git-Tag: mdadm-3.0-devel1~95 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=33af8567de2f7b353abb53a0f6e9cffdc136a622 monitor: call get_resync_start on array shutdown. If the array is shutdown as soon as resync finishes, we might not notice the resync finish. So on array shutdown, check for current resync pos. Signed-off-by: Neil Brown --- diff --git a/monitor.c b/monitor.c index e29d023a..347cde79 100644 --- a/monitor.c +++ b/monitor.c @@ -220,6 +220,7 @@ static int read_and_act(struct active_array *a) if (a->curr_state <= inactive && a->prev_state > inactive) { /* array has been stopped */ + get_resync_start(a); a->container->ss->set_array_state(a, 1); a->next_state = clear; deactivate = 1;