Commit Graph

1968 Commits

Author SHA1 Message Date
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
Neil Brown
b7a708af6f Fixed UUID printing in "--detail --brief" for version1 metadata. 2006-11-09 16:28:27 +11:00
Neil Brown
9255bbc84f Release 2.5.6 2006-11-09 10:00:32 +11:00
Neil Brown
60e1bc1a33 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
2006-11-09 09:38:50 +11:00
Goswin Brederlow
2790ffe38a 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
2006-11-09 09:37:45 +11:00
Neil Brown
d87d0978e2 Strdup the bitmap file name found in the config file
Otherwise we quickly lose it...
2006-11-09 09:37:10 +11:00
Neil Brown
209b742f4d Release 2-5-5 2006-11-03 14:52:28 +11:00
Neil Brown
e843d5d779 Support --examine --brief --verbose properly
Similar to -Esv, this combination should print out the
'devices=' line in the otherwise --breif output.
2006-10-23 15:51:26 +10:00
Michael Labuschke
3a43c80392 Check error return on a couple of syscalls.
From: "Michael Labuschke" <michael@labuschke.de>
2006-10-23 14:56:35 +10:00
Neil Brown
81074c9f7b Update test scripts for new blockdev
--getsize64 seems to have disappeared.
2006-10-23 14:56:22 +10:00
Neil Brown
cbfbcb0b50 Improve error message when wrong --update option is given. 2006-10-23 08:56:27 +10:00
Neil Brown
1746711680 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.
2006-10-19 16:46:38 +10:00
Neil Brown
702b557b1c Fix bugs related to raid10 and the new offset layout.
Need to mask of bits above the bottom 16 when calculating number of
copies.
2006-10-19 16:38:29 +10:00
Neil Brown
26a0b8fd7a 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!
2006-10-19 16:38:20 +10:00
Luca Berra
1cac4c1b55 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.
2006-10-16 15:27:48 +10:00
Luca Berra
e60c27d04e Don't fail md_open if array already active.
From: Luca Berra <bluca@comedia.it>

There is no need and it causes occasional problems.
2006-10-16 15:27:16 +10:00
Luca Berra
435d4ebb2e 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.
2006-10-16 15:26:53 +10:00
Neil Brown
b39827de21 Reduce max bitmap size when bitmap is in a file.
To ensure kernel never needs to allocate more than 1 page contiguously.
2006-10-16 15:26:43 +10:00
Neil Brown
97a6748ce2 Flush bitmap file before truncate.
Otheriwse the last write happens on fclose which is after ftruncate,
to the truncate has no effect.
2006-10-16 14:39:06 +10:00
Neil Brown
0a816ef9fb Don't #include blkpg.h
Just include the content directly.  It is safer.
2006-10-16 14:38:13 +10:00
Neil Brown
8e64e04456 Release 2-5-4 2006-10-13 10:12:47 +10:00
Neil Brown
0430ed4868 Remove partitions from components of an md array
They do nothing but cause confusion.
2006-10-13 09:02:35 +10:00
Neil Brown
6ba83b5f5e 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
2006-10-13 08:23:16 +10:00
Neil Brown
d2df86e0a7 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.
2006-10-10 07:06:24 +10:00
Neil Brown
45c073c921 Clarify when update=super-minor happens automatcially
.. in man page
2006-10-10 07:06:08 +10:00
Neil Brown
c1c05f7f9a Fix typo in earlier patch.
Thanks Martin Krafft
2006-10-10 06:30:07 +10:00
Paul Clements
10ae45c12c Fixed endian problem with bitmap metdata
From: Paul Clements <paul.clements@steeleye.com>
2006-10-09 11:17:22 +10:00
Neil Brown
83205b6419 Fix some endian-ness issues with v1 superblocks. 2006-10-09 11:17:12 +10:00
Neil Brown
2c102711fd Make --examine report chunk size when it should
Currently it doesn't for raid6 and raid10
2006-10-09 11:16:56 +10:00
Neil Brown
8f21823f39 Minor man page and comment fixes
Thanks To: "Scott Weikart" <Scott.W@Benetech.org>
2006-10-09 11:16:33 +10:00
Neil Brown
38098016ca Allow symlink creation to be disabled from command line or mdadm.conf 2006-08-11 18:00:05 +10:00
Neil Brown
0a6e1c6743 Create symlinks from /dev into /dev/md
When (auto)creating devices in /dev/md/, create
an appropriate symlink from /dev to avoid confusion.
2006-08-11 18:00:00 +10:00
Neil Brown
d1e80164a2 Minor improvement in name auto-chosen for version-1 superblocks.
/dev/md_d0  should have name 'd0' by default to
make /dev/md/d0.
2006-08-11 17:59:57 +10:00
Neil Brown
c56d3db4d3 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
2006-08-11 17:59:53 +10:00
Neil Brown
3b936f2c2e Release 2.5.3 2006-08-07 12:00:30 +10:00
Neil Brown
60248f7433 Tidyup automatic name choice for v-1 arrays
/dev/md_d0 now becomes '0', not '_d0'.
2006-08-07 11:30:02 +10:00
Neil Brown
43f2372a03 Fix starting of degraded arrays.
Recent change broke assembling of degraded arrays, making
it require --run.  This fixes that.
2006-08-07 11:13:01 +10:00
Neil Brown
90fc992e4e Explicitly state GPL license in man pages. 2006-08-07 11:12:25 +10:00
Neil Brown
2a940e3619 Document usage of version0.91 superblock. 2006-08-07 11:11:42 +10:00
Neil Brown
2a91e1491e Release 2.5.2
Description...
2006-06-27 21:31:58 +10:00
Neil Brown
8aec876d2e More consistent honoring of --configfile
Never use /etc/mdadm.conf if --config file is given (previously
some code used one, some used the other).
2006-06-26 15:11:01 +10:00
Neil Brown
8bd2e0c339 Fix user-after-free bug in error path in --monitor mode. 2006-06-26 15:10:55 +10:00
Neil Brown
45e878bba6 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.
2006-06-26 15:10:48 +10:00
Neil Brown
08110d41bc 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)
2006-06-26 12:26:12 +10:00
Neil Brown
7eae7080e2 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...
2006-06-26 12:26:09 +10:00
Neil Brown
c3684618b7 Add 'Array Slot' line to --examine for version-1 superblocks
to make it a bit easier to see what is happening.
2006-06-26 12:26:01 +10:00
martin f krafft
38dbfd8a8f Fix manpage typo
From: martin f krafft <madduck@madduck.net>
2006-06-26 12:07:12 +10:00