summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-09-15 20:58:42 -0700
committerDan Williams <dan.j.williams@intel.com>2008-09-15 20:58:42 -0700
commit0c0c44db5ae98452c9c69bffc35b031c9fd7acea (patch)
treecda77b5255c0a5db968a2a0c4fb70e86c1883772
parentd797a0621f08c799ca7c21a2b3b8eedaf19fc7aa (diff)
downloadmdadm-0c0c44db5ae98452c9c69bffc35b031c9fd7acea.tar.gz
mdadm-0c0c44db5ae98452c9c69bffc35b031c9fd7acea.tar.xz
mdadm-0c0c44db5ae98452c9c69bffc35b031c9fd7acea.zip
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 <dan.j.williams@intel.com>
-rw-r--r--monitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index ecf0528..a1d87e1 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;
}