mdadm: applied patches


001MakedistDiff
Status: ok

Small fix for makedist script

Signed-off-by: Neil Brown

### Diffstat output ./makedist | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./makedist~current~ ./makedist

002RpmBuild
Status: ok

Fix rpmbuild error

reported by Stephan van Hienen Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 3 +++ ./mdadm.spec | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)

diff ./ChangeLog~current~ ./ChangeLog

003ManPageTypo
Status: ok

Fix manpage typo

Thanks : Jérôme Petazzoni

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 1 + ./mdadm.8 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)

diff ./ChangeLog~current~ ./ChangeLog

004IdentInit
Status: ok

Fix some initialisations of ident

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.c | 2 ++ 1 files changed, 2 insertions(+)

diff ./mdadm.c~current~ ./mdadm.c

005ActiveStatus
Status: ok

Change "dirty" to "active" in array status

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 1 + ./Detail.c | 2 +- ./Examine.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

006AutoDev
Status: ok

When assembling with --auto, honour common device names

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 5 ++ ./mdadm.c | 15 ++++++-- ./mdadm.h | 2 - ./mdopen.c | 107 +++++++++++++++++++++++++++++++++++------------------------- ./util.c | 39 +++++++++++++-------- 5 files changed, 106 insertions(+), 62 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

007MajorMinor
Status: ok

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

### Diffstat output ./Assemble.c | 8 ++++---- ./Build.c | 6 +++--- ./ChangeLog | 3 +++ ./Create.c | 6 +++--- ./Detail.c | 6 +++--- ./Grow.c | 12 ++++++------ ./Manage.c | 4 ++-- ./Monitor.c | 10 +++++----- ./Query.c | 2 +- ./mdadm.c | 2 +- ./mdopen.c | 21 +++++++++++++-------- ./util.c | 10 +++++----- 12 files changed, 49 insertions(+), 41 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

008AutoDoco
Status: ok

Document new --auto behaviour

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.8 | 47 ++++++++++++++++++++++++++++++++++++++++++----- ./mdopen.c | 4 ++++ 2 files changed, 46 insertions(+), 5 deletions(-)

diff ./mdadm.8~current~ ./mdadm.8

009CloseMdfd
Status: ok

Add some missing closes of mdfd

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 1 + ./mdadm.c | 20 +++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

010PartReread
Status: ok

Reread partitions file for each array being assembled.

This makes assembling arrays from other arrays work better. Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 2 ++ ./config.c | 31 +++++++++++++++++-------------- 2 files changed, 19 insertions(+), 14 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

011StopScan
Status: ok

Reverse order of arrays when --stop --scan

so that stacked arrays are stopped properly. Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 2 ++ ./mdadm.c | 10 ++++++++++ 2 files changed, 12 insertions(+)

diff ./ChangeLog~current~ ./ChangeLog

012BestFails
Status: ok

Correct error message printed when the 'chosen_drive' cannot be added.

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 2 +- ./ChangeLog | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)

diff ./Assemble.c~current~ ./Assemble.c

013ModeErrMsg
Status: ok

Improve error message when mode is set twice.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 3 +-- ./mdadm.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

014CompileWarning
Status: ok

Fix uninitialised variable compile warning.

Signed-off-by: Neil Brown

### Diffstat output ./mdopen.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./mdopen.c~current~ ./mdopen.c

015ParseDevs
Status: ok

Change handling of devices names in args

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 4 ++++ ./Query.c | 2 +- ./mdadm.c | 37 +++++++++++++++++++++++++++++++++---- 3 files changed, 38 insertions(+), 5 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

016Release-1.9.0
Status: ok

Release 1.9.0

Signed-off-by: Neil Brown

### Diffstat output ./ANNOUNCE-1.9.0 | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ ./ReadMe.c | 2 +- ./inventory | 2 ++ ./mdadm.8 | 2 +- ./mdadm.spec | 2 +- 5 files changed, 54 insertions(+), 3 deletions(-)

diff ./ANNOUNCE-1.9.0~current~ ./ANNOUNCE-1.9.0

017FixPartitions
Status: ok

Fix "--config=partitions" which was broken.

"devline" wants a list of words, not a whole line...

Signed-off-by: Neil Brown

### Diffstat output ./config.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletion(-)

diff ./config.c~current~ ./config.c

018SuperSeparate
Status: devel

Separate sueprblock handling into separate file

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 241 ++++--------- ./Create.c | 95 +++-- ./Detail.c | 40 -- ./Examine.c | 180 +-------- ./Grow.c | 74 +--- ./Kill.c | 30 - ./Makefile | 5 ./Query.c | 49 -- ./ReadMe.c | 1 ./mdadm.h | 28 + ./super0.c | 1078 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ./util.c | 158 -------- 12 files changed, 1363 insertions(+), 616 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

019SuperSwitch
Status: ok

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

### Diffstat output ./Assemble.c | 36 +++++++++-------- ./Create.c | 8 +-- ./Detail.c | 17 ++++---- ./Examine.c | 22 +++++++--- ./Grow.c | 19 ++++++--- ./Kill.c | 17 ++++++-- ./Query.c | 11 +++-- ./ReadMe.c | 3 - ./config.c | 11 +++++ ./mdadm.c | 43 +++++++++++++++++--- ./mdadm.h | 42 +++++++++++-------- ./super0.c | 124 +++++++++++++++++++++++++++++++++++++++++++++-------------- ./util.c | 70 ++++++++++++++++++++++++++------- 13 files changed, 310 insertions(+), 113 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

020Super1
Status: ok

super1

Signed-off-by: Neil Brown Fix raid5 creation with new code.

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 38 - ./Create.c | 47 + ./Detail.c | 18 ./Examine.c | 27 - ./Grow.c | 18 ./Kill.c | 12 ./Makefile | 4 ./Query.c | 10 ./config.c | 10 ./mdadm.c | 19 ./mdadm.h | 30 - ./super0.c | 88 +++ ./super1.c | 1440 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ./util.c | 62 +- 14 files changed, 1667 insertions(+), 156 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

021Release-1-8-1
Status: ok

Release 1.8.1 after some man page updates and other fixes.

Signed-off-by: Neil Brown

### Diffstat output ./Create.c | 4 +-- ./Makefile | 2 - ./md.4 | 71 ++++++++++++++++++++++++++++++++++++++++++--------------- ./mdadm.8 | 22 ++++++++++++++++- ./mdadm.spec | 2 - ./mdassemble.c | 2 - ./super0.c | 2 + ./super1.c | 70 ++++++++++++++++++++++++++++++++++++++++++++------------ ./util.c | 27 +++++++++++++++++++++ 9 files changed, 163 insertions(+), 39 deletions(-)

diff ./Create.c~current~ ./Create.c

022MinorFix
Status: ok

A couple off minor fixed in multi-format management.

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.c | 1 + ./util.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)

diff ./mdadm.c~current~ ./mdadm.c

023SpareFix
Status: ok

Wasn't initialising spare disks on create.

Signed-off-by: Neil Brown

### Diffstat output ./super0.c | 2 ++ 1 files changed, 2 insertions(+)

diff ./super0.c~current~ ./super0.c

023SuperSeparate
Status: devel

Separate sueprblock handling into separate file

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 241 ++++--------- ./Create.c | 95 +++-- ./Detail.c | 40 -- ./Examine.c | 180 +-------- ./Grow.c | 74 +--- ./Kill.c | 30 - ./Makefile | 5 ./Query.c | 49 -- ./ReadMe.c | 1 ./mdadm.h | 28 + ./super0.c | 1078 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ./util.c | 160 -------- 12 files changed, 1363 insertions(+), 618 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

024ActiveStatus
Status: ok

Change "dirty" status to "active"

Description...

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 3 +++ ./super1.c | 2 ++ 2 files changed, 5 insertions(+)

diff ./ChangeLog~current~ ./ChangeLog

024SuperSwitch
Status: ok

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

### Diffstat output ./Assemble.c | 36 +++++++++-------- ./Create.c | 8 +-- ./Detail.c | 17 ++++---- ./Examine.c | 22 +++++++--- ./Grow.c | 19 ++++++--- ./Kill.c | 17 ++++++-- ./Query.c | 11 +++-- ./ReadMe.c | 3 - ./config.c | 11 +++++ ./mdadm.c | 43 +++++++++++++++++--- ./mdadm.h | 42 +++++++++++-------- ./super0.c | 124 +++++++++++++++++++++++++++++++++++++++++++++-------------- ./util.c | 70 ++++++++++++++++++++++++++------- 13 files changed, 310 insertions(+), 113 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

025MdBitmap
Status: devel

Initial bitmap support

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 7 ./Build.c | 34 +++ ./Create.c | 24 ++ ./Makefile | 8 ./ReadMe.c | 23 +- ./bitmap.c | 630 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ./bitmap.h | 546 +++++++++++++++++++++++++++++++++++++++++++++++++++ ./md_u.h | 7 ./mdadm.c | 72 ++++++ ./mdadm.h | 15 + 10 files changed, 1353 insertions(+), 13 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

025Super1
Status: ok

super1

Signed-off-by: Neil Brown Fix raid5 creation with new code.

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 38 - ./Create.c | 47 + ./Detail.c | 18 ./Examine.c | 27 - ./Grow.c | 18 ./Kill.c | 12 ./Makefile | 4 ./Query.c | 10 ./config.c | 10 ./mdadm.c | 19 ./mdadm.h | 30 - ./super0.c | 88 +++ ./super1.c | 1440 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ./util.c | 62 +- 14 files changed, 1667 insertions(+), 156 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

026CreateBug
Status: ok

Fix create bug which initialised superblocks wrongly.

Description...

Signed-off-by: Neil Brown

### Diffstat output ./Create.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./Create.c~current~ ./Create.c

026Release-1-8-1
Status: ok

Release 1.8.1 after some man page updates and other fixes.

Signed-off-by: Neil Brown

### Diffstat output ./Create.c | 4 +-- ./Makefile | 2 - ./md.4 | 71 ++++++++++++++++++++++++++++++++++++++++++--------------- ./mdadm.8 | 22 ++++++++++++++++- ./mdadm.spec | 2 - ./mdassemble.c | 2 - ./super0.c | 2 + ./super1.c | 70 ++++++++++++++++++++++++++++++++++++++++++++------------ ./util.c | 27 +++++++++++++++++++++ 9 files changed, 163 insertions(+), 39 deletions(-)

diff ./Create.c~current~ ./Create.c

027MinorFix
Status: ok

A couple off minor fixed in multi-format management.

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.c | 1 + ./util.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)

diff ./mdadm.c~current~ ./mdadm.c

027NewHotAdd
Status: devel

Use ADD_NEW_DISK to hot-add to non-version-0 arrays

Signed-off-by: Neil Brown

### Diffstat output ./Manage.c | 71 ++++++++++++++++++++++++++++++++++++++++++------------------- ./super1.c | 32 +++++++++++++++++++++++++-- 2 files changed, 80 insertions(+), 23 deletions(-)

diff ./Manage.c~current~ ./Manage.c

028SeedRandom
Status: ok

Make sure to seed the random number generator for uuids

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.c | 2 ++ 1 files changed, 2 insertions(+)

diff ./mdadm.c~current~ ./mdadm.c

028SpareFix
Status: ok

Wasn't initialising spare disks on create.

Signed-off-by: Neil Brown

### Diffstat output ./super0.c | 2 ++ 1 files changed, 2 insertions(+)

diff ./super0.c~current~ ./super0.c

029ActiveStatus
Status: ok

Change "dirty" status to "active"

Description...

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 3 +++ ./super1.c | 2 ++ 2 files changed, 5 insertions(+)

diff ./ChangeLog~current~ ./ChangeLog

029BitmapTestFix
Status: ok

Fix a test that will allow arrays with bitmaps to be assembled.

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./Assemble.c~current~ ./Assemble.c

030MdBitmap
Status: devel

Initial bitmap support

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 7 ./Build.c | 34 +++ ./Create.c | 24 ++ ./Makefile | 8 ./ReadMe.c | 23 +- ./bitmap.c | 630 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ./bitmap.h | 546 +++++++++++++++++++++++++++++++++++++++++++++++++++ ./md_u.h | 7 ./mdadm.c | 72 ++++++ ./mdadm.h | 15 + 10 files changed, 1353 insertions(+), 13 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

030sutff
Status: ok

2.0-devel-1 release

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 7 +++++-- ./ReadMe.c | 2 +- ./bitmap.h | 4 ++-- ./inventory | 5 +++++ ./mdadm.8 | 32 +++++++++++++++++++++++++++++++- ./mdadm.spec | 2 +- 6 files changed, 45 insertions(+), 7 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

031CreateBug
Status: ok

Fix create bug which initialised superblocks wrongly.

Description...

Signed-off-by: Neil Brown

### Diffstat output ./Create.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./Create.c~current~ ./Create.c

031InternalBitmap
Status: ok

Add support for internal bitmaps

For version 0.90 superblocks, an internal bitmap can be specified at create.

Signed-off-by: Neil Brown

### Diffstat output ./Create.c | 21 ++++++ ./bitmap.c | 36 +++++++++-- ./md_p.h | 2 ./mdadm.c | 12 +++ ./mdadm.h | 4 - ./super0.c | 198 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 6 files changed, 259 insertions(+), 14 deletions(-)

diff ./Create.c~current~ ./Create.c

032NewHotAdd
Status: devel

Use ADD_NEW_DISK to hot-add to non-version-0 arrays

Signed-off-by: Neil Brown

### Diffstat output ./Manage.c | 71 ++++++++++++++++++++++++++++++++++++++++++------------------- ./super1.c | 32 +++++++++++++++++++++++++-- 2 files changed, 80 insertions(+), 23 deletions(-)

diff ./Manage.c~current~ ./Manage.c

033SeedRandom
Status: ok

Make sure to seed the random number generator for uuids

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.c | 2 ++ ./super0.c | 15 +++++++++++---- ./super1.c | 13 +++++++++---- 3 files changed, 22 insertions(+), 8 deletions(-)

diff ./mdadm.c~current~ ./mdadm.c

034BitmapTestFix
Status: ok

Fix a test that will allow arrays with bitmaps to be assembled.

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./Assemble.c~current~ ./Assemble.c

035Release-devel
Status: ok

2.0-devel-1 release

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 7 +++++-- ./ReadMe.c | 2 +- ./bitmap.h | 2 +- ./inventory | 5 +++++ ./mdadm.8 | 32 +++++++++++++++++++++++++++++++- ./mdadm.spec | 2 +- 6 files changed, 44 insertions(+), 6 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

036InternalBitmap
Status: ok

Add support for internal bitmaps

For version 0.90 superblocks, an internal bitmap can be specified at create.

Signed-off-by: Neil Brown

### Diffstat output ./Create.c | 21 ++++++++++++ ./bitmap.c | 18 +++++++++-- ./md_p.h | 2 + ./mdadm.c | 12 ++++++- ./mdadm.h | 4 +- ./super0.c | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 6 files changed, 147 insertions(+), 9 deletions(-)

diff ./Create.c~current~ ./Create.c

037GrowBitmap
Status: devel

Support --grow --bitmap=internal

Adding a filebased bitmap is not yet supported, and this code is still under development.

Signed-off-by: Neil Brown

### Diffstat output ./Grow.c | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ./Manage.c | 4 ++ ./mdadm.c | 16 ++++++++--- ./mdadm.h | 2 + 4 files changed, 101 insertions(+), 4 deletions(-)

diff ./Grow.c~current~ ./Grow.c

038AssortedFixes
Status: ok

Assorted fixes for bitmap related stuff

Signed-off-by: Neil Brown

### Diffstat output ./super0.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 58 insertions(+), 1 deletion(-)

diff ./super0.c~current~ ./super0.c

039MaxDevs
Status: ok

Increase max-devs on type-1 superblocks

Signed-off-by: Neil Brown

### Diffstat output ./Detail.c | 7 +++++-- ./Grow.c | 2 +- ./mdadm.c | 6 ++++-- ./mdadm.h | 1 + ./super0.c | 2 ++ ./super1.c | 4 +++- 6 files changed, 16 insertions(+), 6 deletions(-)

diff ./Detail.c~current~ ./Detail.c

040SillyTypo
Status: ok

Fix type - MD_SB_CLEAN is a bit number, not a bitmask.

Signed-off-by: Neil Brown

### Diffstat output ./super1.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./super1.c~current~ ./super1.c

041Kill1
Status: ok

Make --zero-superblock work for version 1 superblocks.

This requires passing the supertype to store_super

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 6 +++--- ./Create.c | 2 +- ./Grow.c | 4 ++-- ./Kill.c | 4 ++-- ./mdadm.h | 5 ++--- ./super0.c | 6 +++--- ./super1.c | 46 ++++++++++++++++++++++++++++++++++++++++++---- 7 files changed, 55 insertions(+), 18 deletions(-)

diff ./Assemble.c~current~ ./Assemble.c

042TEstRaiddisksLater
Status: ok

Move the test for validity of raid_disk later.

This allows the check to be done after we know what metadata format is being used, and so the max number of raiddisks is known.

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.c | 30 ++++++++++++++++++++++-------- 1 files changed, 22 insertions(+), 8 deletions(-)

diff ./mdadm.c~current~ ./mdadm.c

043SparesSuper1
Status: ok

Make '-x nnn' spares work for type-1 superblocks.

Signed-off-by: Neil Brown

### Diffstat output ./super1.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)

diff ./super1.c~current~ ./super1.c

044MdXX
Status: ok

Stuff

Description...

Signed-off-by: Neil Brown

### Diffstat output ./ANNOUNCE-2.0-devel-1 | 35 +++++++++++++++++++++++++++++++++++ ./mdadm.c | 8 ++++---- ./super1.c | 21 +++++++++------------ ./util.c | 8 ++++++-- 4 files changed, 54 insertions(+), 18 deletions(-)

diff ./ANNOUNCE-2.0-devel-1~current~ ./ANNOUNCE-2.0-devel-1