Neil Brown
9fca7d6236
check return status of all write/fwrite functions as required by glibc 2.4
...
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>
2006-05-29 02:06:32 +00:00
Neil Brown
41a3b72a9c
Release 2.5
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 07:12:48 +00:00
Neil Brown
d1f1011b94
Make sure everything compiles...
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 04:28:33 +00:00
Neil Brown
589395d696
Support --auto-update-homehost
...
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>
2006-05-26 04:16:07 +00:00
Neil Brown
d55e3aefc0
Support auto-assembling of stacked devices
...
and assorted bugfixes.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 03:11:57 +00:00
Neil Brown
da6b5ca9bd
Initial implementation of auto-assembly
...
This basically works, but needs various improvements and some tests.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 00:50:15 +00:00
Neil Brown
8a46fe8487
Allow autoassembly to choose it's own name for the array.
...
This cannot be used yet, but it is working towards auto-assembly.
When auto-assembling an array, we make a name in /dev/md/
giving a number (from the peferred minor) or name (from set-name).
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 06:46:40 +00:00
Neil Brown
83b6208e89
When assembly arrays using incomplete detail, prefer arrays built for this host.
...
i.e. if assembling with --name or --super-minor, then if we find two
different arrays with the same apparent identity, and one was built
for 'this' host, then prefer that one instead of giving up in disgust.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 06:33:28 +00:00
Neil Brown
811e6cbed7
Reorganise Assemble code somewhat.
...
We make sure all devices can are consistent before doing any --update
This saves us from updating some but not all of an array, and then
aborting.
It also means we can backtrack on out decisions, which we might want to
do later.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 06:12:40 +00:00
Neil Brown
624920bbb6
Make sure name matching for array assembly understand the possibility of a homehost
...
This "--assemble --name=foo" on host 'bar' will assemble an array named
'foo' or 'bar:foo'.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 05:24:22 +00:00
Neil Brown
c4f12c1340
Allow --update=name to update the name during assembly.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 04:57:04 +00:00
Neil Brown
e5eac01f3d
Make sure homehost is set correctly when --update=uuid
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 04:51:39 +00:00
Neil Brown
4f589ad0c5
Just updaqte copyright dates and email address
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 05:25:11 +00:00
Neil Brown
b8a8ccf945
New flag --no-degraded
...
Use to avoid starting arrays if there are
fewer devices available than last time the array was started.
This is only needed with --scan, as with --scan, that behaviour
is the default.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 04:53:22 +00:00
Neil Brown
8131b493df
When updating uuid, update the bitmap as well - external bitmaps
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-16 06:05:27 +00:00
Neil Brown
7ef02d0143
Support 'bitmap=' in mdadm.conf for auto-assembling arrays with write-intent bitmaps in separate files.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-29 02:57:48 +00:00
Neil Brown
06b0d78675
Allow resize to backup to a file.
...
To support resizing an array without a spare, mdadm now understands
--backup-file=
which should point to a file for storing a backup of critical data.
This can be given to --grow which will create the file, or
--assemble which will restore from the file if needed.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-27 06:38:46 +00:00
Neil Brown
313176636e
Remove ident arg from getinfo_super;
...
Add a 'name' field to 'info' to compensate.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-27 04:34:38 +00:00
Neil Brown
39c5a90983
Release 2.4-pre1
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-20 03:50:25 +00:00
Neil Brown
353632d927
Support restarting of a reshape on --assemble
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-20 03:17:31 +00:00
Neil Brown
838acbc272
Assorted fixes...
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-27 01:44:47 +00:00
Neil Brown
7d99579f6a
Support updating of uuid during --assemble.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:56:33 +00:00
Neil Brown
ee04451c56
Allow event counters to be off by one
...
.. even without --force
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:56:18 +00:00
Neil Brown
c06487ce20
Improve option parsing
...
stuff
====Do Not Remove====
Status: ok
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:54:33 +00:00
Neil Brown
8b0dabea07
Allow scanning of devices listed in /proc/partitions independant of /dev
...
If a device found in /proc/partitions isn't listed in /dev, then
mknod a temporary name and open that.
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-05 05:52:50 +00:00
Neil Brown
308e1801ba
Fix assembling of array with spares when verion-1 superblock is used.
...
As spared don't have a position in the raid array with verion-1 superblocks,
we need to handle them a bit differently.
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 05:23:11 +00:00
Neil Brown
265e0f1731
Fix assembling of raid10 in the face of missing devices.
...
We now check if enough devices are present properly, so
--force can be used to good effect.
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 04:57:52 +00:00
Neil Brown
6a41304b05
Fix but when assembling v1 arrays
...
Because raid_disk and disk.number are not longer in-sync,
it needed some work.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-15 06:35:38 +00:00
Neil Brown
dab6685f3d
Add 'quite' option and tidy up some tests.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-15 06:14:27 +00:00
Neil Brown
947fd4ddb5
Support nameing of version-1 arrays.
...
--name is recognised in --create and --assemble
name= is recognised in config file.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 05:23:20 +00:00
Neil Brown
586ed40547
Support fixing of byte-swapped superblocks.
...
Good for moving between little-endian and big-endian.
Still needs documentation.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 04:25:27 +00:00
Neil Brown
f277ce3671
Assorted Fixes for multiple bugs.
...
Assemble would crash, or just not work.
A few other problem found by a new test-suite.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-04 04:41:12 +00:00
Neil Brown
fbf8a0b7a6
Document this...
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-07-18 01:30:42 +00:00
Neil Brown
96395475fc
Make --zero-superblock work for version 1 superblocks.
...
This requires passing the supertype to store_super
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:45 +00:00
Neil Brown
11484a635a
Fix a test that will allow arrays with bitmaps to be assembled.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:47 +00:00
Neil Brown
c82f047cfc
Initial bitmap support
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:16:35 +00:00
Neil Brown
82d9eba687
super1
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Fix raid5 creation with new code.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-05-03 23:44:40 +00:00
Neil Brown
f9ce90ba50
Add a 'super-switch' so that different format superblocks can be used.
...
This includes:
adding --metadata= option to choose metadata format
adding metadata= word to config file.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-05-03 23:44:32 +00:00
Neil Brown
4b1ac34b51
Separate sueprblock handling into separate file
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-05-03 23:44:18 +00:00
Neil Brown
d7eaf49f65
Use O_EXCL when opening component devices to be assembled into an array
...
In 2.6, this will fail if the device is already in use, so we can detect this error
more easily.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 06:02:49 +00:00
Neil Brown
6f7e85bd16
Correct error message printed when the 'chosen_drive' cannot be added.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:26 +00:00
Neil Brown
0df46c2ad8
Change MAJOR() etc to major() etc
...
This allows for larger device number if glibc supports
it (requires 2.3.3).
Also fail before creating larger device number if glibc
support isn't present.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:13 +00:00
Neil Brown
e5329c3747
mdadm-1.7.0
2004-08-11 02:16:01 +00:00
Neil Brown
98c6faba80
mdadm-1.5.0
2004-01-22 02:10:29 +00:00
Neil Brown
feb716e9c3
mdadm-1.4.0
2003-10-28 23:20:01 +00:00
Neil Brown
aa88f531b4
mdadm-1.3.0
2003-07-28 23:59:00 +00:00
Neil Brown
56eedc1a3f
mdadm-1.2.0
2003-03-12 22:24:39 +00:00
Neil Brown
d013a55e94
mdadm-1.1.0
2003-03-02 23:11:38 +00:00
Neil Brown
5787fa4906
mdadm-1.0.9
2003-02-12 00:17:26 +00:00
Neil Brown
e0d1903663
mdadm-0.8
2002-04-04 01:58:32 +00:00
Neil Brown
11a3e71da4
mdadm-0.7.2
2002-03-20 22:39:50 +00:00
Neil Brown
9a9dab3670
mdadm-0.7
2002-03-08 00:03:52 +00:00
Neil Brown
cd29a5c835
mdctl-0.6
2002-03-06 23:17:40 +00:00
Neil Brown
5282684628
mdctl-0.5
2001-08-23 02:33:20 +00:00
Neil Brown
0db17fcbde
mdctl-v0.4.2
2001-07-26 20:47:22 +00:00
Neil Brown
82b27616de
mdctl-v0.4
2001-07-26 07:00:09 +00:00
Neil Brown
682c705194
mdctl-v0.3
2001-06-14 05:33:53 +00:00
Neil Brown
64c4757e27
mdctl-v0.2
2001-06-08 02:36:23 +00:00