| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
From: "Michael Labuschke" <michael@labuschke.de>
|
|
|
|
| |
--getsize64 seems to have disappeared.
|
| |
|
|
|
|
|
| |
It can be increased further, but that takes a bit more code
so will wait for 2.6.
|
|
|
|
|
| |
Need to mask of bits above the bottom 16 when calculating number of
copies.
|
|
|
|
|
| |
->name is sized to '33' to have room for a trailing nul,
but thhat needs to get put in position '32'. Doh!
|
|
|
|
|
|
|
| |
From: Luca Berra <bluca@comedia.it>
Put another way, if we find any active arrays, then assume things are
going as planned.
|
|
|
|
|
|
| |
From: Luca Berra <bluca@comedia.it>
There is no need and it causes occasional problems.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
To ensure kernel never needs to allocate more than 1 page contiguously.
|
|
|
|
|
| |
Otheriwse the last write happens on fclose which is after ftruncate,
to the truncate has no effect.
|
|
|
|
| |
Just include the content directly. It is safer.
|
| |
|
|
|
|
| |
They do nothing but cause confusion.
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
.. in man page
|
|
|
|
| |
Thanks Martin Krafft
|
|
|
|
| |
From: Paul Clements <paul.clements@steeleye.com>
|
| |
|
|
|
|
| |
Currently it doesn't for raid6 and raid10
|
|
|
|
| |
Thanks To: "Scott Weikart" <Scott.W@Benetech.org>
|
| |
|
|
|
|
|
| |
When (auto)creating devices in /dev/md/, create
an appropriate symlink from /dev to avoid confusion.
|
|
|
|
|
| |
/dev/md_d0 should have name 'd0' by default to
make /dev/md/d0.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
/dev/md_d0 now becomes '0', not '_d0'.
|
|
|
|
|
| |
Recent change broke assembling of degraded arrays, making
it require --run. This fixes that.
|
| |
|
| |
|
|
|
|
| |
Description...
|
|
|
|
|
| |
Never use /etc/mdadm.conf if --config file is given (previously
some code used one, some used the other).
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
| |
to make it a bit easier to see what is happening.
|
|
|
|
| |
From: martin f krafft <madduck@madduck.net>
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
We sometimes need the NULL when major==minor==0.
So make sure all callers of map_dev can cope with NULL.
|
|
|
|
|
|
| |
Bad/bad/bad, and cause compiler error on ppc (gcc 3.2.3).
From: Paul Clements <paul.clements@steeleye.com>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
|
| |
Take it out for cosmetic reasons to prevent duplicate -DDEBIAN.
Signed-off-by: Neil Brown <neilb@suse.de>
|