Neil Brown
a328c097ff
Fix compile error in Detail.c
...
'avail' is undefined if '--export', so make sure we don't try to use
it.
2007-05-22 09:46:29 +10:00
Neil Brown
fffdbe5ed0
Release 2.6.2
2007-05-21 14:25:53 +10:00
Neil Brown
a77be58672
Make return code for "--detail --test" more reliable.
...
Missing devices as well as failed devices cause an error.
2007-05-21 14:25:50 +10:00
Neil Brown
5b28bd5672
Improve error message for adding bitmap to a level that cannot support it.
...
Also give error on --build if no devices given.
2007-05-21 14:25:47 +10:00
Neil Brown
1f48664b8e
Add --auto-detect for in-kernel autodetect.
...
This is equivalent to raidautorun that some distros provide.
2007-05-21 14:25:44 +10:00
Neil Brown
69646c1483
Update tests and add linear-add
...
Update the testing scripts to allow for new space calculations
for space for bitmaps.
Add a test script for adding devices to linear arrays.
2007-05-21 14:25:40 +10:00
Neil Brown
f752781f81
Fix --grow --add for linear arrays.
...
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.
2007-05-21 14:25:37 +10:00
Neil Brown
68754bd17c
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).
2007-05-21 14:25:30 +10:00
Neil Brown
b80da66161
Support failing and removed of detached and faulty devices.
...
This if you unplug a device and udev removes the entry from /dev,
you can still remove the device.
2007-05-11 16:13:03 +10:00
David Huffman
6f9a21a78f
Minor typo in mdadm man page
...
From: David Huffman <dhuffman@storix.com>
2007-05-11 16:12:54 +10:00
Kay Sievers
54bad3644f
Add --export option to --detail to use key=value pairs.
...
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>
2007-05-08 17:17:33 +10:00
Neil Brown
2fb749d1b7
Fix up calculation of bitmap space when creating v1 metadata.
...
We have the same calculation in multiple places with subtle differences.
So unite it all.
Also fix up and endian problem in --examine.
2007-05-08 17:15:33 +10:00
Neil Brown
0047d254e7
Send help text to stdout rather than stderr.
...
This helps with piping to a pager for example.
2007-05-08 17:14:00 +10:00
Neil Brown
16c4849bb6
Typo in mdadm.conf man page
2007-05-08 17:13:51 +10:00
Peter Samuelson
7e23fc43c3
Hyphens and Other Manpage Typography, 4/4: literal ASCII hyphens.
...
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>
2007-05-08 17:13:44 +10:00
Peter Samuelson
53e8b987bd
Hyphens and Other Manpage Typography, 3/4: bold options.
...
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>
2007-05-08 17:13:36 +10:00
Peter Samuelson
b3f1c093b7
Hyphens and Other Manpage Typography, 2/4: proper nroff "em dash".
...
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>
2007-05-08 17:13:25 +10:00
Peter Samuelson
35cc5be496
Hyphens and Other Manpage Typography, 1/4:
...
From: Peter Samuelson <peter@p12n.org>
do not hyphenate terms:
"override", "therein", "overwrite", "superblock format".
Signed-Off-By: Peter Samuelson <peter@p12n.org>
2007-05-08 17:13:03 +10:00
Neil Brown
1afe1167ae
Minor manpage fixes
2007-05-08 17:12:50 +10:00
Neil Brown
8e22992203
Remove bogus add_dev definition.
...
If nether ftw nor nftw are available, add_dev gets defined twice.
Fix that...
2007-05-08 17:12:33 +10:00
Neil Brown
e003092c07
Release 2.6.1
2007-02-22 15:04:59 +11:00
Neil Brown
f783ca4fa1
Don't include uclibc as part of 'everything'
...
As I cannot compile in on x86-64.
Also, small dietlibc fix
2007-02-22 14:59:31 +11:00
Neil Brown
eb9199fb5e
A couple of casts needed in printf statements.
2007-02-22 14:59:25 +11:00
Neil Brown
00be0b12d2
Fixed old documentation in --grow --help
2007-02-22 14:59:22 +11:00
Neil Brown
48327135d6
Teach restripe to calculate Q syndrome for raid6.
...
This allows mdadm to correctly restart a raid6 grow that
crashed during the critcal phase.
2007-02-22 14:59:19 +11:00
Neil Brown
ae491d1e2c
Fix a warning about an uninitialised variable.
...
The case that doesn't initialise it is impossible,
so just return with an error..
2007-02-22 14:59:16 +11:00
Neil Brown
3e6944b2cc
Fix a bug that was causing incorrect warning from --monitor.
2007-02-22 14:59:13 +11:00
Neil Brown
f8409e5478
Release 2.6
2006-12-21 17:24:38 +11:00
Neil Brown
8382f19bdc
Add new mode: --incremental
...
--incremental allows arrays to be assembled one device at a time.
This is expected to be used with udev.
2006-12-21 17:10:52 +11:00
Neil Brown
350f29f90d
Centralise code for copying uuid
...
Rather than opencoding the byteswap all the time.
2006-12-14 17:33:14 +11:00
Neil Brown
3d3dd91e38
Support --uuid= with --create to choose your own UUID.
2006-12-14 17:33:10 +11:00
Neil Brown
4855f95c70
Fix bug where v1 superblock might appear active when they should be clean.
...
Only happens on kernel with 32 bit sector_t.
2006-12-14 17:32:59 +11:00
Neil Brown
beae1dfe2e
Central calls to ioctl BLKGETSIZE
...
Instead of opencoding the same thing everywhere.
2006-12-14 17:32:57 +11:00
Neil Brown
ab5303d695
Don't hold md device open for so long in --monitor mode
...
map_dev can be slow and interferes with trying to stop the array.
2006-12-14 17:32:53 +11:00
Neil Brown
4a39c6f236
Check device is large enough before hot-add.
...
This improves quality of error message.
2006-12-14 17:32:49 +11:00
Neil Brown
c5a6f9a61d
Change handling for "--assemble --force" when two drives disappeared at once.
...
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.
2006-12-14 17:31:41 +11:00
Neil Brown
bf4fb153a4
Fix and test --update=uuid
...
A number of odd bugs here, but now we have a regression test as well.
2006-12-14 17:31:29 +11:00
Neil Brown
37dfc3d638
When resync finished, report the mismatch count if there is one.
...
This doesn't get mailed out, but will appear in syslog...
Maybe it should be mailed if it was a 'check' or 'repair' pass...
2006-12-14 17:31:25 +11:00
Neil Brown
b90c0e9a12
--wait or -W will wait for resync activity to finish on the given devices.
2006-12-14 17:31:22 +11:00
Neil Brown
e336254463
Change 'Device Size' to 'Used Dev Size'
...
because it only shows how much of each device is actually used, not
how big they are.
2006-12-14 17:31:19 +11:00
Neil Brown
758d3a8e7d
Increase raid456 stripe cache size if needed to --grow the array.
...
The setting used unfortunately requires intimate knowledge of the
kernel, and it not reset when the reshape finishes.
2006-12-14 17:31:16 +11:00
Neil Brown
583315d9c5
Give useful message if raid4/5/6 cannot be started because it is not clean and is also degraded.
2006-12-14 17:31:13 +11:00
Neil Brown
7572344665
Default to --auto=yes
...
so the array devices with 'standard' names
get created automatically, as this is almost always what is wanted.
2006-12-14 17:31:10 +11:00
Neil Brown
d645b91a1b
Fix a misleading comment.
2006-12-14 17:31:08 +11:00
Neil Brown
bee8ec56f4
Support --update=devicesize for cases where the underlying device can change size.
2006-12-14 17:31:03 +11:00
Neil Brown
199171a297
Improve allocation and use of space for bitmaps in version1 metadata
...
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.
2006-12-14 17:31:00 +11:00
Neil Brown
90cf1dddb2
Actually support --syslog
...
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.
2006-12-14 17:30:56 +11:00
Neil Brown
b5e3d1901f
Remove some unused interfaces to the metadata handlers.
...
This stuff has never been used (at least as far as git history can
see). I wonder why it was there...
2006-12-14 17:30:53 +11:00
Neil Brown
67a8c82d60
Make Assemble/Force work on raid6 with 2 missing devices.
...
Previously it onl worked when one missing device.
Also split the "force" update_super method into two and it
is really serving two functions.
2006-12-14 17:30:51 +11:00
Neil Brown
434b77559e
--update=resync did exactly the wrong thing for version1 metadata.
2006-11-13 09:12:09 +11:00