summaryrefslogtreecommitdiff
path: root/config.c
Commit message (Collapse)AuthorAge
* Strdup the bitmap file name found in the config fileNeil Brown2006-11-09
| | | | Otherwise we quickly lose it...
* Allow a number after --auto=yesNeil Brown2006-10-13
| | | | | | So if the device name is /dev/md/d0, then the number of partitions is as given. This is useful in 'CREATE' in mdadm.conf
* Allow symlink creation to be disabled from command line or mdadm.confNeil Brown2006-08-11
|
* More consistent honoring of --configfileNeil Brown2006-06-26
| | | | | Never use /etc/mdadm.conf if --config file is given (previously some code used one, some used the other).
* Stop map_dev from returning [0:0]Neil Brown2006-06-20
| | | | | We sometimes need the NULL when major==minor==0. So make sure all callers of map_dev can cope with NULL.
* Allow default metadata to be specified in mdadm.confNeil Brown2006-06-02
| | | | | | | CREATE metadata=1 in mdadm.conf will cause version-1 superblocks to be the default. Signed-off-by: Neil Brown <neilb@suse.de>
* Improve compiling for static binaries.Neil Brown2006-05-29
| | | | | | | | | Have "#ifdef STATIC" in config.c, and the 'rmconf' target was a mess. Instead, create 'pwgr.c' with stub routines for those unavailable when statically compiled, and include that in STATICOBJ Signed-off-by: Neil Brown <neilb@suse.de>
* Initial implementation of auto-assemblyNeil Brown2006-05-26
| | | | | | This basically works, but needs various improvements and some tests. Signed-off-by: Neil Brown <neilb@suse.de>
* Allow homehost to be set on command line or in config fileNeil Brown2006-05-19
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Improve code for recognising config lines.Neil Brown2006-05-19
| | | | | | No more magic numbers. Signed-off-by: Neil Brown <neilb@suse.de>
* Just updaqte copyright dates and email addressNeil Brown2006-05-19
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Arrange the 'auto' setting in mdadm.conf can choose default type.Neil Brown2006-05-16
| | | | | | | | | | | | So when you say auto=md or auto=part in mdadm.conf, it give a preference for type of array, but standard name will override. But --auto=md is more insistant. FIXME I'm not at all happy about handling of names that already exist. I don't think that should be removed if the device is active. Signed-off-by: Neil Brown <neilb@suse.de>
* Allow default creation info to to be stored in mdadm.confNeil Brown2006-05-15
| | | | | | Default owner, group, mode and 'auto' flag can be given in a 'CREATE' line. Signed-off-by: Neil Brown <neilb@suse.de>
* Assume "DEVICE partitions" if no DEVICE line present.Neil Brown2006-05-15
| | | | | | | This means the output of "mdadm -Es" can be used as a complete mdadm.conf file .... if you really want to do that. Signed-off-by: Neil Brown <neilb@suse.de>
* Support 'mailfrom' line in mdadm.conf so the From: line in alert emails can ↵Neil Brown2006-05-15
| | | | | | be explicitly set. Signed-off-by: Neil Brown <neilb@suse.de>
* Use O_DIRECT to read bitmap files.Neil Brown2006-05-15
| | | | | | | | A pending patch to the kernel causes bitmap file updates to not go through the page cache, so O_DIRECT is needed to ensure that we read current data. Signed-off-by: Neil Brown <neilb@suse.de>
* Support 'bitmap=' in mdadm.conf for auto-assembling arrays with write-intent ↵Neil Brown2006-03-29
| | | | | | bitmaps in separate files. Signed-off-by: Neil Brown <neilb@suse.de>
* Create missing /dev files where needed.Neil Brown2006-03-28
| | | | | | | Whenever we need a device file to open, if one cannot be found in /dev, create a temporary one. Signed-off-by: Neil Brown <neilb@suse.de>
* Allow /etc/mdadm/mdadm.conf as an alternate to /etc/mdadm.confNeil Brown2005-12-09
| | | | | | This provide compatability with Debian. Signed-off-by: Neil Brown <neilb@suse.de>
* Allow scanning of devices listed in /proc/partitions independant of /devNeil Brown2005-12-05
| | | | | | | If a device found in /proc/partitions isn't listed in /dev, then mknod a temporary name and open that. Signed-off-by: Neil Brown <neilb@suse.de>
* Support nameing of version-1 arrays.Neil Brown2005-08-09
| | | | | | | --name is recognised in --create and --assemble name= is recognised in config file. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Assorted Fixes for multiple bugs.Neil Brown2005-08-04
| | | | | | | Assemble would crash, or just not work. A few other problem found by a new test-suite. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Allow --auto to still be meaningful when --scan is givenNeil Brown2005-06-14
| | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Initialise mis.next to NULLNeil Brown2005-06-14
| | | | | | Probably not needed, but safer. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* super1Neil Brown2005-05-03
| | | | | | | Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Fix raid5 creation with new code. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Add a 'super-switch' so that different format superblocks can be used.Neil Brown2005-05-03
| | | | | | | | This includes: adding --metadata= option to choose metadata format adding metadata= word to config file. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Fix "--config=partitions" which was broken.Neil Brown2005-04-04
| | | | | | "devline" wants a list of words, not a whole line... Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* Reread partitions file for each array being assembled.Neil Brown2005-04-04
| | | | | This makes assembling arrays from other arrays work better. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
* mdadm-1.7.0Neil Brown2004-08-11
|
* mdadm-1.6.0Neil Brown2004-06-04
|
* mdadm-1.5.0Neil Brown2004-01-22
|
* mdadm-1.4.0Neil Brown2003-10-28
|
* mdadm-1.1.0Neil Brown2003-03-02
|
* mdadm-1.0.9Neil Brown2003-02-12
|
* mdadm-0.8.2Neil Brown2002-04-11
|
* mdadm-0.8Neil Brown2002-04-04
|
* mdadm-0.7.2Neil Brown2002-03-20
|
* mdadm-0.7Neil Brown2002-03-08
|
* mdctl-0.6Neil Brown2002-03-06
|
* mdctl-0.5Neil Brown2001-08-23
|
* mdctl-v0.4.2Neil Brown2001-07-26
|
* mdctl-v0.4Neil Brown2001-07-26
|
* mdctl-v0.2Neil Brown2001-06-08