From: Dan Williams Date: Tue, 16 Sep 2008 03:58:42 +0000 (-0700) Subject: monitor: don't mark dirty on resync complete X-Git-Tag: mdadm-3.0-devel1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c0c44db5ae98452c9c69bffc35b031c9fd7acea;p=thirdparty%2Fmdadm.git monitor: don't mark dirty on resync complete ...instead look at array state to determine if the array is consistent Signed-off-by: Dan Williams --- diff --git a/monitor.c b/monitor.c index ecf05285..a1d87e1d 100644 --- a/monitor.c +++ b/monitor.c @@ -268,7 +268,7 @@ static int read_and_act(struct active_array *a) * Just check if we need to fiddle spares. */ get_resync_start(a); - a->container->ss->set_array_state(a, 0); + a->container->ss->set_array_state(a, a->curr_state <= clean); check_degraded = 1; }