diff options
author | Karel Zak | 2018-12-10 11:45:03 +0100 |
---|---|---|
committer | Karel Zak | 2018-12-10 11:45:03 +0100 |
commit | 410d12e5beb78838fc7c6d47d4c433459dc8b857 (patch) | |
tree | 7b4aaab5417c35b8cc1f3d87182da86502eeb879 /sys-utils/fstrim.8 | |
parent | libmount: export mnt_guess_system_root() by API (diff) | |
download | kernel-qcow2-util-linux-410d12e5beb78838fc7c6d47d4c433459dc8b857.tar.gz kernel-qcow2-util-linux-410d12e5beb78838fc7c6d47d4c433459dc8b857.tar.xz kernel-qcow2-util-linux-410d12e5beb78838fc7c6d47d4c433459dc8b857.zip |
fstrim: trim also root FS on --fstab
The root fs ("/") is optional in many case in /etc/fstab. This patch
forces fstrim to read kernel command line for the root= option to get
root FS if the entry is missing in your fstab.
Addresses: https://github.com/karelzak/util-linux/issues/719
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fstrim.8')
-rw-r--r-- | sys-utils/fstrim.8 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/fstrim.8 b/sys-utils/fstrim.8 index ff572a44b..f7e7aa9ef 100644 --- a/sys-utils/fstrim.8 +++ b/sys-utils/fstrim.8 @@ -48,7 +48,8 @@ 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. +discard operation. The root filesystem is determined from kernel command line if missing +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 |