]> 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>
Fri, 6 Apr 2018 10:53:18 +0000 (12:53 +0200)
commit7afdbb6f0760952c6e4f86d4c73442d1caee96a8
tree3eeb8a0c35c652505aa1ce97d2c8f9d200a00a29
parent6963338ca586bef3370e189f13785b4b6b63bbdb
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