summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update spec to exploded source repo style spec file and bump release for rebuildf8Doug Ledford2008-07-241-20/+12
| | | | 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 mdadm.spec and mdmonitor.init from F-8 dist-cvs repoDoug Ledford2008-07-242-0/+417
| | | | Signed-off-by: Doug Ledford <dledford@redhat.com>
* Apply mdadm-2.6.1-build.patch from F-8 dist-cvs repoDoug Ledford2008-07-241-11/+13
| | | | 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.4mdadm-2.6.4Neil Brown2007-10-198-5/+43
|
* Remove partitions from a device before adding it to an array.Neil Brown2007-10-191-1/+1
| | | | | The 'remove_partitions' call is in the wrong place and applying to the wrong file.
* Add some extra consistency checks based on level.Neil Brown2007-10-172-6/+21
| | | | Also use LEVEL_LINEAR, LEVEL_MULTIPATH in place of -1 or -4 in a few places.
* Clarify the avail/used devices sizes with version1 superblock.Neil Brown2007-10-171-2/+2
| | | | | Not all of the device may be available. Of that, not all may be used (if devices are of different sizes).
* Make sure --auto=mdp is honoured properlyNeil Brown2007-10-171-0/+1
| | | | | This would only create partitioned devices if the device name was a 'standard' name. This this patch, any name will work.
* Fix restarting of a reshaping array.Neil Brown2007-10-161-0/+21
| | | | | | | | The last release broke the ability to assemble an array that was in the middle of a reshape. This patch adds code to test if the critical section needs to be restored or not so that - if we have failed to restore it, we know whether to fail or not.
* Also use &tst instead of st later on when loading v1 superblocksJérémy Bobbio2007-10-011-1/+1
|
* Fix segfault on assembly on amd64 with v1 superblocksmartin f. krafft2007-09-301-1/+1
| | | | | | | | Commit a40b4fe introduced a temporary supertype variable tst, instead of manipulating st directly. However, it was forgotton to pass &tst into the recursive load_super1 call, causing an infinite recursion. Signed-off-by: martin f. krafft <madduck@debian.org>
* Monitor.c s/MAXINT/INT_MAX/gmaximilian attems2007-09-271-6/+6
| | | | | | | include limits.h directly instead of values.h Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Neil Brown <neilb@suse.de>
* mdopen.c don't shadow major() and minor()maximilian attems2007-09-271-32/+32
| | | | | | | s/(major|minor)/\1_num/ Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Neil Brown <neilb@suse.de>
* Monitor.c include signal.h directlymaximilian attems2007-09-271-1/+1
| | | | | | | another small step for better klibc support, glibc compile tested. Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Neil Brown <neilb@suse.de>
* Add ANNOUNCE-2.6.1 to gitNeil Brown2007-09-241-0/+33
| | | | | Somehow this missed out of getting into .git even though it is in all tha tar-balls.
* Don't corrupt 'supertype' when speculatively calling load_super1Neil Brown2007-09-241-9/+10
| | | | | | | | When load_super1 is trying to see which sub-version of v1 superblock is present, failure will cause it to clear st->ss, which is not good. So use a temporary 'super_type' for the 'test if this version works' calls, then copy that into 'st' on success.
* config.c include dirent.h instead sys/dir.hmaximilian attems2007-09-241-1/+1
| | | | | | | | | | sys/dir.h is an old BSD'ism, include dirent directly. small step for better klibc support. compile tested against glibc. Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Neil Brown <neilb@suse.de>
* Create.c s/major/major_num/maximilian attems2007-09-241-4/+4
| | | | | | | don't shadow the major() function by int major. Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Neil Brown <neilb@suse.de>
* Add klibc support to mdadm.hmaximilian attems2007-09-241-1/+8
| | | | | | | | klibc still misses a lot functionality to let mdadm link against, this small step helps to get to the real trouble.. :) Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Neil Brown <neilb@suse.de>
* Make "--write-mostly" effective when re-adding a device to an array.Neil Brown2007-09-241-3/+5
| | | | | | | | | Fixes Debian Bug 442874 When we discover that we can 're-add' a drive, we forget to check the write-mostly flag. This highlights the fact that you cannot turn 'off' the write-mostly flag at this point. I wonder if that is a problem...
* Explain the read-balancing algorithm for RAID1 better in md.4Iustin Pop2007-09-115-0/+7
| | | | | | | | | | | From: Iustin Pop <iusty@k1024.org> There are many questions on the mailing list about the RAID1 read performance profile. This patch adds a new paragraph to the RAID1 section in md.4 that details what kind of speed-up one should expect from RAID1. Signed-off-by: Iustin Pop <iusty@k1024.org>
* Release 2.6.3mdadm-2.6.3Neil Brown2007-08-207-7/+52
|
* Update changelogNeil Brown2007-08-201-0/+9
|
* Report error when grow cannot be restarted.Neil Brown2007-08-202-3/+5
| | | | | | Make sure that if --assemble find an array in the critical region of a reshape, and cannot find the critical data to restart the reshape, it gives an error message.
* Fix error message when adding a device that is too small.Neil Brown2007-08-202-6/+8
| | | | | We were multiplying MD_RESERVED_SECTORS by 1024 instead of 512, so lots of 'is it too small' checks were wrong.
* Fix problem with add a device to a 1.x array created with older mdadm.Neil Brown2007-08-206-0/+7
| | | | | | When adding new disk to an array, don't reserve so much bitmap space that the disk cannot store the required data. (Needed when 1.x array was created with older mdadm).
* 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.
* "--export" segfaults with non-persistent super blocksTim Woods2007-07-231-1/+2
| | | | | | | From: Tim Woods <timwoods@uklinux.net> This patch fixes a NULL pointer dereference in Detail.c when running 'mdadm --detail --export' on a device with non-persistent super blocks.
* In the MISC MODE section in mdadm(8), the names of the options should beNeil Brown2007-07-231-8/+8
| | | | | | | | in bold. -- AYM 2007-01-14 diff -ur mdadm-2.6/mdadm.8 mdadm-2.6-man1/mdadm.8
* Substantial corrections to man pages.Scott Weikart2007-07-134-159/+156
| | | | | | From: "Scott Weikart" <Scott.W@Benetech.org> Thanks Scott!
* Typo in man page: Multipath has an L ...Neil Brown2007-07-111-1/+1
|
* Allow "--write-behind=" to be done in grow mode.Ian Dall2007-07-092-0/+4
| | | | | | | | | 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.
* Enhance raid4 support: --assemble and --monitor wasn't quite happy with it.Doug Ledford2007-07-093-8/+10
| | | | | | | | | | | | | | | | | | | | | | | From: Doug Ledford <dledford@redhat.com> This one actually does a couple things. Mainly related to raid4, but kinda touches other raid levels some. When creating a raid4 array, treat it like a raid5 array in that we create it in degraded mode by default and add the last disk as a spare. Besides speeding things up, this has a second effect that it makes mdadm more consistent. In order to create a degraded raid5 array, you need only passing missing as one of the devices. For a degraded raid4 array, prior to this patch, you must pass assume-clean or else it refuses to create the array. Even force won't make it work without assume-clean. With the patch, raid4 behaves identical to raid5. Separate from that, the monitor functionality completely ignores raid4 arrays. That seems to stem from the code that checks to see if the array is part of a long list of types. It seems easier to check which array types *aren't* redundant instead of listing the ones that are redundant and missing some of them. This makes the monitor service actually watch raid4 arrays.
* Fix parsing of "-a" in various contexts.Doug Ledford2007-07-093-3/+8
| | | | | | | | | | | | 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.
* Mark some files FD_CLOEXEC to protect sendmail from them.Doug Ledford2007-07-092-1/+6
| | | | | | | | | | | From: Doug Ledford <dledford@redhat.com> When running with SELinux enabled and using mdadm to monitor devices, attempts to send emails to an admin will be blocked because mdadm is holding open /proc/mdstat without setting the FD_CLOEXEC flag. As a result, sendmail has an open descriptor to /proc/mdstat after the popen() call, which SELinux decides isn't really any of sendmail's business and so sendmail gets denied.
* Improve error message when trying to create an array that already exists.Doug Ledford2007-07-091-1/+11
| | | | | | | | | From: Doug Ledford <dledford@redhat.com> Simple bugfix. If an array already exists and we are asked to create this array, error out with an error message that makes sense to people instead of an error that the SET_ARRAY_INFO ioctl had an invalid argument. Plus a typo correction.
* Interpret "--metadata=1" with --assemble to imply any version-1, not just 1.0Doug Ledford2007-07-091-8/+29
| | | | | | | | | | | | | | | | | | | | | | From: Doug Ledford <dledford@redhat.com> OK, this one fixes an issue where people were doing manual array creation and specifying superblock types other than 1.0 (aka, 1.1, 1.2) and then using mdadm -Ebs to populate their mdadm.conf file. The general problem is that if you specify a superblock type in the ARRAY line (or on the command line), then you must specify the superblock type *exactly*, including the minor version. Unfortunately, mdadm -Ebs prints out all version 1 superblocks, regardless of minor version, as just plain old 1. This breaks the mdadm.conf file for anything other than plain version 1 superblock devices. So, since I thought it was basically backwards that the mdadm -E output was lax on specifying the location of the superblock where as the mdadm -A input was strict, I reversed that. With this patch, the mdadm -E output is now exact for any given superblock. But, in addition, the mdadm -A input is now lax for any superblock that doesn't specifically list the minor version, aka version 1 now means version 1, not version 0.90, but any minor version. So does default/large.
* Fix spare migration and other problems with --monitor.Neil Brown2007-07-092-0/+3
| | | | | 2.6 broke --monitor in various ways, including spare migration stopped working. This fixes it.
* Compile with various -O flags for testing.Neil Brown2007-05-221-2/+14
| | | | | "make everything" now compiles with -O2 and -Os to increase coverage for compiler generated warnings.
* Fix compile error in Detail.cNeil Brown2007-05-221-1/+1
| | | | | 'avail' is undefined if '--export', so make sure we don't try to use it.
* Release 2.6.2mdadm-2.6.2Neil Brown2007-05-218-13/+48
|
* Make return code for "--detail --test" more reliable.Neil Brown2007-05-213-6/+17
| | | | Missing devices as well as failed devices cause an error.
* Improve error message for adding bitmap to a level that cannot support it.Neil Brown2007-05-214-5/+26
| | | | Also give error on --build if no devices given.
* Add --auto-detect for in-kernel autodetect.Neil Brown2007-05-218-1/+74
| | | | This is equivalent to raidautorun that some distros provide.