]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsns: (refactor) add get_{parent|owner}_ns_ino() implementing some parts of get_ns_ino()
authorMasatake YAMATO <yamato@redhat.com>
Wed, 1 May 2024 02:46:05 +0000 (11:46 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Wed, 1 May 2024 19:54:09 +0000 (04:54 +0900)
commitcc8174cf1e6c2077818ee9cdd4d8af5766dfb38d
tree452f86c94f2882e8183caa8fe85ac3f091a08701
parent8a1320f7d3bdcd452155a562949c81308a97a453
lsns: (refactor) add get_{parent|owner}_ns_ino() implementing some parts of get_ns_ino()

get_ns_ino() returns three inode numbers. The code for the two of three,
inodes for PARENT and USERNS, is moved to the new functions.
So we can reuse the code in other places in lsns.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
sys-utils/lsns.c