| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
And as a side effect, if --quiet isn't given, stopped devices are
reported.
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
| |
It seems byteswap.h isn't universally accepted, so
we do it by hand...
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
| |
CREATE metadata=1
in mdadm.conf will cause version-1 superblocks to be the default.
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
| |
... as that's just silly!
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
| |
/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>
|
|
|
|
|
|
| |
From: martin f krafft <madduck@madduck.net>
Signed-off-by: Neil Brown <neilb@suse.de>
|