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 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
23 rm -f $tmp.* $testfile
26 # get standard environment, filters and checks
29 # real QA test starts here
31 _require_aiodio "aio-dio-append-write-fallocate-race"
33 _require_xfs_io_command "falloc"
37 testfile=$TEST_DIR/test-$seq
38 $AIO_TEST $testfile 100 >> $seqres.full
40 echo Silence is golden.