2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Liu Bo. All Rights Reserved.
5 # FS QA Test generic/406
7 # If a larger dio write (size >= 128M) got splitted, the assertion in endio
8 # would complain (CONFIG_BTRFS_ASSERT is required).
11 # Btrfs: adjust outstanding_extents counter properly when dio write is split
14 _begin_fstest auto quick
16 # Import common functions.
19 # real QA test starts here
21 # Modify as appropriate.
26 _scratch_mkfs >> $seqres.full 2>&1
30 blocksize=$(( (128 + 1) * 2 * 1024 * 1024))
31 fsblock=$(( (128 + 1) * 2 * 1024))
32 _require_fs_space $SCRATCH_MNT $fsblock
34 echo "Silence is golden"
36 $XFS_IO_PROG -f -d -c "pwrite -b ${blocksize} 0 ${blocksize}" $SCRATCH_MNT/testfile.$seq >> $seqres.full 2>&1