summaryrefslogtreecommitdiffstats
path: root/msg.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-10-14 02:37:02 +0200
committerDan Williams <dan.j.williams@intel.com>2009-10-14 02:41:58 +0200
commit9f1da8242161ba684f2867f211eb7e9d4baa84bb (patch)
treee396bffdec4ef5915f4eb138f343809431042dc0 /msg.h
parentmdmon: exec(2) when the switchroot argument is not "/" (diff)
downloadmdadm-9f1da8242161ba684f2867f211eb7e9d4baa84bb.tar.xz
mdadm-9f1da8242161ba684f2867f211eb7e9d4baa84bb.zip
mdmon: preserve socket over chroot
Connect to the monitor in the old namespace and use that connection for WaitClean requests when stopping the victim mdmon instance. This allows ping_monitor() to work post chroot(). Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'msg.h')
-rw-r--r--msg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/msg.h b/msg.h
index b9bd205d..f8e89fdc 100644
--- a/msg.h
+++ b/msg.h
@@ -27,6 +27,7 @@ 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 fping_monitor(int sock);
extern int ping_manager(char *devname);
#define MSG_MAX_LEN (4*1024*1024)