]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/fstrim.c
fstrim: use new ul_path_* API, improve sysfs context usage
authorKarel Zak <kzak@redhat.com>
Tue, 29 May 2018 10:10:31 +0000 (12:10 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 21 Jun 2018 11:07:46 +0000 (13:07 +0200)
commitc69bd2cbffb2ead4189dd9399bd46e5e1d6321de
tree0d3d988d48d47d9f7da026d008840fd0713ea39f
parent67f2d1e326c61c6ea70c0e14d2371645819517fd
fstrim: use new ul_path_* API, improve sysfs context usage

* improve has_discard() function to initialize sysfs context only once
* use new ul_path_* API

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fstrim.c