]> git.ipfire.org Git - thirdparty/mdadm.git/blame - msg.h
Discard devnum in favour of devnm
[thirdparty/mdadm.git] / msg.h
CommitLineData
f7dd881f
DW
1/*
2 * Copyright (C) 2008 Intel Corporation
3 *
4 * mdmon socket / message handling
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
3e70c845
DW
20
21struct mdinfo;
bfa44e2e 22struct metadata_update;
b109d928 23
bfa44e2e
NB
24extern int receive_message(int fd, struct metadata_update *msg, int tmo);
25extern int send_message(int fd, struct metadata_update *msg, int tmo);
26extern int ack(int fd, int tmo);
27extern int wait_reply(int fd, int tmo);
f7dd881f
DW
28extern int connect_monitor(char *devname);
29extern int ping_monitor(char *devname);
2a093697
AK
30extern int block_subarray(struct mdinfo *sra);
31extern int unblock_subarray(struct mdinfo *sra, const int unfreeze);
bc77ed53
DW
32extern int block_monitor(char *container, const int freeze);
33extern void unblock_monitor(char *container, const int unfreeze);
9f1da824 34extern int fping_monitor(int sock);
313a4a82 35extern int ping_manager(char *devname);
78340e26 36extern void flush_mdmon(char *container);
f7dd881f 37
bfa44e2e 38#define MSG_MAX_LEN (4*1024*1024)