]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/792: skip test if rextsize isn't congruent with operation length
authorDarrick J. Wong <djwong@kernel.org>
Wed, 9 Apr 2025 15:15:34 +0000 (08:15 -0700)
committerZorro Lang <zlang@kernel.org>
Thu, 10 Apr 2025 14:32:59 +0000 (22:32 +0800)
This test writes 64k chunks and encodes the file content hash in the
golden output.  Don't run it if the file allocation unit isn't congruent
with 64k.  Fixes extsize=28k configurations.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/792

index 6c7b2db1135625a9aac8474d5e58b5ab183b600b..b1436a113a152abf3fda35f3cfb162b19949bf02 100755 (executable)
@@ -30,6 +30,7 @@ _require_xfs_io_error_injection "bmap_finish_one"
 
 _scratch_mkfs >> $seqres.full
 _scratch_mount
+_require_congruent_file_oplen $SCRATCH_MNT 65536
 
 # Create original file
 _pwrite_byte 0x58 0 1m $SCRATCH_MNT/a >> $seqres.full