summaryrefslogtreecommitdiffstats
path: root/mdmon.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-08-19 17:55:15 +1000
committerNeilBrown <neilb@suse.de>2008-08-19 17:55:15 +1000
commite9dd159873cfa0da1ec3e4f173c24f330ea526f8 (patch)
treef95abf6b0736b9f7a0bd3743d037bc8f3f7b793d /mdmon.h
parent3c558363a1991430e8a9e10c93ee9ee3f8996940 (diff)
downloadmdadm-e9dd159873cfa0da1ec3e4f173c24f330ea526f8.tar.gz
mdadm-e9dd159873cfa0da1ec3e4f173c24f330ea526f8.tar.xz
mdadm-e9dd159873cfa0da1ec3e4f173c24f330ea526f8.zip
Allow an externally managed array to be marked readonly
If the metadata_version is -mdXXX/whatever rather than /mdXXX/whatever then the array is readonly and should be left alone by mdmon. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.h')
-rw-r--r--mdmon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdmon.h b/mdmon.h
index 6c1961a..b3f4d6e 100644
--- a/mdmon.h
+++ b/mdmon.h
@@ -19,6 +19,7 @@ struct active_array {
int action_fd;
int resync_start_fd;
+ int metadata_fd; /* for monitoring rw/ro status */
enum array_state prev_state, curr_state, next_state;
enum sync_action prev_action, curr_action, next_action;