summaryrefslogtreecommitdiffstats
path: root/monitor.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-05-15 16:48:42 +1000
committerNeil Brown <neilb@suse.de>2008-05-15 16:48:42 +1000
commitfd7cde1bf0221049b6359a96ab4c43578897d0ab (patch)
treef0672b3f63fb41dbae98013a1df50fc1f1d135c6 /monitor.c
parent845dea950c319ce33c8535cc14a1fddef1c51752 (diff)
downloadmdadm-fd7cde1bf0221049b6359a96ab4c43578897d0ab.tar.gz
mdadm-fd7cde1bf0221049b6359a96ab4c43578897d0ab.tar.xz
mdadm-fd7cde1bf0221049b6359a96ab4c43578897d0ab.zip
handle resync completion
From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/monitor.c b/monitor.c
index 8f5ad46..ee35bdf 100644
--- a/monitor.c
+++ b/monitor.c
@@ -274,10 +274,9 @@ static int read_and_act(struct active_array *a)
if (a->curr_action == idle &&
a->prev_action == resync) {
- /* check resync_start to see if it is 'max'.
- * Do I open here, or have it open the whole time?
- */
- get_sync_pos(a);
+ /* check resync_start to see if it is 'max' */
+ get_resync_start(a);
+ a->container->ss->mark_sync(a, a->resync_start);
check_degraded = 1;
}