summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Mdassemble improvementsLuca Berra2006-10-166-9/+29
| | | | | | | | | 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.
* Reduce max bitmap size when bitmap is in a file.Neil Brown2006-10-162-3/+7
| | | | To ensure kernel never needs to allocate more than 1 page contiguously.
* Flush bitmap file before truncate.Neil Brown2006-10-161-0/+1
| | | | | Otheriwse the last write happens on fclose which is after ftruncate, to the truncate has no effect.
* Don't #include blkpg.hNeil Brown2006-10-162-1/+37
| | | | Just include the content directly. It is safer.
* Release 2-5-4mdadm-2.5.4Neil Brown2006-10-136-4/+43
|
* Remove partitions from components of an md arrayNeil Brown2006-10-136-0/+31
| | | | They do nothing but cause confusion.
* Allow a number after --auto=yesNeil Brown2006-10-132-0/+4
| | | | | | 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
* Improve the message when mdadm detects similar superblocksNeil Brown2006-10-101-3/+6
| | | | | | | | 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.
* Clarify when update=super-minor happens automatciallyNeil Brown2006-10-101-2/+9
| | | | .. in man page
* Fix typo in earlier patch.Neil Brown2006-10-101-1/+1
| | | | Thanks Martin Krafft
* Fixed endian problem with bitmap metdataPaul Clements2006-10-092-0/+2
| | | | From: Paul Clements <paul.clements@steeleye.com>
* Fix some endian-ness issues with v1 superblocks.Neil Brown2006-10-092-9/+19
|
* Make --examine report chunk size when it shouldNeil Brown2006-10-091-0/+2
| | | | Currently it doesn't for raid6 and raid10
* Minor man page and comment fixesNeil Brown2006-10-092-3/+3
| | | | Thanks To: "Scott Weikart" <Scott.W@Benetech.org>
* Allow symlink creation to be disabled from command line or mdadm.confNeil Brown2006-08-118-7/+75
|
* Create symlinks from /dev into /dev/mdNeil Brown2006-08-111-0/+28
| | | | | When (auto)creating devices in /dev/md/, create an appropriate symlink from /dev to avoid confusion.
* Minor improvement in name auto-chosen for version-1 superblocks.Neil Brown2006-08-111-1/+8
| | | | | /dev/md_d0 should have name 'd0' by default to make /dev/md/d0.
* Remove indeterminism from names in --examine --brief output.Neil Brown2006-08-111-5/+0
| | | | | | | | | | | | 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
* Release 2.5.3mdadm-2.5.3Neil Brown2006-08-076-4/+38
|
* Tidyup automatic name choice for v-1 arraysNeil Brown2006-08-072-2/+11
| | | | /dev/md_d0 now becomes '0', not '_d0'.
* Fix starting of degraded arrays.Neil Brown2006-08-072-5/+4
| | | | | Recent change broke assembling of degraded arrays, making it require --run. This fixes that.
* Explicitly state GPL license in man pages.Neil Brown2006-08-074-0/+19
|
* Document usage of version0.91 superblock.Neil Brown2006-08-072-0/+11
|
* Release 2.5.2mdadm-2.5.2Neil Brown2006-06-277-5/+51
| | | | Description...
* More consistent honoring of --configfileNeil Brown2006-06-269-52/+60
| | | | | Never use /etc/mdadm.conf if --config file is given (previously some code used one, some used the other).
* Fix user-after-free bug in error path in --monitor mode.Neil Brown2006-06-261-1/+1
|
* Improve ftw handling.Neil Brown2006-06-263-33/+45
| | | | | | | 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.
* Fix a recently introduced bug, and make --assemble more resilient to it.Neil Brown2006-06-263-1/+9
| | | | | | | 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)
* Work around bug in --add handling for version-1 superblocksNeil Brown2006-06-263-4/+21
| | | | | | | | | 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...
* Add 'Array Slot' line to --examine for version-1 superblocksNeil Brown2006-06-262-0/+14
| | | | to make it a bit easier to see what is happening.
* Fix manpage typomartin f krafft2006-06-261-1/+1
| | | | From: martin f krafft <madduck@madduck.net>
* Get the changelog uptodate for recent changes.Neil Brown2006-06-261-0/+5
|
* Move a variable declaration to the declaration area.Paul Clements2006-06-201-2/+1
| | | | | | | | 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>
* Stop map_dev from returning [0:0]Neil Brown2006-06-203-9/+11
| | | | | We sometimes need the NULL when major==minor==0. So make sure all callers of map_dev can cope with NULL.
* Fix problem with post-increment usage in macroPaul Clements2006-06-201-2/+4
| | | | | | Bad/bad/bad, and cause compiler error on ppc (gcc 3.2.3). From: Paul Clements <paul.clements@steeleye.com>
* Release 2.5.1mdadm-2.5.1Neil Brown2006-06-168-6/+48
|
* Update Changelog for 2.5.1Neil Brown2006-06-161-1/+17
|
* Fix offsetof macro for 64bit hostsNeil Brown2006-06-162-1/+1
|
* Fix memory leak in monitor modeNeil Brown2006-06-162-0/+13
| | | | | | | 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>
* Fix up some internalbitmap testsNeil Brown2006-06-163-1/+4
|
* Allow CONFFILE2 to be overridden during make invocation.martin f. krafft2006-06-021-1/+3
|
* CPPFLAGS gets used automatically on implicit rules. martin f krafft2006-06-021-1/+1
| | | | | | Take it out for cosmetic reasons to prevent duplicate -DDEBIAN. Signed-off-by: Neil Brown <neilb@suse.de>
* Avoid misdetection of overlapping partitions...Neil Brown2006-06-021-0/+19
| | | | | | | | | | | | | | | | As version-0.90 superblock don't record the superblock offset, it is possible for overlapping partitions, or a partition that starts on a 64K boundary in the whole device to result in mis-detection - one partition or device might be detected where the other was intended. To avoid this awkward possibility, we reject assembly attempts which seem to have two devices that are different but have the same version-0.90 superblock. To avoid this problem altogether, switch to version-1 metadata. Signed-off-by: Neil Brown <neilb@suse.de>
* Remove libssl dependancy and always use sha1.c codeNeil Brown2006-06-023-47/+27
| | | | | | | | Apparently there are license issues with openssl, so just use sha1.c always. This means we can get rid of SHA1.c Signed-off-by: Neil Brown <neilb@suse.de>
* Get --stop to honour --quietNeil Brown2006-06-022-5/+7
| | | | | | | And as a side effect, if --quiet isn't given, stopped devices are reported. Signed-off-by: Neil Brown <neilb@suse.de>
* Yet another include file that someone doesn't like....Neil Brown2006-06-021-1/+17
| | | | | | | It seems byteswap.h isn't universally accepted, so we do it by hand... Signed-off-by: Neil Brown <neilb@suse.de>
* Allow default metadata to be specified in mdadm.confNeil Brown2006-06-024-1/+40
| | | | | | | CREATE metadata=1 in mdadm.conf will cause version-1 superblocks to be the default. Signed-off-by: Neil Brown <neilb@suse.de>
* Don't try to create a new device when using --manage or --growNeil Brown2006-06-021-1/+1
| | | | | | ... as that's just silly! Signed-off-by: Neil Brown <neilb@suse.de>
* Finally (I hope) get byteorder stuff portable.Neil Brown2006-06-021-7/+18
| | | | | | | /usr/include/endian.h and /usr/include/byteswap.h together can give us almost what we need... Signed-off-by: Neil Brown <neilb@suse.de>
* Fix typo in mail message from --monitorNeil Brown2006-06-021-1/+1
| | | | | | From: martin f krafft <madduck@madduck.net> Signed-off-by: Neil Brown <neilb@suse.de>