From 374baa6f64cafe7f1455d68da4fe7069ffbfe6c8 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Tue, 7 May 2019 20:18:08 +0100 Subject: 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 Reference: https://bugs.archlinux.org/task/62288 Addresses: https://github.com/karelzak/util-linux/issues/789 Signed-off-by: Sami Kerola --- sys-utils/fstrim.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/fstrim.service.in') 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 -- cgit v1.2.3-55-g7522