summaryrefslogtreecommitdiff
path: root/msg.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 /msg.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 'msg.h')
-rw-r--r--msg.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/msg.h b/msg.h
index 6f0d9c16..afe14040 100644
--- a/msg.h
+++ b/msg.h
@@ -17,8 +17,8 @@
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef _MSG_H
-#define _MSG_H
+
+struct mdinfo;
struct mdinfo;
struct md_message {
@@ -60,4 +60,3 @@ extern int connect_monitor(char *devname);
extern int ping_monitor(char *devname);
extern int send_remove_device(int fd, dev_t rdev, int seq, int tmo);
-#endif