summaryrefslogtreecommitdiffstats
path: root/sys-utils/fstrim.8
diff options
context:
space:
mode:
authorKarel Zak2019-06-11 11:05:12 +0200
committerKarel Zak2019-06-11 11:05:12 +0200
commit6466959d9af04a2f720374839c6ecf89de02f4b6 (patch)
tree3e9f5e10f72c12aa979c961be217fb3c981baf73 /sys-utils/fstrim.8
parentcfdisk: simplify code (diff)
downloadkernel-qcow2-util-linux-6466959d9af04a2f720374839c6ecf89de02f4b6.tar.gz
kernel-qcow2-util-linux-6466959d9af04a2f720374839c6ecf89de02f4b6.tar.xz
kernel-qcow2-util-linux-6466959d9af04a2f720374839c6ecf89de02f4b6.zip
fstrim: update man page, reuse libmnt_iter
* add info about read-only to the man page * don't be systemd specific, people aso use crond * reuse libmnt_iter Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fstrim.8')
-rw-r--r--sys-utils/fstrim.812
1 files changed, 6 insertions, 6 deletions
diff --git a/sys-utils/fstrim.8 b/sys-utils/fstrim.8
index 7e04d46be..7e39b33d7 100644
--- a/sys-utils/fstrim.8
+++ b/sys-utils/fstrim.8
@@ -52,15 +52,14 @@ discard operation. The root filesystem is determined from kernel command line i
in the file.
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.
-
+Errors from filesystems that do not support the discard operation,
+read-only devices and read-only filesystems 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
\fB-\-minimum\fR, are applied to all these devices.
-Errors from filesystems that do not support the discard operation are silently
-ignored.
+Errors from filesystems that do not support the discard operation,
+read-only devices and read-only filesystems are silently ignored.
.IP "\fB\-n, \-\-dry\-run\fP"
This option does everything apart from actually call FITRIM ioctl.
.IP "\fB\-o, \-\-offset\fP \fIoffset\fP"
@@ -102,7 +101,8 @@ option).
.TP
.B \-\-quiet
Suppress error messages. This option is meant to be used in systemd service
-file to hide warnings that are result of known problems, such as NTFS driver
+file or in cron scripts to hide warnings that are result of known problems,
+such as NTFS driver
reporting
.I Bad file descriptor
when device is mounted read-only, or lack of file system support for ioctl