diff options
author | NeilBrown <neilb@suse.de> | 2010-02-08 04:33:31 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-02-08 07:26:18 +0100 |
commit | 319767b85c2b16d80c235195329470c46d4547b3 (patch) | |
tree | 75c63dbc102020890f6dedf6279f28b5f2ed968a /mapfile.c | |
parent | mdmon: insist on creating .pid file at startup. (diff) | |
download | 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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 }; |