]> git.ipfire.org Git - thirdparty/mdadm.git/log
thirdparty/mdadm.git
16 years agoAdd --auto-detect for in-kernel autodetect.
Neil Brown [Mon, 21 May 2007 04:25:44 +0000 (14:25 +1000)] 
Add --auto-detect for in-kernel autodetect.

This is equivalent to raidautorun that some distros provide.

16 years agoUpdate tests and add linear-add
Neil Brown [Mon, 21 May 2007 04:25:40 +0000 (14:25 +1000)] 
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.

16 years agoFix --grow --add for linear arrays.
Neil Brown [Mon, 21 May 2007 04:25:37 +0000 (14:25 +1000)] 
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.

16 years agoFix handling of negative bitmap offsets on 64bit hosts.
Neil Brown [Mon, 21 May 2007 04:25:30 +0000 (14:25 +1000)] 
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).

16 years agoSupport failing and removed of detached and faulty devices.
Neil Brown [Fri, 11 May 2007 06:13:03 +0000 (16:13 +1000)] 
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.

16 years agoMinor typo in mdadm man page
David Huffman [Fri, 11 May 2007 06:12:54 +0000 (16:12 +1000)] 
Minor typo in mdadm man page

From: David Huffman <dhuffman@storix.com>

16 years agoAdd --export option to --detail to use key=value pairs.
Kay Sievers [Tue, 8 May 2007 07:17:33 +0000 (17:17 +1000)] 
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>

16 years agoFix up calculation of bitmap space when creating v1 metadata.
Neil Brown [Tue, 8 May 2007 07:15:33 +0000 (17:15 +1000)] 
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.

16 years agoSend help text to stdout rather than stderr.
Neil Brown [Tue, 8 May 2007 07:14:00 +0000 (17:14 +1000)] 
Send help text to stdout rather than stderr.

This helps with piping to a pager for example.

16 years agoTypo in mdadm.conf man page
Neil Brown [Tue, 8 May 2007 07:13:51 +0000 (17:13 +1000)] 
Typo in mdadm.conf man page

16 years agoHyphens and Other Manpage Typography, 4/4: literal ASCII hyphens.
Peter Samuelson [Tue, 8 May 2007 07:13:44 +0000 (17:13 +1000)] 
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>
16 years agoHyphens and Other Manpage Typography, 3/4: bold options.
Peter Samuelson [Tue, 8 May 2007 07:13:36 +0000 (17:13 +1000)] 
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>
16 years agoHyphens and Other Manpage Typography, 2/4: proper nroff "em dash".
Peter Samuelson [Tue, 8 May 2007 07:13:25 +0000 (17:13 +1000)] 
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>
16 years agoHyphens and Other Manpage Typography, 1/4:
Peter Samuelson [Tue, 8 May 2007 07:13:03 +0000 (17:13 +1000)] 
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>
16 years agoMinor manpage fixes
Neil Brown [Tue, 8 May 2007 07:12:50 +0000 (17:12 +1000)] 
Minor manpage fixes

16 years agoRemove bogus add_dev definition.
Neil Brown [Tue, 8 May 2007 07:12:33 +0000 (17:12 +1000)] 
Remove bogus add_dev definition.

If nether ftw nor nftw are available, add_dev gets defined twice.
Fix that...

17 years agoRelease 2.6.1 mdadm-2.6.1
Neil Brown [Thu, 22 Feb 2007 04:04:59 +0000 (15:04 +1100)] 
Release 2.6.1

17 years agoDon't include uclibc as part of 'everything'
Neil Brown [Thu, 22 Feb 2007 03:59:31 +0000 (14:59 +1100)] 
Don't include uclibc as part of 'everything'

As I cannot compile in on x86-64.
Also, small dietlibc fix

17 years agoA couple of casts needed in printf statements.
Neil Brown [Thu, 22 Feb 2007 03:59:25 +0000 (14:59 +1100)] 
A couple of casts needed in printf statements.

17 years agoFixed old documentation in --grow --help
Neil Brown [Thu, 22 Feb 2007 03:59:22 +0000 (14:59 +1100)] 
Fixed old documentation in --grow --help

17 years agoTeach restripe to calculate Q syndrome for raid6.
Neil Brown [Thu, 22 Feb 2007 03:59:19 +0000 (14:59 +1100)] 
Teach restripe to calculate Q syndrome for raid6.

This allows mdadm to correctly restart a raid6 grow that
crashed during the critcal phase.

17 years agoFix a warning about an uninitialised variable.
Neil Brown [Thu, 22 Feb 2007 03:59:16 +0000 (14:59 +1100)] 
Fix a warning about an uninitialised variable.

The case that doesn't initialise it is impossible,
so just return with an error..

17 years agoFix a bug that was causing incorrect warning from --monitor.
Neil Brown [Thu, 22 Feb 2007 03:59:13 +0000 (14:59 +1100)] 
Fix a bug that was causing incorrect warning from --monitor.

17 years agoRelease 2.6 mdadm-2.6
Neil Brown [Thu, 21 Dec 2006 06:24:38 +0000 (17:24 +1100)] 
Release 2.6

17 years agoAdd new mode: --incremental
Neil Brown [Thu, 21 Dec 2006 06:10:52 +0000 (17:10 +1100)] 
Add new mode: --incremental

--incremental allows arrays to be assembled one device at a time.
This is expected to be used with udev.

17 years agoCentralise code for copying uuid
Neil Brown [Thu, 14 Dec 2006 06:33:14 +0000 (17:33 +1100)] 
Centralise code for copying uuid

Rather than opencoding the byteswap all the time.

17 years agoSupport --uuid= with --create to choose your own UUID.
Neil Brown [Thu, 14 Dec 2006 06:33:10 +0000 (17:33 +1100)] 
Support --uuid= with --create to choose your own UUID.

17 years agoFix bug where v1 superblock might appear active when they should be clean.
Neil Brown [Thu, 14 Dec 2006 06:32:59 +0000 (17:32 +1100)] 
Fix bug where v1 superblock might appear active when they should be clean.

Only happens on kernel with 32 bit sector_t.

17 years agoCentral calls to ioctl BLKGETSIZE
Neil Brown [Thu, 14 Dec 2006 06:32:57 +0000 (17:32 +1100)] 
Central calls to ioctl BLKGETSIZE

Instead of opencoding the same thing everywhere.

17 years agoDon't hold md device open for so long in --monitor mode
Neil Brown [Thu, 14 Dec 2006 06:32:53 +0000 (17:32 +1100)] 
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.

17 years agoCheck device is large enough before hot-add.
Neil Brown [Thu, 14 Dec 2006 06:32:49 +0000 (17:32 +1100)] 
Check device is large enough before hot-add.

This improves quality of error message.

17 years agoChange handling for "--assemble --force" when two drives disappeared at once.
Neil Brown [Thu, 14 Dec 2006 06:31:41 +0000 (17:31 +1100)] 
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.

17 years agoFix and test --update=uuid
Neil Brown [Thu, 14 Dec 2006 06:31:29 +0000 (17:31 +1100)] 
Fix and test --update=uuid

A number of odd bugs here, but now we have a regression test as well.

17 years agoWhen resync finished, report the mismatch count if there is one.
Neil Brown [Thu, 14 Dec 2006 06:31:25 +0000 (17:31 +1100)] 
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...

17 years ago--wait or -W will wait for resync activity to finish on the given devices.
Neil Brown [Thu, 14 Dec 2006 06:31:22 +0000 (17:31 +1100)] 
--wait or -W will wait for resync activity to finish on the given devices.

17 years agoChange 'Device Size' to 'Used Dev Size'
Neil Brown [Thu, 14 Dec 2006 06:31:19 +0000 (17:31 +1100)] 
Change 'Device Size' to 'Used Dev Size'

because it only shows how much of each device is actually used, not
how big they are.

17 years agoIncrease raid456 stripe cache size if needed to --grow the array.
Neil Brown [Thu, 14 Dec 2006 06:31:16 +0000 (17:31 +1100)] 
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.

17 years agoGive useful message if raid4/5/6 cannot be started because it is not clean and is...
Neil Brown [Thu, 14 Dec 2006 06:31:13 +0000 (17:31 +1100)] 
Give useful message if raid4/5/6 cannot be started because it is not clean and is also degraded.

17 years agoDefault to --auto=yes
Neil Brown [Thu, 14 Dec 2006 06:31:10 +0000 (17:31 +1100)] 
Default to --auto=yes

so the array devices with 'standard' names
get created automatically, as this is almost always what is wanted.

17 years agoFix a misleading comment.
Neil Brown [Thu, 14 Dec 2006 06:31:08 +0000 (17:31 +1100)] 
Fix a misleading comment.

17 years agoSupport --update=devicesize for cases where the underlying device can change size.
Neil Brown [Thu, 14 Dec 2006 06:31:03 +0000 (17:31 +1100)] 
Support --update=devicesize for cases where the underlying device can change size.

17 years agoImprove allocation and use of space for bitmaps in version1 metadata
Neil Brown [Thu, 14 Dec 2006 06:31:00 +0000 (17:31 +1100)] 
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.

17 years agoActually support --syslog
Neil Brown [Thu, 14 Dec 2006 06:30:56 +0000 (17:30 +1100)] 
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.

17 years agoRemove some unused interfaces to the metadata handlers.
Neil Brown [Thu, 14 Dec 2006 06:30:53 +0000 (17:30 +1100)] 
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...

17 years agoMake Assemble/Force work on raid6 with 2 missing devices.
Neil Brown [Thu, 14 Dec 2006 06:30:51 +0000 (17:30 +1100)] 
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.

17 years ago--update=resync did exactly the wrong thing for version1 metadata.
Neil Brown [Sun, 12 Nov 2006 22:12:09 +0000 (09:12 +1100)] 
--update=resync did exactly the wrong thing for version1 metadata.

17 years agoFixed UUID printing in "--detail --brief" for version1 metadata.
Neil Brown [Thu, 9 Nov 2006 05:28:27 +0000 (16:28 +1100)] 
Fixed UUID printing in "--detail --brief" for version1 metadata.

17 years agoRelease 2.5.6 mdadm-2.5.6
Neil Brown [Wed, 8 Nov 2006 23:00:32 +0000 (10:00 +1100)] 
Release 2.5.6

17 years agoFixed problems that could cause infinitel loop with auto assemble.
Neil Brown [Wed, 8 Nov 2006 22:38:50 +0000 (09:38 +1100)] 
Fixed problems that could cause infinitel loop with auto assemble.

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

17 years agoDocument that the default metadata version can be overridden in config file.
Goswin Brederlow [Wed, 8 Nov 2006 22:37:45 +0000 (09:37 +1100)] 
Document that the default metadata version can be overridden in config file.

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

17 years agoStrdup the bitmap file name found in the config file
Neil Brown [Wed, 8 Nov 2006 22:37:10 +0000 (09:37 +1100)] 
Strdup the bitmap file name found in the config file

Otherwise we quickly lose it...

17 years agoRelease 2-5-5 mdadm-2.5.5
Neil Brown [Fri, 3 Nov 2006 03:52:28 +0000 (14:52 +1100)] 
Release 2-5-5

17 years agoSupport --examine --brief --verbose properly
Neil Brown [Mon, 23 Oct 2006 05:51:26 +0000 (15:51 +1000)] 
Support --examine --brief --verbose properly

Similar to -Esv, this combination should print out the
'devices=' line in the otherwise --breif output.

17 years agoCheck error return on a couple of syscalls.
Michael Labuschke [Mon, 23 Oct 2006 04:56:35 +0000 (14:56 +1000)] 
Check error return on a couple of syscalls.

From: "Michael Labuschke" <michael@labuschke.de>

17 years agoUpdate test scripts for new blockdev
Neil Brown [Mon, 23 Oct 2006 04:56:22 +0000 (14:56 +1000)] 
Update test scripts for new blockdev

--getsize64 seems to have disappeared.

17 years agoImprove error message when wrong --update option is given.
Neil Brown [Sun, 22 Oct 2006 22:56:27 +0000 (08:56 +1000)] 
Improve error message when wrong --update option is given.

17 years agoIncrease default size of bitmap for v1 superblocks.
Neil Brown [Thu, 19 Oct 2006 06:46:38 +0000 (16:46 +1000)] 
Increase default size of bitmap for v1 superblocks.

It can be increased further, but that takes a bit more code
so will wait for 2.6.

17 years agoFix bugs related to raid10 and the new offset layout.
Neil Brown [Thu, 19 Oct 2006 06:38:29 +0000 (16:38 +1000)] 
Fix bugs related to raid10 and the new offset layout.

Need to mask of bits above the bottom 16 when calculating number of
copies.

17 years agoFix array-subscript error.
Neil Brown [Thu, 19 Oct 2006 06:38:20 +0000 (16:38 +1000)] 
Fix array-subscript error.

->name is sized to '33' to have room for a trailing nul,
but thhat needs to get put in position '32'.  Doh!

17 years agoDon't trigger and error on -As if all arrays are already started.
Luca Berra [Mon, 16 Oct 2006 05:27:48 +0000 (15:27 +1000)] 
Don't trigger and error on -As if all arrays are already started.

From: Luca Berra <bluca@comedia.it>

Put another way, if we find any active arrays, then assume things are
going as planned.

17 years agoDon't fail md_open if array already active.
Luca Berra [Mon, 16 Oct 2006 05:27:16 +0000 (15:27 +1000)] 
Don't fail md_open if array already active.

From: Luca Berra <bluca@comedia.it>

There is no need and it causes occasional problems.

17 years agoMdassemble improvements
Luca Berra [Mon, 16 Oct 2006 05:26:53 +0000 (15:26 +1000)] 
Mdassemble improvements

From: Luca Berra <bluca@comedia.it>

- Fix a bug where mdassemble didn't close a filedescriptor and so couldn't assembele
  stacked arrays.
- Allow mdassemble, when run a second time, to mark all arrays as writable.
  This is useful if they are started read-only as is best at boot-time.

17 years agoReduce max bitmap size when bitmap is in a file.
Neil Brown [Mon, 16 Oct 2006 05:26:43 +0000 (15:26 +1000)] 
Reduce max bitmap size when bitmap is in a file.

To ensure kernel never needs to allocate more than 1 page contiguously.

17 years agoFlush bitmap file before truncate.
Neil Brown [Mon, 16 Oct 2006 04:39:06 +0000 (14:39 +1000)] 
Flush bitmap file before truncate.

Otheriwse the last write happens on fclose which is after ftruncate,
to the truncate has no effect.

17 years agoDon't #include blkpg.h
Neil Brown [Mon, 16 Oct 2006 04:38:13 +0000 (14:38 +1000)] 
Don't #include blkpg.h

Just include the content directly.  It is safer.

17 years agoRelease 2-5-4 mdadm-2.5.4
Neil Brown [Fri, 13 Oct 2006 00:12:47 +0000 (10:12 +1000)] 
Release 2-5-4

17 years agoRemove partitions from components of an md array
Neil Brown [Thu, 12 Oct 2006 23:02:35 +0000 (09:02 +1000)] 
Remove partitions from components of an md array

They do nothing but cause confusion.

17 years agoAllow a number after --auto=yes
Neil Brown [Thu, 12 Oct 2006 22:23:16 +0000 (08:23 +1000)] 
Allow a number after --auto=yes

So if the device name is /dev/md/d0, then the number of
partitions is as given.  This is useful in 'CREATE' in
mdadm.conf

17 years agoImprove the message when mdadm detects similar superblocks
Neil Brown [Mon, 9 Oct 2006 21:06:24 +0000 (07:06 +1000)] 
Improve the message when mdadm detects similar superblocks

If they are for a partition and a whole device (common case)
they old message doesn't really cover the situation.  So add
the "overlap" option to the text.
Also detect whether the device list was in mdadm.conf and
act accordingly.

17 years agoClarify when update=super-minor happens automatcially
Neil Brown [Mon, 9 Oct 2006 21:06:08 +0000 (07:06 +1000)] 
Clarify when update=super-minor happens automatcially

.. in man page

17 years agoFix typo in earlier patch.
Neil Brown [Mon, 9 Oct 2006 20:30:07 +0000 (06:30 +1000)] 
Fix typo in earlier patch.

Thanks Martin Krafft

17 years agoFixed endian problem with bitmap metdata
Paul Clements [Mon, 9 Oct 2006 01:17:22 +0000 (11:17 +1000)] 
Fixed endian problem with bitmap metdata

From: Paul Clements <paul.clements@steeleye.com>

17 years agoFix some endian-ness issues with v1 superblocks.
Neil Brown [Mon, 9 Oct 2006 01:17:12 +0000 (11:17 +1000)] 
Fix some endian-ness issues with v1 superblocks.

17 years agoMake --examine report chunk size when it should
Neil Brown [Mon, 9 Oct 2006 01:16:56 +0000 (11:16 +1000)] 
Make --examine report chunk size when it should

Currently it doesn't for raid6 and raid10

17 years agoMinor man page and comment fixes
Neil Brown [Mon, 9 Oct 2006 01:16:33 +0000 (11:16 +1000)] 
Minor man page and comment fixes

Thanks To: "Scott Weikart" <Scott.W@Benetech.org>

17 years agoAllow symlink creation to be disabled from command line or mdadm.conf
Neil Brown [Fri, 11 Aug 2006 08:00:05 +0000 (18:00 +1000)] 
Allow symlink creation to be disabled from command line or mdadm.conf

17 years agoCreate symlinks from /dev into /dev/md
Neil Brown [Fri, 11 Aug 2006 08:00:00 +0000 (18:00 +1000)] 
Create symlinks from /dev into /dev/md

When (auto)creating devices in /dev/md/, create
an appropriate symlink from /dev to avoid confusion.

17 years agoMinor improvement in name auto-chosen for version-1 superblocks.
Neil Brown [Fri, 11 Aug 2006 07:59:57 +0000 (17:59 +1000)] 
Minor improvement in name auto-chosen for version-1 superblocks.

/dev/md_d0  should have name 'd0' by default to
make /dev/md/d0.

17 years agoRemove indeterminism from names in --examine --brief output.
Neil Brown [Fri, 11 Aug 2006 07:59:53 +0000 (17:59 +1000)] 
Remove indeterminism from names in --examine --brief output.

It is much better for this sort of thing to be predictable
rather than depending on what devices exist, especially as
these days entries in /dev/ often don't pre-exist.
So make it always
   /dev/mdX

for version0 superblocks.

Version1 are always /dev/md/NAME

17 years agoRelease 2.5.3 mdadm-2.5.3
Neil Brown [Mon, 7 Aug 2006 02:00:30 +0000 (12:00 +1000)] 
Release 2.5.3

17 years agoTidyup automatic name choice for v-1 arrays
Neil Brown [Mon, 7 Aug 2006 01:30:02 +0000 (11:30 +1000)] 
Tidyup automatic name choice for v-1 arrays

 /dev/md_d0 now becomes '0', not '_d0'.

17 years agoFix starting of degraded arrays.
Neil Brown [Mon, 7 Aug 2006 01:13:01 +0000 (11:13 +1000)] 
Fix starting of degraded arrays.

Recent change broke assembling of degraded arrays, making
it require --run.  This fixes that.

17 years agoExplicitly state GPL license in man pages.
Neil Brown [Mon, 7 Aug 2006 01:12:25 +0000 (11:12 +1000)] 
Explicitly state GPL license in man pages.

17 years agoDocument usage of version0.91 superblock.
Neil Brown [Mon, 7 Aug 2006 01:11:42 +0000 (11:11 +1000)] 
Document usage of version0.91 superblock.

17 years agoRelease 2.5.2 mdadm-2.5.2
Neil Brown [Tue, 27 Jun 2006 11:31:58 +0000 (21:31 +1000)] 
Release 2.5.2

Description...

17 years agoMore consistent honoring of --configfile
Neil Brown [Mon, 26 Jun 2006 05:11:01 +0000 (15:11 +1000)] 
More consistent honoring of --configfile

 Never use /etc/mdadm.conf if --config file is given (previously
some code used one, some used the other).

17 years agoFix user-after-free bug in error path in --monitor mode.
Neil Brown [Mon, 26 Jun 2006 05:10:55 +0000 (15:10 +1000)] 
Fix user-after-free bug in error path in --monitor mode.

17 years agoImprove ftw handling.
Neil Brown [Mon, 26 Jun 2006 05:10:48 +0000 (15:10 +1000)] 
Improve ftw handling.

If not 'ftw' is available, still allow openning of devices by dev number.

More recent version of uclibc support nftw, so add support to check
for that.

17 years agoFix a recently introduced bug, and make --assemble more resilient to it.
Neil Brown [Mon, 26 Jun 2006 02:26:12 +0000 (12:26 +1000)] 
Fix a recently introduced bug, and make --assemble more resilient to it.

Make -assemble a bit more resilient to finding strange
 information in superblocks.
Don't claim newly added spares are InSync!! (don't know why that
 code was ever in there)

17 years agoWork around bug in --add handling for version-1 superblocks
Neil Brown [Mon, 26 Jun 2006 02:26:09 +0000 (12:26 +1000)] 
Work around bug in --add handling for  version-1 superblocks

In 2.6.17 (and prior), the dev_number is ignored when a device
is added to an active array.  Rather the first free number is used.
So we work around this by making sure we use the first free
number for dev_number.

Description...

17 years agoAdd 'Array Slot' line to --examine for version-1 superblocks
Neil Brown [Mon, 26 Jun 2006 02:26:01 +0000 (12:26 +1000)] 
Add 'Array Slot' line to --examine for version-1 superblocks

to make it a bit easier to see what is happening.

17 years agoFix manpage typo
martin f krafft [Mon, 26 Jun 2006 02:07:12 +0000 (12:07 +1000)] 
Fix manpage typo

From: martin f krafft <madduck@madduck.net>

17 years agoGet the changelog uptodate for recent changes.
Neil Brown [Mon, 26 Jun 2006 02:06:01 +0000 (12:06 +1000)] 
Get the changelog uptodate for recent changes.

17 years agoMove a variable declaration to the declaration area.
Paul Clements [Tue, 20 Jun 2006 00:01:47 +0000 (10:01 +1000)] 
Move a variable declaration to the declaration area.

While declaring variables in the middle of code withs with
newer gcc's it doesn't work with older, and it is arguably
less readable, so just do the right thing.

From: Paul Clements <paul.clements@steeleye.com>

17 years agoStop map_dev from returning [0:0]
Neil Brown [Tue, 20 Jun 2006 00:01:43 +0000 (10:01 +1000)] 
Stop map_dev from returning [0:0]

We sometimes need the NULL when major==minor==0.
So make sure all callers of map_dev can cope with NULL.

17 years agoFix problem with post-increment usage in macro
Paul Clements [Tue, 20 Jun 2006 00:01:23 +0000 (10:01 +1000)] 
Fix problem with post-increment usage in macro

Bad/bad/bad, and cause compiler error on ppc (gcc 3.2.3).

From: Paul Clements <paul.clements@steeleye.com>

17 years agoRelease 2.5.1 mdadm-2.5.1
Neil Brown [Fri, 16 Jun 2006 00:54:14 +0000 (10:54 +1000)] 
Release 2.5.1

17 years agoUpdate Changelog for 2.5.1
Neil Brown [Fri, 16 Jun 2006 00:53:55 +0000 (10:53 +1000)] 
Update Changelog for 2.5.1

17 years agoFix offsetof macro for 64bit hosts
Neil Brown [Fri, 16 Jun 2006 00:53:50 +0000 (10:53 +1000)] 
Fix offsetof macro for 64bit hosts

17 years agoFix memory leak in monitor mode
Neil Brown [Fri, 16 Jun 2006 00:26:12 +0000 (10:26 +1000)] 
Fix memory leak in monitor mode

When rescanning /dev, we didn't free the old list.
Also don't search for device with a number of 0,0

Signed-off-by: Neil Brown <neilb@suse.de>