summaryrefslogtreecommitdiffstats
path: root/man/man8/zpool-trim.8
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2020-03-04 15:07:11 -0800
committerGitHub <[email protected]>2020-03-04 15:07:11 -0800
commit2288d4196821ae4b5fa375e8e519f6e83f26abad (patch)
tree49c49baf2112da27d14ea2f90e09a333d1ab99da /man/man8/zpool-trim.8
parentb3212d2fa6ab8d7d8373373e8a6b8acbbf45508e (diff)
Add trim support to zpool wait
Manual trims fall into the category of long-running pool activities which people might want to wait synchronously for. This change adds support to 'zpool wait' for waiting for manual trim operations to complete. It also adds a '-w' flag to 'zpool trim' which can be used to turn 'zpool trim' into a synchronous operation. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Serapheim Dimitropoulos <[email protected]> Signed-off-by: John Gallagher <[email protected]> Closes #10071
Diffstat (limited to 'man/man8/zpool-trim.8')
-rw-r--r--man/man8/zpool-trim.88
1 files changed, 5 insertions, 3 deletions
diff --git a/man/man8/zpool-trim.8 b/man/man8/zpool-trim.8
index 4df3e9984..1a887bba5 100644
--- a/man/man8/zpool-trim.8
+++ b/man/man8/zpool-trim.8
@@ -27,7 +27,7 @@
.\" Copyright 2017 Nexenta Systems, Inc.
.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
.\"
-.Dd August 9, 2019
+.Dd February 25, 2020
.Dt ZPOOL-TRIM 8
.Os Linux
.Sh NAME
@@ -36,7 +36,7 @@
.Sh SYNOPSIS
.Nm
.Cm trim
-.Op Fl d
+.Op Fl dw
.Op Fl r Ar rate
.Op Fl c | Fl s
.Ar pool
@@ -46,7 +46,7 @@
.It Xo
.Nm
.Cm trim
-.Op Fl d
+.Op Fl dw
.Op Fl c | Fl s
.Ar pool
.Op Ar device Ns ...
@@ -84,6 +84,8 @@ trimmed, the command will fail and no suspension will occur on any device.
Trimming can then be resumed by running
.Nm zpool Cm trim
with no flags on the relevant target devices.
+.It Fl w -wait
+Wait until the devices are done being trimmed before returning.
.El
.El
.Sh SEE ALSO