diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-05-15 08:48:54 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-05-15 08:48:54 +0200 |
commit | 3e70c845e25295d80680d884d5671107bf8bded3 (patch) | |
tree | 3a8b69bb18e66ee64db5c6a0705d90a9f0843e02 /msg.h | |
parent | start fleshing out socket code, ping monitor to see if it is alive (diff) | |
download | mdadm-3e70c845e25295d80680d884d5671107bf8bded3.tar.xz mdadm-3e70c845e25295d80680d884d5671107bf8bded3.zip |
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.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |