xfs: port ondisk structure checks from xfs/122 to the kernel
authorDarrick J. Wong <djwong@kernel.org>
Mon, 4 Nov 2024 04:19:45 +0000 (20:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 5 Nov 2024 21:38:47 +0000 (13:38 -0800)
commit13877bc79d81354c53e91f3c86ac0f7bafe3ba7b
tree483b75202343dcbc9d3f63e0c48584323e6d6cbb
parent131a883fffb1a194957dc0e400d9f627c7cd1924
xfs: port ondisk structure checks from xfs/122 to the kernel

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>
fs/xfs/libxfs/xfs_ondisk.h