aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-12-13 14:34:45 -0800
committerZorro Lang <zlang@kernel.org>2023-12-16 02:02:59 +0800
commitabc57c0daaf62c4f106d2e3852564d82adc185ec (patch)
treef72b1e2d781c1e0551df74ac2f1c36a1e9f7593c
parentb223ff181a863b72749985076bc80128e895e502 (diff)
downloadxfstests-dev-abc57c0daaf62c4f106d2e3852564d82adc185ec.tar.gz
generic/735: skip this test if we cannot finsert at pos 1M
Add a _require_congruent_file_oplen to screen out filesystem configurations that can't start a finsert operation at file pos 1M because the fs block size isn't congruent with 1048576. For example, xfs realtime with 28k rt extents. Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-xtests/generic/7351
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/generic/735 b/tests/generic/735
index 44b454771d..75b23d5efc 100755
--- a/tests/generic/735
+++ b/tests/generic/735
@@ -25,6 +25,7 @@ dev_size=$((80 * 1024 * 1024))
_scratch_mkfs_sized $dev_size >>$seqres.full 2>&1 || _fail "mkfs failed"
_scratch_mount
+_require_congruent_file_oplen $SCRATCH_MNT 1048576 # finsert at 1M
file_blksz="$(_get_file_block_size ${SCRATCH_MNT})"
# Reserve 1M space