]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/735: skip this test if we cannot finsert at pos 1M
authorDarrick J. Wong <djwong@kernel.org>
Wed, 13 Dec 2023 22:34:45 +0000 (14:34 -0800)
committerZorro Lang <zlang@kernel.org>
Fri, 15 Dec 2023 18:02:59 +0000 (02:02 +0800)
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>
tests/generic/735

index 44b454771d73a6121f2183fc4693439160338b5a..75b23d5efcf7776c7607b943a3c32cc133b63075 100755 (executable)
@@ -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