From c5b8909f13d29d066ee9882fe0e3129d2f3bcffc Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 31 Jul 2018 16:38:59 +0200 Subject: fstrim: add -A|--fstab to trim according to /etc/fstab Addresses: https://github.com/karelzak/util-linux/issues/673 Signed-off-by: Karel Zak --- sys-utils/fstrim.8 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sys-utils/fstrim.8') diff --git a/sys-utils/fstrim.8 b/sys-utils/fstrim.8 index f86dda984..4e052a546 100644 --- a/sys-utils/fstrim.8 +++ b/sys-utils/fstrim.8 @@ -3,7 +3,7 @@ fstrim \- discard unused blocks on a mounted filesystem .SH SYNOPSIS .B fstrim -.RB [ \-a ] +.RB [ \-Aa ] .RB [ \-o .IR offset ] .RB [ \-l @@ -46,6 +46,14 @@ MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is optional, e.g., "K" has the same meaning as "KiB") or the suffixes KB (=1000), MB (=1000*1000), and so on for GB, TB, PB, EB, ZB and YB. +.IP "\fB\-A, \-\-fstab\fP" +Trim all mounted filesystems mentioned in \fI/etc/fstab\fR on devices that support the +discard operation. +The other supplied options, like \fB\-\-offset\fR, \fB\-\-length\fR and +\fB-\-minimum\fR, are applied to all these devices. +Errors from filesystems that do not support the discard operation are silently +ignored. + .IP "\fB\-a, \-\-all\fP" Trim all mounted filesystems on devices that support the discard operation. The other supplied options, like \fB\-\-offset\fR, \fB\-\-length\fR and -- cgit v1.2.3-55-g7522