This test fails when using zram because it's using bs=1k for DIO in fio jobs. Fix the test by using _min_dio_alignment instead to get the correct blocksize. Signed-off-by: Luís Henriques <lhenriques@xxxxxxx> --- tests/generic/095 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/generic/095 b/tests/generic/095 index c4693917b3e1..80448200bb86 100755 --- a/tests/generic/095 +++ b/tests/generic/095 @@ -23,6 +23,7 @@ iodepth_batch=$((8 * LOAD_FACTOR)) numjobs=$((5 * LOAD_FACTOR)) fio_config=$tmp.fio fio_out=$tmp.fio.out +blksz=$(_min_dio_alignment $SCRATCH_DEV) cat >$fio_config <<EOF [global] bs=8k @@ -34,7 +35,7 @@ directory=$SCRATCH_MNT numjobs=$numjobs [job1] ioengine=sync -bs=1k +bs=$blksz direct=1 rw=randread filename=file1:file2 @@ -44,7 +45,7 @@ rw=randwrite direct=1 filename=file1:file2 [job3] -bs=1k +bs=$blksz ioengine=posixaio rw=randwrite direct=1