mdadm: included patches


001CreateSize
Status: ok

Make 'size' an unsigned long when creating arrays

002ReportSpare
Status: ok

Explicitly state the spare devices are 'spare'

In --detail and --examine, if a device has no flags set, explicitly state that it is spare.

003MailConfig
Status: ok

Make it explicit in Makefile that mail command can be configured.

Also make it easier to change warning flags without editing Makefile

004AddBugFix
Status: ok

Fix small bug in rarely-used code for adding devices.

005MonitorDegraded
Status: ok

--monitor notices degraded arrays on startup and can run --oneshot

1/ When mdadm --monitor first notices an array, it will check if it is degraded and will issue a "DegradedArray" event if it is. 2/ mdadm --monitor has a --oneshot option which causes it to check once and exit. This can be used in a cron script to generate DegradedArray events on a regular basis for any degraded arrays.

006ManPageFixes
Status: ok

Small changes to man pages.

State which device is parity device in raid4 in md.4

Clarify which raid levels can be used with create and which with build.

007OneDevice
Status: ok

Disallow creating arrays with just one device unless --force is given.

.. as this is probably a mistake.

008CreateHelp
Status: ok

Correct some misleading documentation in the --create --help message.

009ChunkDefault
Status: ok

Ignore chunk size for multipath or raid1

and set it to zero. Only set default of 64 for raid0, linear, raid4, raid5

010Manpage
Status: ok

Small update to man page about --raid-disks not being changable.

011StartFix
Status: ok

Improve messages when starting an array without all devices.

Instead of required the array to be full, we only require it has as many active devices as last time.

012Md1.3.0
Status: ok

New version released

1.3.0

013SparesMissing
Status: ok

New "SparesMissing" event

Add "spares=" tag to config file and generate it wit --detail and --examine Add "SparesMissing" event when --monitor first sees an array and it doesn't have the enough spare devices.

014UpdateSummaries
Status: ok

Add --update=summaries to correct sumarry information in superblock.

Summary information is total, active, working, spare, failed disks. Make sure unused superblock descriptor entries aren't failed.

015TestFlag
Status: ok

Add --test flag for --detail

To give a more interesting exit status.

016r5doco
Status: ok

Document raid5 array creation details.

017Release1-4-0
Status: ok

Release 1.4.0

018mdadm-1.3.0-diet.diff
Status: MdAssemble

Add new command "mdassemble" for initfs usage.

mdassemble (contributed by Luca Berra is a small program compiled with diet libc that just does "mdadm -As". Signed-off-by: Neil Brown

019NoMdstatWarning
Status: ok

Don't give a warning inf /proc/mdstat contains unexpected string

This allows for quieter extenstions to /proc/mdstat Signed-off-by: Neil Brown

020BlkGetSize
Status: ok

Fix BLKGETSIZE64 macro

The definition of this macro in the linux kernel is bogus, and we copied it. The third arg is a type, not a size.... Signed-off-by: Neil Brown

021DetailRebuild
Status: ok

Include "Rebuild Status" in --detail output. Signed-off-by: Neil Brown

022SignedUnsigned
Status: devel

Remove lots of signed/unsigned comparison warnings. Signed-off-by: Neil Brown

023TestMsg
Status: ok

Support --test with --monitor

This generates a test message against each array found at startup. Signed-off-by: Neil Brown

024Raid6
Status: ok

Add support for raid6 personality.

Thanks to H. Peter Anvin Signed-off-by: Neil Brown

025BugFix
Status: ok

Avoid infinite loop if /proc/mdstat is parsed badly.

If /proc/mdstat appears to have two devices with the same devnum, we will loop inifinitely finding new devices. With this patch, we ignore extras. Signed-off-by: Neil Brown

026Part
Status: ok

Support for partitioned md devices.

This requires understanding "md_d1" etc in /proc/mdstat. and finding the major number for 'mdp' in /proc/devices. Signed-off-by: Neil Brown

027RebuildFinished
Status: ok

Generate RebuildFinished event when rebuild stops.

Submitted by Mike Snitzer Signed-off-by: Neil Brown

028ManPageFix
Status: ok

Fix bad sentence in man page. Signed-off-by: Neil Brown

029NewVersion
Status: ok

Update to version 1.5.0 Signed-off-by: Neil Brown

030Typo
Status: ok

Fix typo in earlier patc Signed-off-by: Neil Brown

031ExamineName
Status: ok

Use get_md_name instead of /dev/md%d for --examine --brief

This allows it to work when people have different arrangement of /dev Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 4 ++++ ./Examine.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

032ManTypo
Status: ok

Fix typo in man page. Signed-off-by: Neil Brown

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

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

033MonitorClose
Status: ok

Close loose filedescriptor in monitor mode.

When a new array is found by 'scan', we inadvertantly keep it open, so it can never to stopped..

Thanks to Doug Ledford

Signed-off-by: Neil Brown

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

diff ./ChangeLog~current~ ./ChangeLog

034Grow
Status: ok

Support --grow mode

raid1/4/5/6 arrays can have --size changed. raid1 can have --raid-disks changed. ... if the kernel supports it.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 4 +++ ./Manage.c | 21 +++++++++++++++++++ ./ReadMe.c | 27 ++++++++++++++++++++++--- ./mdadm.8 | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--- ./mdadm.c | 44 +++++++++++++++++++++++++++++++---------- ./mdadm.h | 4 ++- 6 files changed, 147 insertions(+), 17 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

035NoReportErrorBit
Status: ok

Don't report {no-,}errors in superblock status.

It doesn't mean anything.

Signed-off-by: Neil Brown

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

diff ./ChangeLog~current~ ./ChangeLog

036EventNotification
Status: ok

Use md event notification (if available in kernel)

This allows --monitor to respond immediately to events.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 3 +++ ./Detail.c | 2 +- ./Monitor.c | 4 ++-- ./mdadm.c | 2 +- ./mdadm.h | 3 ++- ./mdstat.c | 27 +++++++++++++++++++++++---- 6 files changed, 32 insertions(+), 9 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

037BriefName
Status: ok

Use better name in --brief if standard names doesn't exist.

Signed-off-by: Neil Brown

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

diff ./ChangeLog~current~ ./ChangeLog

038AutoMkDev
Status: ok

Automatically make devices if needed.

--auto=partNN or --auto=yes etc tell mdadm to create the required device files. Functionality also available as auto= entry in mdadm.conf

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 3 ./Create.c | 1 ./ReadMe.c | 7 + ./config.c | 32 ++++++++ ./mdadm.8 | 55 ++++++++++++++ ./mdadm.c | 210 +++++++++++++++++++++++++++++++++++++++++++++++++++++---- ./mdadm.conf.5 | 20 +++++ ./mdadm.h | 19 +++-- ./util.c | 75 +++++++++++++++----- 9 files changed, 381 insertions(+), 41 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

039Build1multi
Status: devel

Allow Build to work for raid1 and multipath.

Still need to resolve when to mark raid1 as clean.

Signed-off-by: Neil Brown

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

diff ./ChangeLog~current~ ./ChangeLog

040DocRun
Status: ok

Improve documentation of --run for create mode.

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.8 | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+)

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

041TypoCreate
Status: ok

Fix typo in error message.

Thanks: Leon Woestenberg

Signed-off-by: Neil Brown

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

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

042FixRebuildReport
Status: ok

Fix bug in 1.5.0 which broke reporting of rebuild status.

In the loop, we ant to make every occurance of the device as used (to avoid loops if the kernel is confused), but we will want to end up pointing to one of them...

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 2 +- ./Monitor.c | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

043DetailStatus
Status: ok

Add "degraded" and "recovering" to --detail Status: line

Also a few bug fixes.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 3 ++- ./Detail.c | 36 ++++++++++++++++++++++-------------- ./Monitor.c | 2 +- ./config.c | 2 ++ 4 files changed, 27 insertions(+), 16 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

044AssumeClean
Status: ok

New --assume-clean option.

For building raid1 arrays.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 4 +++- ./ReadMe.c | 2 ++ ./mdadm.8 | 8 ++++++++ ./mdadm.c | 8 +++++++- ./mdadm.h | 2 +- 5 files changed, 21 insertions(+), 3 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

045DocPartNN
Status: ok

Document the NN suffix to auto=part options.

Signed-off-by: Neil Brown

### Diffstat output ./mdadm.8 | 20 +++++++++++++++++++- ./mdadm.conf.5 | 6 +++++- 2 files changed, 24 insertions(+), 2 deletions(-)

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

046MdNameFix
Status: ok

Make suire get_md_name works if /dev/.tmp.mdX already exists.

Signed-off-by: Neil Brown

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

diff ./util.c~current~ ./util.c

047VersionNumber
Status: ok

Increase version number

And write announcement.

Signed-off-by: Neil Brown

### Diffstat output ./ANNOUNCE-1.6.0 | 36 ++++++++++++++++++++++++++++++++++++ ./ChangeLog | 2 +- ./ReadMe.c | 2 +- ./mdadm.8 | 2 +- ./mdadm.spec | 2 +- 5 files changed, 40 insertions(+), 4 deletions(-)

diff ./ANNOUNCE-1.6.0~current~ ./ANNOUNCE-1.6.0

048LinearAdd
Status: ok

Support --grow --add for linear devices.

IF the kernel is up to it, this can add a device to an active linear array.

This is still un-development. No documentation yet.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 4 + ./Grow.c | 192 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ./Makefile | 4 - ./mdadm.c | 27 ++++++-- ./mdadm.h | 1 5 files changed, 219 insertions(+), 9 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

049UcLibcFix
Status: ok

Restore functionality of mdadm.uclibc.

It didn't compile properly, and debian has moved the compiler...

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 1 + ./Makefile | 2 +- ./util.c | 51 ++++++++++++++++++++++++++------------------------- 3 files changed, 28 insertions(+), 26 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

050DetailCleanup
Status: ok

Several improvements to the --detail output.

In particular, the drive that is being rebuild in shown, and the current state can be "resyncing" or 'recovering".

Also the Info extracted from the superblock is now printed before all the devices, instead of after.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 2 + ./Detail.c | 105 +++++++++++++++++++++++++++++++++++++++++++++--------------- ./Examine.c | 1 ./mdadm.h | 1 ./mdstat.c | 6 +++ 5 files changed, 89 insertions(+), 26 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

051DetailClose
Status: ok

Close filedescriptor after --detail has finished

instead of leaving them open.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 4 +++- ./Detail.c | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

052ReportCheckpoint
Status: ok

Report the "Sync Checkpoint" in --examine mode

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 1 + ./Examine.c | 5 +++++ ./md_p.h | 7 ++++++- 3 files changed, 12 insertions(+), 1 deletion(-)

diff ./ChangeLog~current~ ./ChangeLog

053UpdateResync
Status: ok

Allow --update=resync to force a resync of the array.

Signed-off-by: Neil Brown

### Diffstat output ./Assemble.c | 5 +++++ ./ChangeLog | 4 +++- ./mdadm.8 | 10 ++++++++++ ./mdadm.c | 7 +++++-- 4 files changed, 23 insertions(+), 3 deletions(-)

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

054Raid10
Status: ok

Provide support for new RAID-10 module

... which is still under development

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 4 +++- ./Create.c | 15 +++++++++++++++ ./Detail.c | 6 ++++++ ./Examine.c | 4 ++++ ./ReadMe.c | 6 ++++-- ./mdadm.c | 19 ++++++++++++++++++- ./util.c | 2 ++ 7 files changed, 52 insertions(+), 4 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

055MontiorSpares
Status: ok

Read spares info from config file for --monitor even when devices listed on command line.

Signed-off-by: Neil Brown

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

diff ./ChangeLog~current~ ./ChangeLog

056Version1.7.0
Status: ok

Update version number and improve makedist

Signed-off-by: Neil Brown

### Diffstat output ./ReadMe.c | 2 +- ./makedist | 12 +++++++++++- ./mdadm.8 | 2 +- ./mdadm.spec | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-)

diff ./ReadMe.c~current~ ./ReadMe.c

057Makefile
Status: ok

Makefile cleanup

From: Luca Berra

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 3 +++ ./Makefile | 31 +++++++++++++++++++++---------- 2 files changed, 24 insertions(+), 10 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

058Pidfile
Status: ok

Pid file support

From: Luca Berra

Adds a -i (pid) option to monitor mode which causes mdadm to write its own pid to the specified file, this comes useful to simplify init scripts that call mdadm --monitor --daemonize.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 1 + ./Monitor.c | 17 +++++++++++++++-- ./ReadMe.c | 4 +++- ./mdadm.8 | 7 +++++++ ./mdadm.c | 15 ++++++++++++++- ./mdadm.h | 2 +- 6 files changed, 41 insertions(+), 5 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

059ManTypo
Status: ok

Fix typo in man page

Signed-off-by: Neil Brown

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

diff ./ChangeLog~current~ ./ChangeLog

060noConfigBug
Status: ok

Fix bug if no config file

We use the config info before testing if it exists.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 1 + ./mdadm.c | 28 +++++++++++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

061MdassembleEnhance
Status: ok

Add raid6, raid10, and --auto support to mdassemble

From: Luca Berra

Signed-off-by: Neil Brown

### Diffstat output ./Makefile | 20 +++-- ./mdadm.c | 161 ----------------------------------------------- ./mdadm.h | 2 ./mdassemble.c | 10 ++ ./mdopen.c | 193 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 216 insertions(+), 170 deletions(-)

diff ./Makefile~current~ ./Makefile

062Syslog
Status: ok

Add script to use with --follow to send events to syslog

Signed-off-by: Neil Brown

### Diffstat output ./misc/syslog-events | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+)

diff ./misc/syslog-events~current~ ./misc/syslog-events

063Faulty
Status: ok

Add support for "faulty" personality.

Description...

Signed-off-by: Neil Brown

### Diffstat output ./Build.c | 32 +++++++++++++++++++++++++++++++- ./ChangeLog | 1 + ./Create.c | 14 ++++++++++++-- ./Manage.c | 17 +++++++++++++++++ ./ReadMe.c | 22 ++++++++++++++++++++++ ./md.4 | 27 +++++++++++++++++++++++++++ ./mdadm.8 | 40 ++++++++++++++++++++++++++++++++++++++-- ./mdadm.c | 36 ++++++++++++++++++++++++++++++------ ./mdadm.h | 30 ++++++++++++++++++++++++++++-- 9 files changed, 206 insertions(+), 13 deletions(-)

diff ./Build.c~current~ ./Build.c

064BigDevs
Status: devel

Support for devices > 32bit sectors in raid0 and linear arrays.

Signed-off-by: Neil Brown

### Diffstat output ./ChangeLog | 4 +++- ./Create.c | 37 +++++++++++++++++++++++++++---------- ./Examine.c | 3 ++- ./util.c | 35 ++++++++++++++++++++++++++--------- 4 files changed, 58 insertions(+), 21 deletions(-)

diff ./ChangeLog~current~ ./ChangeLog

065V1.8.0
Status: ok

Create version 1.8.0

Signed-off-by: Neil Brown

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

diff ./ChangeLog~current~ ./ChangeLog