]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_db: obfuscate dirent and parent pointer names consistently
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:22 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:11 +0000 (17:01 -0700)
commit295fde6d15dd0fff1d006ff7324f43bd735c119e
tree48ea26748b965a8e391352417f8c9f117eea03c8
parent04f06c2872315652d1eebcbf91bce145200a8afd
xfs_db: obfuscate dirent and parent pointer names consistently

When someone wants to perform an obfuscated metadump of a filesystem
where parent pointers are enabled, we have to use the *exact* same
obfuscated name for both the directory entry and the parent pointer.

Create a name remapping table so that when we obfuscate a dirent name or
a parent pointer name, we can apply the same obfuscation when we find
the corresponding parent pointer or dirent.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
db/metadump.c
libxfs/libxfs_api_defs.h