]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
punch-alternating: detect xfs realtime files with large allocation units
authorDarrick J. Wong <djwong@kernel.org>
Tue, 6 Feb 2024 00:06:41 +0000 (16:06 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 1 Nov 2024 20:41:57 +0000 (13:41 -0700)
commit961ab44acc291e600b0c8417593420c6b99977e4
tree1f27faf7a62b4ce28f2338e7a783dfcab58ac807
parent8a401a939471e6eb6137418b04282fcb4911687a
punch-alternating: detect xfs realtime files with large allocation units

For files on the XFS realtime volume, it's possible that the file
allocation unit (aka the minimum size we have to punch to deallocate
file blocks) could be greater than a single fs block.  This utility
assumed that it's always possible to punch a single fs block, but for
these types of files, all that does is zeroes the page cache.  While
that's what most *user applications* want, fstests uses punching to
fragment file mapping metadata and/or fragment free space, so adapt this
test for that purpose by detecting realtime files.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
src/punch-alternating.c
tests/xfs/114
tests/xfs/146
tests/xfs/187
tests/xfs/341