summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorLuca Berra <bluca@comedia.it>2010-02-28 15:46:16 +0100
committerNeilBrown <neilb@suse.de>2010-03-03 12:23:30 +1100
commitc132678b18c1aeb3f3eaa2ece4aafebd5e2b47a6 (patch)
treedde126ab82ea4ee88f3bbd0dffbf56fa50ef4e3d /mdadm.h
parent32f217017fd5343ab3c0c564b689b90d0f093bd5 (diff)
downloadmdadm-c132678b18c1aeb3f3eaa2ece4aafebd5e2b47a6.tar.gz
mdadm-c132678b18c1aeb3f3eaa2ece4aafebd5e2b47a6.tar.xz
mdadm-c132678b18c1aeb3f3eaa2ece4aafebd5e2b47a6.zip
allow redefinition of VAR_RUN
having mdmon socket under var is painful at shutdown time Signed-off-by: Luca Berra <bluca@comedia.it> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index df3a056..3628ea0 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -68,7 +68,18 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
#define DEFAULT_BITMAP_DELAY 5
#define DEFAULT_MAX_WRITE_BEHIND 256
+/* VAR_RUN is where pid and socket files used for communicating
+ * with mdmon normally live. It should be /var/run, but if
+ * it is too hard to remount /var/run as read-only rather than
+ * unmounting it at shutdown time, then it should be
+ * redefined to some place that comfortably persists until
+ * final shutdown, possibly in /dev if that is a tmpfs.
+ * Note: VAR_RUN does not need to be writable at shutdown,
+ * only during boot when "mdmon --takeover" is run.
+ */
+#ifndef VAR_RUN
#define VAR_RUN "/var/run/mdadm"
+#endif /* VAR_RUN */
/* ALT_RUN should be somewhere that persists across the pivotroot
* from early boot to late boot.
* If you don't have /lib/init/rw you might want to use /dev/.something