Dan Williams
cdddbdbca0
imsm: initial Intel(R) Matrix Storage Manager support
...
From: Dan Williams <dan.j.williams@intel.com>
The following now work:
--examine
--examine --brief
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-15 16:48:22 +10:00
Neil Brown
2f6079dc96
Create a container member
...
From: Neil Brown <neilb@suse.de>
2008-05-15 16:48:21 +10:00
Neil Brown
598f0d58ac
Can now mostly assemble DDF arrays
2008-05-15 16:48:19 +10:00
Neil Brown
5f8097beb9
more ddf stuff
...
Create a BVD in a DDF
Do not actually assemble it yet...
2008-05-15 16:48:15 +10:00
Dan Williams
a322f70c41
Initial DDF support code.
...
Create a ddf array by naming the device /dev/ddf* or
specifying metadata 'ddf'.
If ddf is specified with no level, assume a container (indeed,
anything else would be wrong).
**Need to use text_Version to set external metadata...
More ddf support
Load a ddf container. Now
--examine /dev/ddf
works.
super-ddf: fix compile warning
From: Dan Williams <dan.j.williams@intel.com>
super-ddf.c:723: format %lu expects type long unsigned int, but argument 3 has type unsigned int
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-15 16:48:14 +10:00
Neil Brown
d03373f1de
Some support for external metadata.
...
Allow specifying metadata type when creating arrays etc.
2008-05-15 16:48:13 +10:00
Neil Brown
ea24acd073
Compiple fixes for mdassemble and diet-libc
2008-05-15 15:50:56 +10:00
Neil Brown
ff1f6545db
Fix support for --update=swapsuper
...
The user of dup_super broke it.
2008-05-15 15:50:48 +10:00
Neil Brown
3b0896f899
Fix possible NULL dereference in super_by_fd
2008-05-15 15:50:45 +10:00
Dan Williams
95b79df03e
let '-a' be specified for Incremental mode
...
From: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-05 21:55:37 +10:00
Neil Brown
63152c1b33
Unify code into find_free_devnum.
...
Two places have code to find a free md device number. Make this
a subroutine.
2008-05-05 21:55:36 +10:00
Dan Williams
5e747af24a
fix load_super/free_super mismatch in util.c
...
From: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2008-05-05 21:55:35 +10:00
Neil Brown
c2c9bb6fe0
diff -ru mdadm-2.6.4-orig/Query.c mdadm-2.6.4/Query.c
2008-04-29 17:13:55 +10:00
Neil Brown
142cb9e181
Use sysfs info for metadata version info in Detail and elsewhere.
2007-12-14 20:15:21 +11:00
Neil Brown
7e0f69790c
Replace sysarray with mdinfo
...
Sure, mdinfo is bigger, but having a uniform structure for lots of things
will make life easier.
2007-12-14 20:14:59 +11:00
Neil Brown
1686dc25ec
Find super from fd on an array.
...
We used to use the major/minor numbers, but that isn't sufficient
any more, so pass the fd, and possibly check 'text' version.
2007-12-14 20:14:38 +11:00
Neil Brown
3da92f272d
Drop the superblock arg from all metadata methods.
...
It is now in the 'supertype'
2007-12-14 20:14:33 +11:00
Neil Brown
68c7d6d790
Add 'supertype' arg to almost all metadata methods.
...
The 'superblock' will be moved into this structure soon.
2007-12-14 20:14:16 +11:00
Neil Brown
df37ffc039
Allow metadata handlers to free their own superblock.
...
As the metadata handler allocates the superblock, it should free it
too. DDF will have a more complex 'superblock' which needs more complex
freeing.
2007-12-14 20:14:00 +11:00
Neil Brown
aba69144fd
Remove spaces/tabs from ends of lines.
2007-12-14 20:13:43 +11:00
Neil Brown
8e22992203
Remove bogus add_dev definition.
...
If nether ftw nor nftw are available, add_dev gets defined twice.
Fix that...
2007-05-08 17:12:33 +10:00
Neil Brown
8382f19bdc
Add new mode: --incremental
...
--incremental allows arrays to be assembled one device at a time.
This is expected to be used with udev.
2006-12-21 17:10:52 +11:00
Neil Brown
350f29f90d
Centralise code for copying uuid
...
Rather than opencoding the byteswap all the time.
2006-12-14 17:33:14 +11:00
Neil Brown
beae1dfe2e
Central calls to ioctl BLKGETSIZE
...
Instead of opencoding the same thing everywhere.
2006-12-14 17:32:57 +11:00
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
702b557b1c
Fix bugs related to raid10 and the new offset layout.
...
Need to mask of bits above the bottom 16 when calculating number of
copies.
2006-10-19 16:38:29 +10:00
Luca Berra
435d4ebb2e
Mdassemble improvements
...
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.
2006-10-16 15:26:53 +10:00
Neil Brown
0a816ef9fb
Don't #include blkpg.h
...
Just include the content directly. It is safer.
2006-10-16 14:38:13 +10:00
Neil Brown
0430ed4868
Remove partitions from components of an md array
...
They do nothing but cause confusion.
2006-10-13 09:02:35 +10:00
Neil Brown
45e878bba6
Improve ftw handling.
...
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.
2006-06-26 15:10:48 +10:00
Neil Brown
e81cdd9f37
Stop map_dev from returning [0:0]
...
We sometimes need the NULL when major==minor==0.
So make sure all callers of map_dev can cope with NULL.
2006-06-20 10:01:43 +10:00
Neil Brown
eed35d6661
Fix memory leak in monitor mode
...
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>
2006-06-16 10:26:12 +10:00
Neil Brown
0c239ef733
Make add_dev for uclibc return something.
...
As it is now 'int', it needs to.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-29 04:02:15 +00:00
Neil Brown
b56c363090
add CFLAGS to mdassemble build and fix a couple of non-returning functions
...
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>
2006-05-29 02:06:32 +00:00
Neil Brown
382245c31f
snprintf size should be at most the size of the buffer
...
From: Luca Berra <bluca@vodka.it>
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-29 02:06:32 +00:00
Neil Brown
e7bb5d23a9
Choose better devnumbers and tidy up some issues with finding names.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 01:40:53 +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
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
16c6fa807c
Create missing /dev files where needed.
...
Whenever we need a device file to open, if one cannot be found in /dev,
create a temporary one.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 06:26:53 +00:00
Neil Brown
0a416ec307
Make scanning of /dev work even if it is a symlink
...
We generally don't want to follow symlinks in /dev, but if
/dev itself is a symlink, we want to follow it.
So nftw needs a bit of help.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-27 06:54:31 +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
e86c9dd6d8
Initial reshape support
...
Needs work for other levels etc.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-13 05:51:32 +00:00
Neil Brown
881990a2e4
Fix printing of size of reiserfs filesystem.
...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=318230
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-31 00:43:50 +00:00
Neil Brown
6ee5c05a11
Report device size correctly in --detail for Large devices.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-30 23:42:53 +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
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
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
d078d77c28
Print descriptive level when warning about pre-existing arrays.
...
Use map_num to get the name, so 'linear' doens't appear as '-1'.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-08-18 04:25:35 +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
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
fe6729fa8c
Fix compilation with tinyc
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:43:00 +00:00
Neil Brown
8f23b0b3fa
Replace sprintf calls with snprintf
...
To quiet diet-libc
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:42:13 +00:00
Neil Brown
173fc51539
Add device files created with --auto to list of known device files.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:37:57 +00:00
Neil Brown
b79713f8c1
When finding a /dev name for a device, prefer shorter names
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:33:56 +00:00
Neil Brown
d5d3721ef4
Fix some rounding errors in human_size and generally clean up the code
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:33:30 +00:00
Neil Brown
5a6d1148cc
Fix parsing of /dev/md/N in is_standard
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:33:24 +00:00
Neil Brown
a46f4061d3
Fix a few typecasts
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:33:16 +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
a825febc06
A couple off minor fixed in multi-format management.
...
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
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
b2b46bfc89
Call 'flush' after writing a superblock to disk.
...
Just in case...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 06:05:07 +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
8d80900b49
When assembling with --auto, honour common device names
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:10 +00:00
Neil Brown
b5e6464503
mdadm-1.8.0
2004-11-01 04:49:34 +00:00
Neil Brown
e5329c3747
mdadm-1.7.0
2004-08-11 02:16:01 +00:00
Neil Brown
dd0781e505
mdadm-1.6.0
2004-06-04 12:03:19 +00:00
Neil Brown
98c6faba80
mdadm-1.5.0
2004-01-22 02:10:29 +00:00
Neil Brown
5787fa4906
mdadm-1.0.9
2003-02-12 00:17:26 +00:00
Neil Brown
bd526cee92
mdadm-1.0.1
2002-05-20 11:17:18 +00:00
Neil Brown
b83d95f362
mdadm-0.8.2
2002-04-11 01:36:14 +00:00
Neil Brown
e0d1903663
mdadm-0.8
2002-04-04 01:58:32 +00:00
Neil Brown
56eb10c0b6
mdadm-0.7.1
2002-03-15 05:21:36 +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
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