Neil Brown
583315d9c5
Give useful message if raid4/5/6 cannot be started because it is not clean and is also degraded.
2006-12-14 17:31:13 +11:00
Neil Brown
d645b91a1b
Fix a misleading comment.
2006-12-14 17:31:08 +11:00
Neil Brown
bee8ec56f4
Support --update=devicesize for cases where the underlying device can change size.
2006-12-14 17:31:03 +11:00
Neil Brown
199171a297
Improve allocation and use of space for bitmaps in version1 metadata
...
Depending on the size of the array we reserve space for up to 128K
of bitmap, and we use it where possible.
When hot-adding to a version 1.0 we can still only use the 3K at the
end though - need a sysfs interface to improve that.
If a small chunksize is requested on Create, we don't auto-enlarge
the reserved space - this still needs to be fixed.
2006-12-14 17:31:00 +11:00
Neil Brown
b5e3d1901f
Remove some unused interfaces to the metadata handlers.
...
This stuff has never been used (at least as far as git history can
see). I wonder why it was there...
2006-12-14 17:30:53 +11:00
Neil Brown
67a8c82d60
Make Assemble/Force work on raid6 with 2 missing devices.
...
Previously it onl worked when one missing device.
Also split the "force" update_super method into two and it
is really serving two functions.
2006-12-14 17:30:51 +11:00
Neil Brown
434b77559e
--update=resync did exactly the wrong thing for version1 metadata.
2006-11-13 09:12:09 +11:00
Neil Brown
b7a708af6f
Fixed UUID printing in "--detail --brief" for version1 metadata.
2006-11-09 16:28:27 +11:00
Neil Brown
1746711680
Increase default size of bitmap for v1 superblocks.
...
It can be increased further, but that takes a bit more code
so will wait for 2.6.
2006-10-19 16:46:38 +10:00
Neil Brown
26a0b8fd7a
Fix array-subscript error.
...
->name is sized to '33' to have room for a trailing nul,
but thhat needs to get put in position '32'. Doh!
2006-10-19 16:38:20 +10:00
Neil Brown
c1c05f7f9a
Fix typo in earlier patch.
...
Thanks Martin Krafft
2006-10-10 06:30:07 +10:00
Neil Brown
83205b6419
Fix some endian-ness issues with v1 superblocks.
2006-10-09 11:17:12 +10:00
Neil Brown
7eae7080e2
Work around bug in --add handling for version-1 superblocks
...
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...
2006-06-26 12:26:09 +10:00
Neil Brown
c3684618b7
Add 'Array Slot' line to --examine for version-1 superblocks
...
to make it a bit easier to see what is happening.
2006-06-26 12:26:01 +10:00
Paul Clements
b015e6c268
Move a variable declaration to the declaration area.
...
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>
2006-06-20 10:01:47 +10:00
Paul Clements
722966c66d
Fix problem with post-increment usage in macro
...
Bad/bad/bad, and cause compiler error on ppc (gcc 3.2.3).
From: Paul Clements <paul.clements@steeleye.com>
2006-06-20 10:01:23 +10:00
Neil Brown
067db4dfcd
Fix offsetof macro for 64bit hosts
2006-06-16 10:53:50 +10:00
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
2998bc013c
Improve names reported by --examine --brief
...
Instead of depending (too much) on what is in /dev,
we make names based on the content of the superblock.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 02:29:12 +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
0237e0cafd
Support --update=homehost to allow updating of homehost information.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-23 05:16:32 +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
a1cbd7d053
Include homehost information in --examine as appropriate
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 07:19:04 +00:00
Neil Brown
b6750aa8da
Include homehost information in --detail where appropriate.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 07:13:03 +00:00
Neil Brown
05697ec1e2
Make homehost information appear in superblock.
...
When an array is created, if the homehost is know,
the superblock gets it, either in the uuid, (via sha1)
or in the name field.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 06:56:06 +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
14263cf12c
When updating uuid, update the bitmap as well - internal bitmaps.
...
Otherwise when you "--update==uuid" an array with an internal
bitmap, it will break, badly.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-16 05:52:51 +00:00
Neil Brown
b578481ca3
Support new offset layout for raid10
...
Requires 2.6.18.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 02:46:54 +00:00
Neil Brown
c4d831e164
[PATCH] Make sure update_super returns correct value.
...
For 'force' and 'assemble', update_super must return true
if anything was changed.
Also fix a bug with wonly handling in super0.
Signed-off-by: Neil Brown <neilb@suse.de>
### Diffstat output
./super0.c | 18 ++++++++++++++----
./super1.c | 7 +++++++
2 files changed, 21 insertions(+), 4 deletions(-)
diff ./super0.c~current~ ./super0.c
2006-04-28 14:10:38 +10:00
Neil Brown
ac957baa97
Fix alignment problem in version-1 superblocks.
...
NOTE: This is an incompatable change affecting raid5 reshape.
If you want to reshape a raid5 using version-1 superblocks,
use 2.6.17-rc2 or later, and mdadm-2.4.1 or later.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-04-07 04:34:45 +00:00
Neil Brown
bed256c241
Add information about reshape to --detail
...
Also fix problems with dev names and symlinks
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 22:44:05 +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
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
1e0d770c0f
Release some compile fixes.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-06 04:18:12 +00:00
Neil Brown
561832f9d4
Some little bits and pieces...
...
I'm obviously bored of writing changelog entries.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-02 03:19:57 +00:00
Neil Brown
576d6d83af
Prefer version-1 superblocks for v.large devices.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-31 00:01:48 +00:00
Neil Brown
8fac0577f0
Stuff like..
...
- report Intent Bitmap in --detail
- report internal bitmap in --examine
- pass' --force through to --grow --bitmap
- support v.large arrays in --grow --bitmap
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-30 23:23:45 +00:00
Neil Brown
91eedefcdd
Report bitmap offset when examining v1 superblock.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-30 03:09:32 +00:00
Neil Brown
21e92547e7
Work towards allowing larger internal bitmaps in version1 superblocks.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-30 02:57:49 +00:00
Neil Brown
b674b5b869
Have --examine report reshape details.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-27 07:28:34 +00:00
Neil Brown
5dd497eecb
Enable support for v.large raid1.
...
clean up 'long long' usage for size of array, so that
with v-1 superblocks a raid1 larger than 2TB is possible.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-27 06:21:06 +00:00
Neil Brown
29e766a5f4
Minor fixes
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-27 04:48:28 +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
d2cd3ffc02
uhm.. assort fixes, particularly for recovery offset...
...
Signed-off-by: Neil Brown <neilb@suse.de>
2005-12-16 01:34:49 +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
f9c25f1d2a
Support bitmaps with raid10
...
And a couple of other little things
Signed-off-by: Neil Brown <neilb@suse.de>
2005-11-22 03:37:14 +00:00
Neil Brown
dcec9ee547
Create version-4 bitmaps if kernel supports it.
...
Version-3 bitmaps are host-endian. Version-4 are little-endian
and so more portable.
Signed-off-by: Neil Brown <neilb@suse.de>
2005-10-11 04:44:44 +00:00
Neil Brown
e478dc86ed
Release 2-0
...
With little fix for -O2 compile
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 07:12:07 +00:00
Neil Brown
6d3d580468
Fix byteordr covnerion ofr 'events' that was '32' instead of '64'
...
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 05:54:52 +00:00
Neil Brown
f6d75de8e0
Fix remaining problems with hot-add bitmap to version-1 superblock
...
Also some more tests - r5 and r6 bitmaps
Signed-off-by: Neil Brown <neilb@suse.de>
2005-09-12 05:24:10 +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
1bf4e2d962
Passes all tests, nearly ready for release.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-26 06:08:28 +00:00
Neil Brown
8431b2b286
Getting ready for 2.0 release...
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-26 02:26:37 +00:00
Neil Brown
34163fc7cf
Support internal bitmaps with format-1 superblocks.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-25 04:31:44 +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
dfd4d8ee42
Add write-behind support
...
Currently this includes
--write-behind to set level of write-behind supported
--write-mostly to flag devices as write-mostly.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-09 04:25:47 +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
c7654afc29
Fix compiling of mdassemble
...
(again).
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:49:05 +00:00
Neil Brown
6fbba4c929
Stuff
...
Description...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2006-04-17 23:42:52 +00:00
Neil Brown
412ca2e564
Make '-x nnn' spares work for type-1 superblocks.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:45 +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
34321279b8
Fix type - MD_SB_CLEAN is a bit number, not a bitmask.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:46 +00:00
Neil Brown
ea32955930
Increase max-devs on type-1 superblocks
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:46 +00:00
Neil Brown
dfe47e008e
Make sure to seed the random number generator for uuids
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:03:48 +00:00
Neil Brown
892debc820
Use ADD_NEW_DISK to hot-add to non-version-0 arrays
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:16:32 +00:00
Neil Brown
a3fd117c7a
Change "dirty" status to "active"
...
Description...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:16:36 +00:00
Neil Brown
570c054247
Release 1.8.1 after some man page updates and other fixes.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-07 23:16:36 +00:00
Neil Brown
024ce7fe2b
Only in mdadm-inter/: ANNOUNCE-2.0-devel-1
...
Only in mdadm-inter/: ANNOUNCE-2.0-devel-2
Only in mdadm-inter/: Create.c.orig
Only in mdadm-inter/: bitmap.c
Only in mdadm-inter/: bitmap.h
Only in mdadm-inter/: mdassemble.8
Only in mdadm-inter/: mkd1
diff -ru mdadm-pre/mdadm-1.11.0/super1.c mdadm-inter/super1.c
Signed-off-by: Neil Brown <neilb@suse.de>
2006-04-17 11:59:45 +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