]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim: Return EXIT_FAILURE when FTRIM ioctl fails
authorKarel Zak <kzak@redhat.com>
Fri, 6 Apr 2018 10:53:18 +0000 (12:53 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Jul 2018 14:03:19 +0000 (16:03 +0200)
commit58b2bb661d494cc22023dfac84a39f3cfba1ac54
treeb5daf586c5b5c56bc1a14a3a51cb317f554e50aa
parent3be3880f31d94751f2d6001d983a460de981be0a
fstrim: Return EXIT_FAILURE when FTRIM ioctl fails

commit 36c370cbf1481aa8724dff8b7b7fec4a8ba9930b adds fstrim_filesystem()
that return -1 or 1 depending on the FTRIM ioctl failures.

The fstrim_filesystem() return codes should not be used as exit codes.

Reported-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fstrim.c