From 58a4ba2a6b66ac14fa0ebaf0ce40326582d31429 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 8 Feb 2010 14:12:46 +1100 Subject: mdmon: don't monitor /proc/mounts to decide when to create .pid file. Monitoring /proc/mounts and creating a .pid file as soon as /var/run is writable is racy. Most distros clean all non-directories from /var/run early in boot and if mdmon races with this it could lose the files as soon as they are created. Instead require that "mdmon --takeover" be run after /var is writable. Signed-off-by: NeilBrown --- mdadm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdadm.h') diff --git a/mdadm.h b/mdadm.h index f65a462..a7d8b79 100644 --- a/mdadm.h +++ b/mdadm.h @@ -341,7 +341,7 @@ struct mdstat_ent { extern struct mdstat_ent *mdstat_read(int hold, int start); extern void free_mdstat(struct mdstat_ent *ms); extern void mdstat_wait(int seconds); -extern void mdstat_wait_fd(int fd, int fd2, const sigset_t *sigmask); +extern void mdstat_wait_fd(int fd, const sigset_t *sigmask); extern int mddev_busy(int devnum); struct map_ent { -- cgit