diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-21 18:06:14 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-21 18:06:14 +0100 |
commit | e1516be1db121e6f462b41a739106e33461a733a (patch) | |
tree | 8ed59733f1ae2b5528fe735f598ac676575e0e52 /monitor.c | |
parent | mdmon: cleanup resync_start (diff) | |
download | mdadm-e1516be1db121e6f462b41a739106e33461a733a.tar.xz mdadm-e1516be1db121e6f462b41a739106e33461a733a.zip |
Add scaffolding for handling md/dev-XXX/recovery_start
Prepare the code to handle saving a recovery checkpoint.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -208,8 +208,10 @@ static int read_and_act(struct active_array *a) a->info.resync_start = read_resync_start(a->resync_start_fd); for (mdi = a->info.devs; mdi ; mdi = mdi->next) { mdi->next_state = 0; - if (mdi->state_fd >= 0) + if (mdi->state_fd >= 0) { + mdi->recovery_start = read_resync_start(mdi->recovery_fd); mdi->curr_state = read_dev_state(mdi->state_fd); + } } if (a->curr_state <= inactive && |