]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: optimize symlinks use
authorKarel Zak <kzak@redhat.com>
Thu, 30 Sep 2021 09:11:30 +0000 (11:11 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Oct 2021 09:01:54 +0000 (11:01 +0200)
commitb813e8ce8f0375ce7f8b3f0deb8f51f8af5d333f
treea813de6b5b4e9ffc18072c3023188f1762df5269
parent5593f1d147d4d72f2f0da47af4222b38168a157b
lsfd: optimize symlinks use

Like the previous commit, this patch tries to reuse
/proc/#/{fd,ns,cwd,root} symlinks if possible. On my machine it
saves ~2000 stat() calls.

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