diff --git a/tests/xfs/140 b/tests/xfs/140 index c06a722a..7385dc42 100755 --- a/tests/xfs/140 +++ b/tests/xfs/140 @@ -39,16 +39,21 @@ _scratch_mount blksz=$(_get_file_block_size $SCRATCH_MNT) _scratch_unmount +agsize=$((8192 * $blksz)) +if [[ $agsize -lt $((16 * 1024 * 1024)) ]]; then + agsize=$((16 * 1024 * 1024)) +fi +sz=$((4096 * $blksz + $agsize)) +nr=$(($sz / $blksz)) + echo "Format and mount" -_scratch_mkfs -d agsize=$((8192 * $blksz)) > $seqres.full 2>&1 +_scratch_mkfs -d agsize=$agsize > $seqres.full 2>&1 _scratch_mount >> $seqres.full 2>&1 testdir=$SCRATCH_MNT/test-$seq mkdir $testdir echo "Create the original files" -nr=12288 -sz=$(($nr * $blksz)) _pwrite_byte 0x61 0 $sz $testdir/file1 >> $seqres.full _cp_reflink $testdir/file1 $testdir/file2 >> $seqres.full _pwrite_byte 0x61 0 $sz $testdir/file2.chk >> $seqres.full