| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
The last one was wrong :-(
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
|
|
| |
Have "#ifdef STATIC" in config.c, and the 'rmconf' target
was a mess.
Instead, create 'pwgr.c' with stub routines for those unavailable
when statically compiled, and include that in STATICOBJ
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
| |
As it is now 'int', it needs to.
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
| |
From: "Dirk Jagdmann" <jagdmann@gmail.com>
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
| |
e.g. install-static to install the statically compiled version, etc.
From: "Dirk Jagdmann" <jagdmann@gmail.com>
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
| |
From: "Dirk Jagdmann" <jagdmann@gmail.com>
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
From: Luca Berra <bluca@vodka.it>
glibc 2.4 is pedantic on ignoring return values from fprintf, fwrite and
write, so now we check the rval and actually do something with it.
in the Grow.c case i only print a warning, since i don't think we can do
anything in case we fail invalidating those superblocks (is should never
happen, but then...)
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
|
|
|
|
| |
glibc says of rand
Do not use this function in applications intended to be
portable when good randomness is needed.
Go figure...
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
|
| |
pass CFLAGS to mdassemble build, enabling -Wall -Werror showed some
issues also fixed by the patch.
From: Luca Berra <bluca@vodka.it>
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
|
|
| |
fix for another srict-aliasing problem, you can typecast a reference to a
void pointer to anything, you cannot typecast a reference to a
struct.
From: Luca Berra <bluca@vodka.it>
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
| |
From: Luca Berra <bluca@vodka.it>
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
| |
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
| |
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
|
|
|
| |
This can be used to bootstrape homehost tagging.
If no arrays are found that are tagged, we look for any array
and tag it.
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
| |
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
| |
and assorted bugfixes.
Signed-off-by: Neil Brown <neilb@suse.de>
|
|
|
|
|
|
| |
This is just too risky.
Signed-off-by: Neil Brown <neilb@suse.de>
|