From 319767b85c2b16d80c235195329470c46d4547b3 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 8 Feb 2010 14:33:31 +1100 Subject: mapfile: use ALT_RUN as alternate place to store mapfile This gives better consistency and fewer hidden '.' files. Signed-off-by: NeilBrown --- mapfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mapfile.c') diff --git a/mapfile.c b/mapfile.c index 5444452d..366ebe33 100644 --- a/mapfile.c +++ b/mapfile.c @@ -51,11 +51,11 @@ #include #include -#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 }; -- cgit v1.2.3