]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: make listdir more generally useful
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:22:07 +0000 (10:22 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:16:03 +0000 (09:16 -0800)
commit6cccd3dcd5a66f9df9b9ba1baafeeea0ff659b3c
tree999281e071a96371d27fc271841d57e3ce168391
parent02e1a64925dad8fa7eef41319b5cd3b0ff7b6653
xfs_db: make listdir more generally useful

Enhance the current directory entry iteration code in xfs_db to be more
generally useful by allowing callers to pass around a transaction, a
callback function, and a private pointer.  This will be used in the next
patch to iterate directories when we want to copy their contents out of
the filesystem into a directory.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
db/namei.c