From: Christoph Hellwig Date: Wed, 17 Jun 2026 06:04:17 +0000 (+0200) Subject: generic/366: check minimum dio size correctly X-Git-Tag: v2026.06.21~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=26eb955e4243495c0df0bc2f157cda32edccf18b;p=xfstests-dev.git generic/366: check minimum dio size correctly min_dio_alignment requires the file system to be checked to be mounted, so move the call into the main loop. Drop the pointless blocksize argument to _require_odirect, which is only tested on the test device. Signed-off-by: Christoph Hellwig Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/tests/generic/366 b/tests/generic/366 index 271a01bc..cb183c1b 100755 --- a/tests/generic/366 +++ b/tests/generic/366 @@ -20,7 +20,7 @@ _begin_fstest auto quick rw . ./common/filter _require_scratch -_require_odirect 512 # see fio job1 config below +_require_odirect _require_aio _fixed_by_fs_commit btrfs xxxxxxxxxxxx \ @@ -30,7 +30,7 @@ iterations=$((32 * LOAD_FACTOR)) fio_config=$tmp.fio fio_out=$tmp.fio.out -blksz=`$here/src/min_dio_alignment $SCRATCH_MNT $SCRATCH_DEV` + cat >$fio_config <>$seqres.full 2>&1 _scratch_mount + + if [ -z "$blksz" ]; then + blksz=`$here/src/min_dio_alignment $SCRATCH_MNT $SCRATCH_DEV` + if [[ $blksz -gt 512 ]]; then + _notrun "512 byte dio alignment required" + fi + fi + # There's a known EIO failure to report collisions between directio and buffered # writes to userspace, refer to upstream linux 5a9d929d6e13. So ignore EIO error # at here.