2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
7 # Exercises unwritten extent reads and writes, looking
8 # for data corruption (zeroes read) near the end of file.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
19 # get standard environment, filters and checks
25 _filter_test_dir | sed -e 's/[0-9][0-9]* bytes/NUM bytes/g'
28 pgsize=`$here/src/feature -s`
30 # -i == number of iterations
31 # -l == bytes to leak on each iteration
32 # -b == read/write block size
33 # -s == preallocation size
35 # real QA test starts here
41 echo "*** First case - I/O blocksize same as pagesize"
42 $here/src/resvtest -i 20 -b $pgsize "$TEST_DIR/resv" | _filter_resv
43 [ $? -eq 0 ] && echo done
44 rm -f "$TEST_DIR/mumble"
47 echo "*** Second case - 512 byte I/O blocksize"
48 $here/src/resvtest -i 40 -b 512 "$TEST_DIR/resv" | _filter_resv
49 [ $? -eq 0 ] && echo done
50 rm -f "$TEST_DIR/grumble"