summaryrefslogtreecommitdiffstats
path: root/mdmon.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-02-08 04:30:46 +0100
committerNeilBrown <neilb@suse.de>2010-02-08 07:26:18 +0100
commitfa716c83c5be8093e663e260e46e73ea9ad6facf (patch)
treed114ff6697fd4c85c090facb2a13ba52d19c1eeb /mdmon.h
parentmdmon: don't monitor /proc/mounts to decide when to create .pid file. (diff)
downloadmdadm-fa716c83c5be8093e663e260e46e73ea9ad6facf.tar.xz
mdadm-fa716c83c5be8093e663e260e46e73ea9ad6facf.zip
mdmon: insist on creating .pid file at startup.
Now that we don't "mdadm --takeover" until /var/run is writable there is no need to continually try to create files in there. So only create these files at startup and fail if they cannot be made. This means that to start an array with externally managed metadata, either /var/run or ALT_RUN (e.g. /lib/init/rw) must be writable. To 'takeover' from a previous mdmon instance, /var/run must be writable. This means we don't need to worry about SIGHUP (which was once used to tell us it was time to create .pid) and SIGALRM. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.h')
-rw-r--r--mdmon.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/mdmon.h b/mdmon.h
index a03686f1..20a0a013 100644
--- a/mdmon.h
+++ b/mdmon.h
@@ -65,9 +65,6 @@ extern struct md_generic_cmd *active_cmd;
void remove_pidfile(char *devname);
void do_monitor(struct supertype *container);
void do_manager(struct supertype *container);
-int make_control_sock(char *devname);
-int make_pidfile(char *devname);
-extern int socket_hup_requested;
extern int sigterm;
int read_dev_state(int fd);