]> 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>
Thu, 17 Oct 2024 17:28:22 +0000 (10:28 -0700)
commit923dd4baa8c462ba3ec4f2a9eba1d8ff2ca04ed4
treedb2eea4dc0bb4f1b6acb9a6e771b61521d599f11
parent84096457019d615908108c213ef945bd57367c71
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