diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-10-14 02:37:02 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-10-14 02:41:58 +0200 |
commit | 9f1da8242161ba684f2867f211eb7e9d4baa84bb (patch) | |
tree | e396bffdec4ef5915f4eb138f343809431042dc0 /msg.h | |
parent | mdmon: exec(2) when the switchroot argument is not "/" (diff) | |
download | mdadm-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |