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 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
22 rm -f $tmp.* $testfile.*
25 # get standard environment, filters and checks
29 # real QA test starts here
32 _require_aiodio aio-dio-append-write-read-race
33 _require_test_program "feature"
35 testfile=$TEST_DIR/$seq.$$
36 min_dio_align=`_min_dio_alignment $TEST_DEV`
37 page_size=`$here/src/feature -s`
41 echo "non-aio dio test"
43 while [ $align -le $page_size ]; do
44 echo "$AIO_TEST -a $align -d $testfile.$align" >> $seqres.full
45 $AIO_TEST -a $align -d $testfile.$align 2>&1 | tee -a $seqres.full
51 while [ $align -le $page_size ]; do
52 echo "$AIO_TEST -a $align $testfile.$align" >> $seqres.full
53 $AIO_TEST -a $align $testfile.$align 2>&1 | tee -a $seqres.full