summaryrefslogtreecommitdiffstats
path: root/mdadm.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix autoassemble for stack arrays.Neil Brown2008-05-201-2/+4
| | | | | | | | If you have stacked arrays, then mdadm -As --homehost=fred should work but doesn't. It gets into an infinite loop! So write some tests, and fix the bugs.
* Set LOG_PID for syslogHans Lambermont2008-05-121-1/+1
| | | | From: Hans Lambermont <hans.lambermont@newtec.eu>
* add --export option to --examineKay Sievers2008-05-061-1/+3
| | | | | | | From: Kay Sievers <kay.sievers@vrfy.org> Cc: David Zeuthen <david@fubar.dk> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
* let '-a' be specified for Incremental modeDan Williams2008-05-051-1/+3
| | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Remove spaces/tabs from ends of lines.Neil Brown2007-12-141-14/+14
|
* Reject '--bitmap none' for build and create.Neil Brown2007-07-231-1/+7
| | | | | We don't want to create a file called 'none', and it isn't needed, so just reject it.
* Allow "--write-behind=" to be done in grow mode.Ian Dall2007-07-091-0/+1
| | | | | | | | | From: Ian Dall <ian@beware.dropbear.id.au> I have a small patch to mdadm which allows the write-behind amount to be set a array grow time (instead of currently only at grow or create time). I have tested this fairly extensively on some arrays built out of loop back devices, and once on a real live array.
* Fix parsing of "-a" in various contexts.Doug Ledford2007-07-091-3/+5
| | | | | | | | | | | | From: Doug Ledford <dledford@redhat.com> This one fixes a bug where once manage mode is set, the -a short option is no longer parsed correctly (true of grow mode as well). This happens because when you switch the short opts to the bitmap_auto version, it specifies that the argument must follow a, yet the loop expects to get an undecorated option and parse it as the disk dev instead of trying to parse optarg. So, create a new short opt array that is used for manage and grow that doesn't list a as having an argument.
* Improve error message for adding bitmap to a level that cannot support it.Neil Brown2007-05-211-0/+10
| | | | Also give error on --build if no devices given.
* Add --auto-detect for in-kernel autodetect.Neil Brown2007-05-211-0/+7
| | | | This is equivalent to raidautorun that some distros provide.
* Add --export option to --detail to use key=value pairs.Kay Sievers2007-05-081-2/+10
| | | | | | | | udev likes to get information about a device as key=value pairs so it can create disk/by-id links etc. So add --export flag which causes the output of --detail to easily parsable. From: Kay Sievers <kay.sievers@novell.com>
* Send help text to stdout rather than stderr.Neil Brown2007-05-081-9/+17
| | | | This helps with piping to a pager for example.
* Add new mode: --incrementalNeil Brown2006-12-211-0/+39
| | | | | --incremental allows arrays to be assembled one device at a time. This is expected to be used with udev.
* Support --uuid= with --create to choose your own UUID.Neil Brown2006-12-141-0/+2
|
* --wait or -W will wait for resync activity to finish on the given devices.Neil Brown2006-12-141-1/+4
|
* Support --update=devicesize for cases where the underlying device can change ↵Neil Brown2006-12-141-2/+4
| | | | size.
* Support --examine --brief --verbose properlyNeil Brown2006-10-231-0/+2
| | | | | Similar to -Esv, this combination should print out the 'devices=' line in the otherwise --breif output.
* Improve error message when wrong --update option is given.Neil Brown2006-10-231-1/+7
|
* Don't trigger and error on -As if all arrays are already started.Luca Berra2006-10-161-1/+1
| | | | | | | From: Luca Berra <bluca@comedia.it> Put another way, if we find any active arrays, then assume things are going as planned.
* Allow symlink creation to be disabled from command line or mdadm.confNeil Brown2006-08-111-0/+20
|
* Fix starting of degraded arrays.Neil Brown2006-08-071-5/+3
| | | | | Recent change broke assembling of degraded arrays, making it require --run. This fixes that.
* More consistent honoring of --configfileNeil Brown2006-06-261-15/+16
| | | | | Never use /etc/mdadm.conf if --config file is given (previously some code used one, some used the other).
* Get --stop to honour --quietNeil Brown2006-06-021-4/+4
| | | | | | | And as a side effect, if --quiet isn't given, stopped devices are reported. Signed-off-by: Neil Brown <neilb@suse.de>
* Don't try to create a new device when using --manage or --growNeil Brown2006-06-021-1/+1
| | | | | | ... as that's just silly! Signed-off-by: Neil Brown <neilb@suse.de>
* Release 2.5mdadm-2.5Neil Brown2006-05-261-1/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Support --auto-update-homehostNeil Brown2006-05-261-0/+27
| | | | | | | | | This can be used to bootstrape homehost tagging. If no arrays are found that are tagged, we look for any array and tag it. Signed-off-by: Neil Brown <neilb@suse.de>
* Support auto-assembling of stacked devicesNeil Brown2006-05-261-10/+20
| | | | | | and assorted bugfixes. Signed-off-by: Neil Brown <neilb@suse.de>
* Initial implementation of auto-assemblyNeil Brown2006-05-261-27/+55
| | | | | | This basically works, but needs various improvements and some tests. Signed-off-by: Neil Brown <neilb@suse.de>
* Support --update=homehost to allow updating of homehost information.Neil Brown2006-05-231-0/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Allow --update=name to update the name during assembly.Neil Brown2006-05-231-0/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Make sure homehost is set correctly when --update=uuidNeil Brown2006-05-231-4/+4
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Include homehost information in --examine as appropriateNeil Brown2006-05-191-1/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Include homehost information in --detail where appropriate.Neil Brown2006-05-191-2/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Make homehost information appear in superblock.Neil Brown2006-05-191-1/+8
| | | | | | | | When an array is created, if the homehost is know, the superblock gets it, either in the uuid, (via sha1) or in the name field. Signed-off-by: Neil Brown <neilb@suse.de>
* Allow homehost to be set on command line or in config fileNeil Brown2006-05-191-12/+20
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Just updaqte copyright dates and email addressNeil Brown2006-05-191-1/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* New flag --no-degradedNeil Brown2006-05-191-0/+4
| | | | | | | | | Use to avoid starting arrays if there are fewer devices available than last time the array was started. This is only needed with --scan, as with --scan, that behaviour is the default. Signed-off-by: Neil Brown <neilb@suse.de>
* Arrange the 'auto' setting in mdadm.conf can choose default type.Neil Brown2006-05-161-10/+12
| | | | | | | | | | | | 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-151-34/+3
| | | | | | Default owner, group, mode and 'auto' flag can be given in a 'CREATE' line. Signed-off-by: Neil Brown <neilb@suse.de>
* Limit size of bitmap to 2million chunks.Neil Brown2006-05-151-1/+0
| | | | | | | | When creating a file bitmap, choose a default size that results in fewer than 2^21 chunks. Without this kmalloc failure in the kernel becomes likely. Signed-off-by: Neil Brown <neilb@suse.de>
* Support new offset layout for raid10Neil Brown2006-05-151-3/+5
| | | | | | Requires 2.6.18. Signed-off-by: Neil Brown <neilb@suse.de>
* Support 'bitmap=' in mdadm.conf for auto-assembling arrays with write-intent ↵Neil Brown2006-03-291-0/+1
| | | | | | bitmaps in separate files. Signed-off-by: Neil Brown <neilb@suse.de>
* Kill old superblocks on create.Neil Brown2006-03-281-1/+1
| | | | | | | Make sure old-version superblocks are not around to confuse anything when a new array is created. Signed-off-by: Neil Brown <neilb@suse.de>
* Reduce dependance on MD_SB_DISKSNeil Brown2006-03-281-1/+1
| | | | | | --monitor should now work with arrays larger than 28 devices. Signed-off-by: Neil Brown <neilb@suse.de>
* Allow resize to backup to a file.Neil Brown2006-03-271-7/+37
| | | | | | | | | | To support resizing an array without a spare, mdadm now understands --backup-file= which should point to a file for storing a backup of critical data. This can be given to --grow which will create the file, or --assemble which will restore from the file if needed. Signed-off-by: Neil Brown <neilb@suse.de>
* Initial reshape supportNeil Brown2006-03-131-1/+2
| | | | | | Needs work for other levels etc. Signed-off-by: Neil Brown <neilb@suse.de>
* Release some compile fixes.Neil Brown2006-02-061-2/+9
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Sort mdstat entries so that composites are well-ordered.Neil Brown2006-01-311-2/+2
| | | | | | | This means that "-Ds" lists arrays in an approprate order for assembly. Signed-off-by: Neil Brown <neilb@suse.de>
* Prefer version-1 superblocks for v.large devices.Neil Brown2006-01-311-8/+0
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Stuff like..Neil Brown2006-01-301-1/+1
| | | | | | | | | - report Intent Bitmap in --detail - report internal bitmap in --examine - pass' --force through to --grow --bitmap - support v.large arrays in --grow --bitmap Signed-off-by: Neil Brown <neilb@suse.de>