diff options
author | Karel Zak | 2018-07-31 16:38:59 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-31 16:38:59 +0200 |
commit | c5b8909f13d29d066ee9882fe0e3129d2f3bcffc (patch) | |
tree | 3c4fc5b94f41cd2225fc3befe2b547bb50f0b6f8 /sys-utils/fstrim.8 | |
parent | fstrim: add control struct (diff) | |
download | kernel-qcow2-util-linux-c5b8909f13d29d066ee9882fe0e3129d2f3bcffc.tar.gz kernel-qcow2-util-linux-c5b8909f13d29d066ee9882fe0e3129d2f3bcffc.tar.xz kernel-qcow2-util-linux-c5b8909f13d29d066ee9882fe0e3129d2f3bcffc.zip |
fstrim: add -A|--fstab to trim according to /etc/fstab
Addresses: https://github.com/karelzak/util-linux/issues/673
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fstrim.8')
-rw-r--r-- | sys-utils/fstrim.8 | 10 |
1 files changed, 9 insertions, 1 deletions
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 |