]> www.infradead.org Git - users/hch/misc.git/commit
xfs: implement block-metadata based data checksums xfs-data-crc
authorChristoph Hellwig <hch@lst.de>
Mon, 3 Feb 2025 09:42:27 +0000 (10:42 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 3 Feb 2025 09:42:38 +0000 (10:42 +0100)
commit99d5f00e7209b1efbf51c27f4746718c27104289
treebfab3005a0bcc5b63e15166697794cc38449eb49
parent5b8b054ee57196ffbbd33ca472328041d4485762
xfs: implement block-metadata based data checksums

This is a quick hack to demonstrate how data checksumming can be
implemented when it can be stored in the out of line metadata for each
logical block.  It builds on top of the previous PI infrastructure
and instead of generating/verifying protection information it simply
generates and verifies a crc32c checksum and stores it in the non-PI
metadata.  It misses a feature bit in the superblock, checking that
enough size is available in the metadata and many other things.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_data_csum.c