diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-09-16 05:58:42 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-09-16 05:58:42 +0200 |
commit | 1770662bcac724915520fd0784b6f806c8d96752 (patch) | |
tree | eadc61fbd375d5120cbe9eb1a5036967bdf0f716 /mdadm.8 | |
parent | Add ping_monitor() to mdadm --wait (diff) | |
download | mdadm-1770662bcac724915520fd0784b6f806c8d96752.tar.xz mdadm-1770662bcac724915520fd0784b6f806c8d96752.zip |
'mdadm --wait-clean' wait for array to be marked clean
For use in distro shutdown scripts with a RAID root file system.
Returns immediately if the array is 'readonly', or not an externally
managed array. It is up to the distro's scripts to make sure no new
writes hit the device after this returns 'true'.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdadm.8')
-rw-r--r-- | mdadm.8 | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1014,6 +1014,12 @@ activity to finish before returning. will return with success if it actually waited for every device listed, otherwise it will return failure. +.TP +.BR \-\-wait\-clean +For each md device given, wait for the array to be marked clean before +returning. For native arrays this returns immediately as the kernel +handles dirty-clean transistions at shutdown. + .SH For Incremental Assembly mode: .TP .BR \-\-rebuild\-map ", " \-r |