summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Update tests and add linear-addNeil Brown2007-05-217-9/+36
| | | | | | Update the testing scripts to allow for new space calculations for space for bitmaps. Add a test script for adding devices to linear arrays.
* Fix --grow --add for linear arrays.Neil Brown2007-05-214-15/+45
| | | | | | | | | | | | | The new superblock needs to have a new disk.number. This is a bit of a hack... Fix handling of negative bitmap offsets on 64bit hosts. The bitmap offset is a signed 32bit number, so casting to (long) isn't sufficient. We must cast to (int32_t). Fix various problems with --grow --add for linear. The code to add a drive to a live linear array had never been tested properly and so was buggy. This tidies it up and means that the new regression-test passes.
* Fix handling of negative bitmap offsets on 64bit hosts.Neil Brown2007-05-214-2/+2
| | | | | The bitmap offset is a signed 32bit number, so casting to (long) isn't sufficient. We must cast to (int32_t).
* Support failing and removed of detached and faulty devices.Neil Brown2007-05-113-18/+124
| | | | | This if you unplug a device and udev removes the entry from /dev, you can still remove the device.
* Minor typo in mdadm man pageDavid Huffman2007-05-111-1/+1
| | | | From: David Huffman <dhuffman@storix.com>
* Add --export option to --detail to use key=value pairs.Kay Sievers2007-05-087-5/+73
| | | | | | | | 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>
* Fix up calculation of bitmap space when creating v1 metadata.Neil Brown2007-05-081-31/+20
| | | | | | | We have the same calculation in multiple places with subtle differences. So unite it all. Also fix up and endian problem in --examine.
* Send help text to stdout rather than stderr.Neil Brown2007-05-081-9/+17
| | | | This helps with piping to a pager for example.
* Typo in mdadm.conf man pageNeil Brown2007-05-081-1/+1
|
* Hyphens and Other Manpage Typography, 4/4: literal ASCII hyphens.Peter Samuelson2007-05-083-282/+282
| | | | | | | | | | | | | | | | | | From: Peter Samuelson <peter@p12n.org> nroff formats "-" as the very short hyphen used for hyphenated terms and for splitting a word across two lines. When you want a literal ASCII "-", like for typing on a command line, you're supposed to use "\-" instead. Yeah, it sounds pedantic, but it actually makes a difference. With modern Unicode-capable terminals, "man" actually renders these with different characters, so if you try to search for "--create" in your favorite pager, you won't find it unless the nroff source says "\-\-create". This discrepancy doesn't generally show up with non-Unicode terminals. Signed-Off-By: Peter Samuelson <peter@p12n.org>
* Hyphens and Other Manpage Typography, 3/4: bold options.Peter Samuelson2007-05-082-48/+63
| | | | | | | | | From: Peter Samuelson <peter@p12n.org> Option names and example command lines seem to be boldface most of the time, fix up the few that weren't. Signed-Off-By: Peter Samuelson <peter@p12n.org>
* Hyphens and Other Manpage Typography, 2/4: proper nroff "em dash".Peter Samuelson2007-05-083-7/+7
| | | | | | | | | From: Peter Samuelson <peter@p12n.org> \(em renders as "--" in ASCII, and a nice em dash (i.e., a dash the width of the letter "m") in more capable formats like PostScript. Signed-Off-By: Peter Samuelson <peter@p12n.org>
* Hyphens and Other Manpage Typography, 1/4:Peter Samuelson2007-05-083-10/+10
| | | | | | | | | From: Peter Samuelson <peter@p12n.org> do not hyphenate terms: "override", "therein", "overwrite", "superblock format". Signed-Off-By: Peter Samuelson <peter@p12n.org>
* Minor manpage fixesNeil Brown2007-05-081-2/+2
|
* Remove bogus add_dev definition.Neil Brown2007-05-081-4/+0
| | | | | If nether ftw nor nftw are available, add_dev gets defined twice. Fix that...
* Release 2.6.1mdadm-2.6.1Neil Brown2007-02-226-5/+6
|
* Don't include uclibc as part of 'everything'Neil Brown2007-02-222-1/+6
| | | | | As I cannot compile in on x86-64. Also, small dietlibc fix
* A couple of casts needed in printf statements.Neil Brown2007-02-221-2/+4
|
* Fixed old documentation in --grow --helpNeil Brown2007-02-223-7/+14
|
* Teach restripe to calculate Q syndrome for raid6.Neil Brown2007-02-222-8/+115
| | | | | This allows mdadm to correctly restart a raid6 grow that crashed during the critcal phase.
* Fix a warning about an uninitialised variable.Neil Brown2007-02-222-0/+3
| | | | | The case that doesn't initialise it is impossible, so just return with an error..
* Fix a bug that was causing incorrect warning from --monitor.Neil Brown2007-02-222-1/+4
|
* Release 2.6mdadm-2.6Neil Brown2006-12-2110-9/+93
|
* Add new mode: --incrementalNeil Brown2006-12-2120-15/+1468
| | | | | --incremental allows arrays to be assembled one device at a time. This is expected to be used with udev.