]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mapfile.c
Fix all the confusion over directories once and for all.
authorDoug Ledford <dledford@redhat.com>
Tue, 20 Jul 2010 16:15:37 +0000 (12:15 -0400)
committerDoug Ledford <dledford@redhat.com>
Thu, 22 Jul 2010 14:16:30 +0000 (10:16 -0400)
commit753cf9051223992dc8f18b46d26650fe52e6f2f8
tree9dde7fd290acc5f1af9c87b2e805c55f798e24d9
parent8562409dd17ab4910befcbfaba8fe8b751418b6b
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>
Makefile
mapfile.c
mdadm.h
mdmon.c
msg.c
util.c