2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Alibaba Group. All Rights Reserved.
4 # Copyright (c) 2017 Red Hat Inc. All Rights Reserved.
8 # Test i_size is updated properly under dio read/write
11 _begin_fstest auto rw quick aio
13 # Override the default cleanup function.
17 rm -f $tmp.* $testfile.*
20 # Import common functions.
23 # real QA test starts here
26 _require_aiodio aio-dio-append-write-read-race
27 _require_test_program "feature"
29 testfile=$TEST_DIR/$seq.$$
30 min_dio_align=`_min_dio_alignment $TEST_DEV`
31 page_size=`$here/src/feature -s`
33 echo "non-aio dio test"
35 while [ $align -le $page_size ]; do
36 echo "$AIO_TEST -a $align -d $testfile.$align" >> $seqres.full
37 $AIO_TEST -a $align -d $testfile.$align 2>&1 | tee -a $seqres.full
43 while [ $align -le $page_size ]; do
44 echo "$AIO_TEST -a $align $testfile.$align" >> $seqres.full
45 $AIO_TEST -a $align $testfile.$align 2>&1 | tee -a $seqres.full