2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2015 Red Hat, Inc. All Rights Reserved.
7 # Test races while extending past EOF via sub-block AIO writes
10 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
15 status=1 # failure is the default!
16 trap "_cleanup; exit \$status" 0 1 2 3 15
21 rm -f $TEST_DIR/tst-aio-dio-eof-race
24 # get standard environment, filters and checks
33 _require_aiodio aio-dio-eof-race
35 # Test does 512 byte DIO, so make sure that'll work
36 logical_block_size=`_min_dio_alignment $TEST_DEV`
38 if [ "$logical_block_size" -gt "512" ]; then
39 _notrun "device block size: $logical_block_size greater than 512"
42 # We don't mind 512-byte fs blocks; the IOs won't be sub-block,
43 # but the test should still pass, even if it doesn't stress the code
46 # Note, this test does several extending loops internally
47 $AIO_TEST $TEST_DIR/tst-aio-dio-eof-race