summaryrefslogtreecommitdiff
path: root/msg.c
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2010-07-20 12:15:37 -0400
committerDoug Ledford <dledford@redhat.com>2010-07-22 10:16:30 -0400
commit753cf9051223992dc8f18b46d26650fe52e6f2f8 (patch)
tree9dde7fd290acc5f1af9c87b2e805c55f798e24d9 /msg.c
parent8562409dd17ab4910befcbfaba8fe8b751418b6b (diff)
Fix all the confusion over directories once and for all.
We now have 3 directory definitions: mdmon directory for its pid and sock files (compile time define, not changable at run time), mdmonitor directory which is for the mdadm monitor mode pid file (can only be passed in via command line at the time mdadm is invoked in monitor mode), and the directory for the mdadm incremental assembly map file (compile time define, not changable at run time). Only the mdadm map file still hunts multiple locations, and the number of locations has been reduced to /var/run and the compile time specified location. Re-use of similar sounding defines that actually didn't denote their actual usage at compile time made it more difficult for a person to know what affect changing the compile time defines would have on the resulting programs. This patch renames the various defines to clearly identify which item the define affects. It also reduces the number of various directories which will be searched for these files as this has lead to confusion in mdadm and mdmon in terms of which files should take precedence when files exist in multiple locations, etc. It's best if the person compiling the program intentionally and with planning selects the right directories to be used for the various purposes. Which directory is right depends on which items you are talking about and what boot loader your system uses and what initramfs generation program your system uses. Because of the inter-dependency of all these items it would typically be up to the distribution that mdadm is being integrated into to select the correct values for these defines. Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/msg.c b/msg.c
index d2d84458..aabfa8f5 100644
--- a/msg.c
+++ b/msg.c
@@ -147,7 +147,7 @@ int connect_monitor(char *devname)
int pos;
char *c;
- pos = sprintf(path, "%s/", pid_dir);
+ pos = sprintf(path, "%s/", MDMON_DIR);
if (is_subarray(devname)) {
devname++;
c = strchr(devname, '/');