diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2011-03-02 02:28:13 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-03-02 02:28:13 +0100 |
commit | 2a093697741d11de7f48356d4da6a5bc4f7153af (patch) | |
tree | 86426a8fee466dbea944d0d2e27e8e7d646525e7 /msg.h | |
parent | FIX: Set readonly state in Grow_continue() when necessary (diff) | |
download | mdadm-2a093697741d11de7f48356d4da6a5bc4f7153af.tar.xz mdadm-2a093697741d11de7f48356d4da6a5bc4f7153af.zip |
Add block_subarray()
Put code for blocking subarray in to separate function.
This little code/function will be used for blocking arrays from mdmon
monitoring during assembly process. Arrays cannot wait for container
assembly finish, because meanwhile monitor can enable arrays for writing.
Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'msg.h')
-rw-r--r-- | msg.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -27,6 +27,8 @@ extern int ack(int fd, int tmo); extern int wait_reply(int fd, int tmo); extern int connect_monitor(char *devname); extern int ping_monitor(char *devname); +extern int block_subarray(struct mdinfo *sra); +extern int unblock_subarray(struct mdinfo *sra, const int unfreeze); extern int block_monitor(char *container, const int freeze); extern void unblock_monitor(char *container, const int unfreeze); extern int fping_monitor(int sock); |