]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: port ondisk structure checks from xfs/122 to the kernel
authorDarrick J. Wong <djwong@kernel.org>
Mon, 25 Nov 2024 21:14:27 +0000 (13:14 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:31 +0000 (18:01 -0800)
commit318c294dcb53add78f82dc6ad7214e91bd1e8060
treef80d439d22c21d3ee98d81a0b06838ce14b94f56
parentf20309e8a094fb36ed04c0cf9ad88a81464c6ca5
xfs: port ondisk structure checks from xfs/122 to the kernel

Source kernel commit: 13877bc79d81354c53e91f3c86ac0f7bafe3ba7b

Check this with every kernel and userspace build, so we can drop the
nonsense in xfs/122.  Roughly drafted with:

sed -e 's/^offsetof/\tXFS_CHECK_OFFSET/g' \
-e 's/^sizeof/\tXFS_CHECK_STRUCT_SIZE/g' \
-e 's/ = \([0-9]*\)/,\t\t\t\1);/g' \
-e 's/xfs_sb_t/struct xfs_dsb/g' \
-e 's/),/,/g' \
-e 's/xfs_\([a-z0-9_]*\)_t,/struct xfs_\1,/g' \
< tests/xfs/122.out | sort

and then manual fixups.

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