]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim: add --quiet option to suppress error messages
authorSami Kerola <kerolasa@iki.fi>
Tue, 7 May 2019 19:18:08 +0000 (20:18 +0100)
committerSami Kerola <kerolasa@iki.fi>
Tue, 7 May 2019 19:18:08 +0000 (20:18 +0100)
commit374baa6f64cafe7f1455d68da4fe7069ffbfe6c8
tree98d4e5355c833266bf240b0f0703cfc14774c104
parent084365f1a1ebed26f2a15e5fc57230a3d7bcdad7
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>
sys-utils/fstrim.8
sys-utils/fstrim.c
sys-utils/fstrim.service.in