]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: don't keep sysfs dirs open
authorKarel Zak <kzak@redhat.com>
Wed, 17 Oct 2018 11:19:50 +0000 (13:19 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 7 Dec 2018 11:32:58 +0000 (12:32 +0100)
commitff7992d631c864bfcbf9f3fbf64cf3adbbd99f18
tree6734f85e9b11e63b4096db5d8d56d0f7b7aeedfd
parentc9ea91d41ef0fb1975e8340a010e777aee84b089
lsblk: don't keep sysfs dirs open

Don't keep open sysfs file descriptors for all time to avoid problems
on systems with huge number of block devices.

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