summaryrefslogtreecommitdiffstats
path: root/sys-utils/fstrim.service.in
diff options
context:
space:
mode:
authorSami Kerola2019-05-07 21:18:08 +0200
committerSami Kerola2019-05-07 21:18:08 +0200
commit374baa6f64cafe7f1455d68da4fe7069ffbfe6c8 (patch)
tree98d4e5355c833266bf240b0f0703cfc14774c104 /sys-utils/fstrim.service.in
parentbuild-sys: use __SANITIZE_ADDRESS__ rather than custom USE_CLOSE_ATEXIT (diff)
downloadkernel-qcow2-util-linux-374baa6f64cafe7f1455d68da4fe7069ffbfe6c8.tar.gz
kernel-qcow2-util-linux-374baa6f64cafe7f1455d68da4fe7069ffbfe6c8.tar.xz
kernel-qcow2-util-linux-374baa6f64cafe7f1455d68da4fe7069ffbfe6c8.zip
fstrim: add --quiet option to suppress error messages
When fstrim interacts with NTFS it result can be error reporting bad file descriptor. That seems to be a bug in NTFS. While waiting driver to get on top of the issue and be commonly available lets add to fstrim option to make it be more silent about errno 9 aka EBADF, Bad file descriptor. Reported-by: https://github.com/moviuro Proposed-by: Dave Reisner <dreisner@archlinux.org> Reference: https://bugs.archlinux.org/task/62288 Addresses: https://github.com/karelzak/util-linux/issues/789 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/fstrim.service.in')
-rw-r--r--sys-utils/fstrim.service.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/fstrim.service.in b/sys-utils/fstrim.service.in
index d58accd7f..516023ed8 100644
--- a/sys-utils/fstrim.service.in
+++ b/sys-utils/fstrim.service.in
@@ -4,7 +4,7 @@ Documentation=man:fstrim(8)
[Service]
Type=oneshot
-ExecStart=@sbindir@/fstrim --fstab --verbose
+ExecStart=@sbindir@/fstrim --fstab --verbose --quiet
ProtectSystem=strict
ProtectHome=yes
PrivateDevices=no