Skip to contentSkip to conversation

xfs/792: skip test if rextsize isn't congruent with operation length

PATCH In review Darrick J. Wong 2 participants 2 messages Apr 9, 2025 – Apr 10, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs/792: skip test if rextsize isn't congruent with operation length

From: Darrick J. Wong <[email protected]>

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.

---
 tests/xfs/792 |    1 +
 1 file changed, 1 insertion(+)
tests/xfs/792 +1 -0
index 6c7b2db1135625..b1436a113a152a 100755
@@ -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