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 _begin_fstest rw aio auto quick
12 # Override the default cleanup function.
16 rm -f $TEST_DIR/tst-aio-dio-eof-race
19 # Import common functions.
26 _require_aiodio aio-dio-eof-race
28 # Test does 512 byte DIO, so make sure that'll work
29 logical_block_size=`_min_dio_alignment $TEST_DEV`
31 if [ "$logical_block_size" -gt "512" ]; then
32 _notrun "device block size: $logical_block_size greater than 512"
35 # We don't mind 512-byte fs blocks; the IOs won't be sub-block,
36 # but the test should still pass, even if it doesn't stress the code
39 # Note, this test does several extending loops internally
40 $AIO_TEST $TEST_DIR/tst-aio-dio-eof-race