summaryrefslogtreecommitdiff
path: root/mdmon.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-05-15 16:48:39 +1000
committerNeil Brown <neilb@suse.de>2008-05-15 16:48:39 +1000
commitc052ba301b417d4fc8493d95a4a87f0472cc0483 (patch)
treee677bbbbe13199a676d56bf384cfb4060f903989 /mdmon.h
parent549e9569c6006433512801ae76b34abc0d3e1ac0 (diff)
start resync when transitioning from initial readonly state
From: Dan Williams <dan.j.williams@intel.com> mdadm handles setting resync_start, monitor uses this value to determine whether to set the 'active' or 'readauto' state. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdmon.h')
-rw-r--r--mdmon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdmon.h b/mdmon.h
index 497bbec2..3886b09e 100644
--- a/mdmon.h
+++ b/mdmon.h
@@ -12,6 +12,7 @@ struct active_array {
int action_fd;
int sync_pos_fd;
+ int resync_start_fd;
enum array_state prev_state, curr_state, next_state;
enum sync_action prev_action, curr_action, next_action;
@@ -19,6 +20,7 @@ struct active_array {
int devnum;
unsigned long long sync_pos;
+ unsigned long long resync_start;
};