summaryrefslogtreecommitdiff
path: root/mdmon.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-05-15 16:48:54 +1000
committerNeil Brown <neilb@suse.de>2008-05-15 16:48:54 +1000
commit3e70c845e25295d80680d884d5671107bf8bded3 (patch)
tree3a8b69bb18e66ee64db5c6a0705d90a9f0843e02 /mdmon.h
parentb109d92863bfa319d140b305132ca41bfb8d1194 (diff)
add infrastructure to receive higher order commands, like remove_device
From: Dan Williams <dan.j.williams@intel.com> Each md_message encapsulates a single command. A command includes an 'action' member which describes what if any data comes after the action. Communication with the monitor involves updating the active_cmd pointer and then writing to mgr_pipe. Pass/fail status is returned via mon_pipe. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
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 3886b09e..e83f4236 100644
--- a/mdmon.h
+++ b/mdmon.h
@@ -31,6 +31,7 @@ extern struct active_array *container;
extern struct active_array *array_list;
extern struct active_array *discard_this;
extern struct active_array *pending_discard;
+extern struct md_generic_cmd *active_cmd;
void do_monitor(struct supertype *container);