summaryrefslogtreecommitdiff
path: root/mdmon.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-05-27 09:18:53 +1000
committerNeil Brown <neilb@suse.de>2008-05-27 09:18:53 +1000
commit77402e51054701cd02ff07f8d5d43ef23e640226 (patch)
tree9f76dbf1688ce36341ef023d33649a51bb5b176f /mdmon.h
parent75aa18b53cb2df342bc78dd9e44cd0f0c51075f0 (diff)
Discard get_sync_pos. We should be using get_resync_start.
"sync_complete" just tracks the current resync/recover/check/whatever pass. "resync_start" tracks which parts of the array are known to be in-sync (modulo active writes). So it is what we need to use to update the metadata. Also we cannot call it when the array has stopped, as the value is no longer available then. We must call it when the resync completes. Possibly also call it preiodically if the array is quiescent.
Diffstat (limited to 'mdmon.h')
-rw-r--r--mdmon.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/mdmon.h b/mdmon.h
index b84e270b..ad1a6781 100644
--- a/mdmon.h
+++ b/mdmon.h
@@ -11,7 +11,6 @@ struct active_array {
struct active_array *next, *replaces;
int action_fd;
- int sync_pos_fd;
int resync_start_fd;
enum array_state prev_state, curr_state, next_state;
@@ -19,7 +18,6 @@ struct active_array {
int devnum;
- unsigned long long sync_pos;
unsigned long long resync_start;
};