]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: add command to copy directory trees out of filesystems
authorDarrick J. Wong <djwong@kernel.org>
Mon, 24 Feb 2025 18:22:08 +0000 (10:22 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 25 Feb 2025 17:16:03 +0000 (09:16 -0800)
commit8c4e704f370e0361c3e3dae5f8751ff580fa95a4
tree2ba92d5568e842331327caa38bdbc19eb6462576
parent6cccd3dcd5a66f9df9b9ba1baafeeea0ff659b3c
xfs_db: add command to copy directory trees out of filesystems

Aheada of deprecating V4 support in the kernel, let's give people a way
to extract their files from a filesystem without needing to mount.  The
libxfs code won't be removed from the kernel until 2030 and xfsprogs
effectively builds with XFS_SUPPORT_V4=y so that'll give us five years
of releases for archaeologists to draw from.  Also, doing this in
userspace gives people a way to recover files in an unprivileged
container for better safety.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/Makefile
db/command.c
db/command.h
db/namei.c
db/namei.h [new file with mode: 0644]
db/rdump.c [new file with mode: 0644]
libxfs/libxfs_api_defs.h
man/man8/xfs_db.8