2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) 2019, Oracle and/or its affiliates. All Rights Reserved.
7 # Race an appending aio dio write to the second block of a file while
8 # simultaneously fallocating to the first block. Make sure that we end up
9 # with a two-block file.
12 _begin_fstest auto quick rw prealloc
14 # Override the default cleanup function.
18 rm -f $tmp.* $testfile
21 # Import common functions.
23 # real QA test starts here
25 _require_aiodio "aio-dio-append-write-fallocate-race"
27 _require_xfs_io_command "falloc"
29 testfile=$TEST_DIR/test-$seq
30 $AIO_TEST $testfile 100 >> $seqres.full
32 echo Silence is golden.