summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Centralise code for copying uuidNeil Brown2006-12-144-38/+25
| | | | Rather than opencoding the byteswap all the time.
* Support --uuid= with --create to choose your own UUID.Neil Brown2006-12-148-24/+59
|
* Fix bug where v1 superblock might appear active when they should be clean.Neil Brown2006-12-142-2/+4
| | | | Only happens on kernel with 32 bit sector_t.
* Central calls to ioctl BLKGETSIZENeil Brown2006-12-1412-141/+62
| | | | Instead of opencoding the same thing everywhere.
* Don't hold md device open for so long in --monitor modeNeil Brown2006-12-142-4/+22
| | | | map_dev can be slow and interferes with trying to stop the array.
* Check device is large enough before hot-add.Neil Brown2006-12-142-1/+37
| | | | This improves quality of error message.
* Change handling for "--assemble --force" when two drives disappeared at once.Neil Brown2006-12-142-1/+24
| | | | | | If two drives in a raid5 disappear at the same time, then "-Af" will add them both in rather than just one and forcing the array to 'clean'. This is slightly safer in some cases.
* Fix and test --update=uuidNeil Brown2006-12-147-15/+140
| | | | A number of odd bugs here, but now we have a regression test as well.
* When resync finished, report the mismatch count if there is one.Neil Brown2006-12-144-4/+28
| | | | | This doesn't get mailed out, but will appear in syslog... Maybe it should be mailed if it was a 'check' or 'repair' pass...
* --wait or -W will wait for resync activity to finish on the given devices.Neil Brown2006-12-146-3/+55
|
* Change 'Device Size' to 'Used Dev Size'Neil Brown2006-12-144-5/+13
| | | | | because it only shows how much of each device is actually used, not how big they are.
* Increase raid456 stripe cache size if needed to --grow the array.Neil Brown2006-12-144-2/+29
| | | | | The setting used unfortunately requires intimate knowledge of the kernel, and it not reset when the reshape finishes.
* Give useful message if raid4/5/6 cannot be started because it is not clean ↵Neil Brown2006-12-146-7/+42
| | | | and is also degraded.
* Default to --auto=yesNeil Brown2006-12-144-14/+19
| | | | | so the array devices with 'standard' names get created automatically, as this is almost always what is wanted.
* Fix a misleading comment.Neil Brown2006-12-141-1/+3
|
* Support --update=devicesize for cases where the underlying device can change ↵Neil Brown2006-12-144-7/+52
| | | | size.
* Improve allocation and use of space for bitmaps in version1 metadataNeil Brown2006-12-145-34/+114
| | | | | | | | | | Depending on the size of the array we reserve space for up to 128K of bitmap, and we use it where possible. When hot-adding to a version 1.0 we can still only use the 3K at the end though - need a sysfs interface to improve that. If a small chunksize is requested on Create, we don't auto-enlarge the reserved space - this still needs to be fixed.
* Actually support --syslogNeil Brown2006-12-141-0/+1
| | | | | | | Fixes-debian-bug: 402457 (part) All the code is there, and it works for '-y', but for some reason, "syslog" was missing from the long_options.
* Remove some unused interfaces to the metadata handlers.Neil Brown2006-12-143-38/+0
| | | | | This stuff has never been used (at least as far as git history can see). I wonder why it was there...
* Make Assemble/Force work on raid6 with 2 missing devices.Neil Brown2006-12-145-7/+29
| | | | | | Previously it onl worked when one missing device. Also split the "force" update_super method into two and it is really serving two functions.
* --update=resync did exactly the wrong thing for version1 metadata.Neil Brown2006-11-132-1/+3
|
* Fixed UUID printing in "--detail --brief" for version1 metadata.Neil Brown2006-11-092-1/+4
|
* Release 2.5.6mdadm-2.5.6Neil Brown2006-11-096-23/+56
|
* Fixed problems that could cause infinitel loop with auto assemble.Neil Brown2006-11-092-3/+21
| | | | | | | | | If an auto-assembly attempt failes because the array cannot be opened or because the array has already been created, then we get into an infinite loop. Reported-by: Dan Pascu <dan@ag-projects.com> Fixes-debian-bug: 396582
* Document that the default metadata version can be overridden in config file.Goswin Brederlow2006-11-092-0/+7
| | | | | | | | | From: Goswin Brederlow <brederlo@informatik.uni-tuebingen.de> This is already mentioned in the config documentation, but not in the place when the normal default is mentioned. Fixes-debian-bug: 396914
* Strdup the bitmap file name found in the config fileNeil Brown2006-11-092-1/+5
| | | | Otherwise we quickly lose it...