]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Incremental: add --export handling.
authorNeilBrown <neilb@suse.de>
Thu, 28 Nov 2013 04:15:30 +0000 (15:15 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 28 Nov 2013 04:15:30 +0000 (15:15 +1100)
commit9ca39acb3e8bc31811e463d19fae81c5501aea65
tree6b00343e8d70fd33f95d838499b24a93c971704e
parentc1736844ba49ec1a8731b5815abfd6530b982a3b
Incremental: add --export handling.

If --export is given with --incremental, then
  MD_DEVNAME
is output which gives the name of the device (in /dev/md) that
is the array (or container) that the device would be added to.
Also
  MD_STARTED
is set to one of
  no
  unsafe
  yes
  nothing

to indicate if the array was started.  IF MD_STARTED=unsafe
then it may be appropriate to run
  mdadm -R /dev/md/$MD_DEVNAME
after a timeout to ensure newly degraded array are started.

If
  MD_FOREIGN=yes
it might be appropriate to suppress this as the array is
probably not critical.

Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c
Incremental.c
mdadm.8.in
mdadm.h