]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lib/fs: fix issue when {name,open}_to_handle_at() is not implemented
authorHeiko Thiery <heiko.thiery@gmail.com>
Sat, 8 May 2021 06:49:26 +0000 (08:49 +0200)
committerDavid Ahern <dsahern@kernel.org>
Mon, 17 May 2021 02:31:29 +0000 (02:31 +0000)
commitc5b72cc56bf88160bbf477ec8565fed865e7a1c9
tree72df1a3fe43c5e5749b1f738de4009d4c765dfda
parent62c88ed9402650823a88c2974efdc39a320dfe7b
lib/fs: fix issue when {name,open}_to_handle_at() is not implemented

With commit d5e6ee0dac64 the usage of functions name_to_handle_at() and
open_by_handle_at() are introduced. But these function are not available
e.g. in uclibc-ng < 1.0.35. To have a backward compatibility check for the
availability in the configure script and in case of absence do a direct
syscall.

Fixes: d5e6ee0dac64 ("ss: introduce cgroup2 cache and helper functions")
Cc: Dmitry Yakunin <zeil@yandex-team.ru>
Cc: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
configure
lib/fs.c