summaryrefslogtreecommitdiffstats
path: root/mdadm.8
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2008-09-16 05:58:42 +0200
committerDan Williams <dan.j.williams@intel.com>2008-09-16 05:58:42 +0200
commit1770662bcac724915520fd0784b6f806c8d96752 (patch)
treeeadc61fbd375d5120cbe9eb1a5036967bdf0f716 /mdadm.8
parentAdd ping_monitor() to mdadm --wait (diff)
downloadmdadm-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.86
1 files changed, 6 insertions, 0 deletions
diff --git a/mdadm.8 b/mdadm.8
index 3c283ca9..ab659fcb 100644
--- a/mdadm.8
+++ b/mdadm.8
@@ -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