]> 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>
Thu, 21 Nov 2024 00:27:25 +0000 (16:27 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 23 Jan 2025 21:19:56 +0000 (13:19 -0800)
commit586e612c800fefe275c9198db8eb68fad8579917
tree1daeadd8cb7295afb79e9823fe219cb7309ed3f8
parent0dbff644908634b69761753d3f65a58055d5b585
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