]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
libfrog: add parent pointer support code
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:20 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:11 +0000 (17:01 -0700)
commit56f6ba21e97756131eefbf3cfb8faa9b57ad0ee7
tree1381ae565b8391ee14e3423b1b57e33c75bf16d3
parent540a0a03983a561d9c93d35ab90f1c9ccc4dfae1
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