summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Correct the rules file for assembly of devices only when fully availablefedora-develDoug Ledford2008-10-291-1/+1
| | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* Make incremental mode work with partitionable arraysDoug Ledford2008-10-293-11/+117
| | | | | | | | | | | | | | | | | | | | There were multiple problems with incremental mode and partitionable arrays. Change the logic to pay more attention to what it finds in mdadm.conf when setting up incremental arrays. Modify is_standard to differentiate between a required partitioned name format and an optionally partitioned named format. Modify open_mddev() to know about change to is_standard. Make Incremental differentiate between create default autof setting, command line autof setting, and array specific autof setting, with order of preference being command line, conf file, default. Disable the homehost test in the event there is no match for an array so we can hotplug new arrays into a running machine without them having to exist in mdadm.conf first (a random array number will be picked for the hot plugged array). Honor any name from mdadm.conf that matches the UUID of a device, not just standard names. Verify that the array name as matched in mdadm.conf allows the requested mode of operation and reject attempts to start non-partitionable arrays as partitioned and vice versa. Signed-off-by: Doug Ledford <dledford@redhat.com>
* Fix NULL pointer oopsDoug Ledford2008-10-291-4/+10
| | | | | | | | | | | RAID10 is the only raid level that uses the avail char array pointer during the enough() operation, so it was the only one that saw this. The code in incremental assumes unconditionally that count_active will allocate the avail char array, that it might be used by enough, and that it will need to be freed afterward. Once you make count_active actually do that, then the oops goes away. Signed-off-by: Doug Ledford <dledford@redhat.com>
* Fix bad metadata formattingDoug Ledford2008-10-283-4/+10
| | | | | | | | | | Certain operations (Detail.c mainly) would print out the metadata of an array in a format that the scan operation in super0.c and super1.c would later reject as unknown when it was found in the mdadm.conf file. Use a consistent format, but also modify the super0 and super1 match methods to accept the other format without complaint. Signed-off-by: Doug Ledford <dledford@redhat.com>
* Merge commit 'mdadm-2.6.7.1' into fedora-develDoug Ledford2008-10-2811-14/+64
|\
| * Release 2.6.7.1mdadm-2.6.7.xNeilBrown2008-10-156-4/+32
| | | | | | | | Special point release for Debian-Lenny
| * Manage: allow adding device that is just large enough to v1.x array.NeilBrown2008-10-154-9/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | When adding a device to an array, we check that it is large enough. Currently the check makes sure there is also room for a reasonably sized bitmap. But if the array doesn't have a bitmap, then this test might be too restrictive. So when adding, only insist there is enough space for the current bitmap. When Creating, still require room for the standard sized bitmap. This resolved Debian Bug 500309
| * Fix bug in forced assemble.Chris Webb2008-10-151-1/+1
| | | | | | | | | | | | | | We are loading into the already-loaded 'st' instead of the newly create 'tst', which is clearly wrong. Resolves Debian Bugs 496334/499643/498505
* | Update spec to exploded source repo style spec file and bump release for rebuildDoug Ledford2008-07-241-25/+12
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Install the mdadm.rules file as wellDoug Ledford2008-07-241-0/+1
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Add Makefile.local and install the mdmonitor script from thereDoug Ledford2008-07-241-0/+7
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Add remaining files from devel dist-cvs repoDoug Ledford2008-07-243-0/+448
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Apply mdadm-2.6.4-open.patch from F-9 dist-cvs repoDoug Ledford2008-07-247-9/+9
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Apply mdadm-2.6.1-build.patch from F-9 dist-cvs repoDoug Ledford2008-07-241-13/+16
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Apply mdadm-2.5.2-cflags.patch from F-8 dist-cvs repoDoug Ledford2008-07-241-3/+3
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Apply mdadm-2.2-nodiet.patch from F-8 dist-cvs repoDoug Ledford2008-07-241-1/+1
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Apply mdadm-2.5.2-static.patch from F-8 dist-cvs repoDoug Ledford2008-07-241-7/+10
| | | | | | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Put in our generic distropkg/Makefile and create the distropkg directory ↵Doug Ledford2008-07-246-0/+34
| | | | | | | | | | | | structure Signed-off-by: Doug Ledford <dledford@redhat.com>
* | Add support for distribution specific build extensionsDoug Ledford2008-07-241-0/+6
|/ | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* Release 2.6.7mdadm-2.6.7Neil Brown2008-06-067-4/+38
|
* Avoid NULL reference calling free_super and elsewhere.Neil Brown2008-05-271-5/+7
| | | | | | | Since we made free_super a superswitch call, we need to be careful that st is non NULL before calling st->ss->free_super(st). Also when updating byteorder there is a chance of a similar NULL deref.
* Remove stray semicolonNeil Brown2008-05-271-1/+1
| | | | Causes compile error with gcc-2.95
* Fix autoassemble for stack arrays.Neil Brown2008-05-204-5/+38
| | | | | | | | 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.
* Release 2.6.6mdadm-2.6.6Neil Brown2008-05-197-4/+37
|
* Remove outdated HOWTO link and credit Jakob's contribution.David Greaves2008-05-191-5/+3
| | | | | | From: David Greaves <david@dgreaves.com> Signed-off-by: David Greaves <david@dgreaves.com>
* Include sysfs.c in mdassemble.autoNeil Brown2008-05-191-3/+5
| | | | and tidy up Makefile a bit.
* "make everything" now also makes mdassemble.autoNeil Brown2008-05-192-2/+8
| | | | | | | This is make MDASSEMBLE_AUTO=1 mdassemble.static so we now find compile bugs more easily.
* Release 2.6.5mdadm-2.6.5Neil Brown2008-05-157-5/+47
|
* Get Changelog uptodateNeil Brown2008-05-151-0/+8
|
* Compiple fixes for mdassemble and diet-libcNeil Brown2008-05-152-43/+45
|
* Don't try the auto-detect test when md_mod is a moduleNeil Brown2008-05-151-0/+7
| | | | ....as this cannot work.
* Fix support for --update=swapsuperNeil Brown2008-05-152-2/+4
| | | | The user of dup_super broke it.
* Recent change broken handling of metadata-less arrays.Neil Brown2008-05-152-3/+5
| | | | | In particular, failing a device would give a silly error message.
* Fix possible NULL dereference in super_by_fdNeil Brown2008-05-151-1/+2
|
* Avoid possible null dereference in Assemble.Neil Brown2008-05-151-1/+2
| | | | | If the first device we look at has no superblock, there is no 'st' to free, so don't free it.
* Set LOG_PID for syslogHans Lambermont2008-05-121-1/+1
| | | | From: Hans Lambermont <hans.lambermont@newtec.eu>
* add --export option to --examineKay Sievers2008-05-067-11/+74
| | | | | | | From: Kay Sievers <kay.sievers@vrfy.org> Cc: David Zeuthen <david@fubar.dk> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
* Make device-special files for partitions when using --incrementalNeil Brown2008-05-053-6/+11
|
* let '-a' be specified for Incremental modeDan Williams2008-05-052-3/+8
| | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Unify code into find_free_devnum.Neil Brown2008-05-054-41/+50
| | | | | Two places have code to find a free md device number. Make this a subroutine.
* fix load_super/free_super mismatch in util.cDan Williams2008-05-051-1/+1
| | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Simplistig locking for --incremental.Bill Nottingham2008-05-051-1/+14
| | | | | | | | | | | | | | | | | | From: Bill Nottingham <notting@redhat.com> mdadm --incremental doesn't really do any locking. If you get multiple events in parallel for the same device (that has not yet started), they will all go down the path to create the array. One will succeed, the rest will have SET_ARRAY_INFO die with -EBUSY (md: array mdX already has disks!) and will exit without adding the disk. Original bug report is: https://bugzilla.redhat.com/show_bug.cgi?id=433932 This is solved by adding very very rudimentary locking. Incremental() now opens the device with O_EXCL to ensure only one invocation is frobbing the array at once. A simple loop just tries to open 5 times a second for 5 seconds. If the array stays locked that long, you probably have bigger issues.
* Create /dev/md if needed and it doesn't exist.Bill Nottingham2008-05-051-0/+14
| | | | From: Bill Nottingham <notting@redhat.com>
* Fix RAID acronym in man page.Neil Brown2008-05-051-2/+2
| | | | The 'D' in 'RAID' stands for 'DISKS' even it md supports other 'devices'.
* Add a .gitignore file.Neil Brown2008-04-291-0/+5
|
* Use .\" instead of '''Neil Brown2008-04-291-66/+66
| | | | Debian bug 477273
* diff -ru mdadm-2.6.4-orig/Query.c mdadm-2.6.4/Query.cNeil Brown2008-04-292-0/+6
|
* Fix possible bug with bitmap space allocation with v1.0 metadataNeil Brown2008-04-294-13/+15
| | | | | When adding a device to an array, make sure we don't reserve so much space for the bitmap that there isn't room for the data.
* Small improvements to --incremental for arrays that are in the middle of reshapeNeil Brown2008-04-281-1/+2
| | | | | | There is still a problem: If array is partially assembled and started read-only, the last device doesn't get added properly. Probably a kernel problem.
* Allow creation of a RAID6 with a single missing device.Neil Brown2008-04-282-2/+19
| | | | | | | | This did not work before as we couldn't mark it clean as there would be some parity blocks out of sync, and raid6 will not assemble a dirty degraded array. So make such arrays doubly degraded (the last device becomes a spare) and clean.