]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libfrog: add parent pointer support code
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:21:20 +0000 (14:21 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:12:36 +0000 (17:12 -0700)
commit093bf5fd9b60bf0553620f174241c53ff3c3627a
tree1381ae565b8391ee14e3423b1b57e33c75bf16d3
parent1acaa67d4f13990c781eab80c3ebc389926ea874
libfrog: add parent pointer support code

Add some support code to libfrog so that client programs can walk file
descriptors and handles upwards through the directory tree; and obtain a
reasonable file path from a file descriptor/handle.  This code will be
used in xfsprogs utilities.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
include/handle.h
libfrog/Makefile
libfrog/getparents.c [new file with mode: 0644]
libfrog/getparents.h [new file with mode: 0644]
libfrog/paths.c
libfrog/paths.h
libhandle/handle.c