summaryrefslogtreecommitdiffstats
path: root/mapfile.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-02-08 14:33:31 +1100
committerNeilBrown <neilb@suse.de>2010-02-08 17:26:18 +1100
commit319767b85c2b16d80c235195329470c46d4547b3 (patch)
tree75c63dbc102020890f6dedf6279f28b5f2ed968a /mapfile.c
parentfa716c83c5be8093e663e260e46e73ea9ad6facf (diff)
downloadmdadm-319767b85c2b16d80c235195329470c46d4547b3.tar.gz
mdadm-319767b85c2b16d80c235195329470c46d4547b3.tar.xz
mdadm-319767b85c2b16d80c235195329470c46d4547b3.zip
mapfile: use ALT_RUN as alternate place to store mapfile
This gives better consistency and fewer hidden '.' files. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mapfile.c')
-rw-r--r--mapfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mapfile.c b/mapfile.c
index 5444452..366ebe3 100644
--- a/mapfile.c
+++ b/mapfile.c
@@ -51,11 +51,11 @@
#include <sys/file.h>
#include <ctype.h>
-#define mapnames(base) { #base, #base ".new", #base ".lock"}
+#define mapnames(base) { base, base ".new", base ".lock"}
char *mapname[3][3] = {
- mapnames(/var/run/mdadm/map),
- mapnames(/var/run/mdadm.map),
- mapnames(/dev/.mdadm.map)
+ mapnames(VAR_RUN "/map"),
+ mapnames("/var/run/mdadm.map"),
+ mapnames(ALT_RUN "/map")
};
int mapmode[3] = { O_RDONLY, O_RDWR|O_CREAT, O_RDWR|O_CREAT | O_TRUNC };