4 # Test out prealloc, direct writes and buffered read
5 # Some experimentation when looking at
6 # pv#962014 - DMF 3.7 reading incorrect data
7 # Doesn't actually reproduce the problem but it tried to :-)
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2007 Silicon Graphics, Inc. All Rights Reserved.
11 #-----------------------------------------------------------------------
14 owner=tes@puffy.melbourne.sgi.com
17 echo "QA output created by $seq"
21 status=1 # failure is the default!
22 trap "_cleanup; exit \$status" 0 1 2 3 15
31 # Filter out these lines partially
33 # 40 KiB, 10 ops; 0.0000 sec (4.070 MiB/sec and 1041.9923 ops/sec)
39 tee -a $seq.full | sed 's/ops;.*/ops/'
43 # < 1: [8..79]: 6552..6623 0 (6552..6623) 72
44 # > 1: [8..79]: 202544..202615 0 (202544..202615) 72
49 awk '$3 ~ /hole/ { print $1, $2, $3; next }
50 {print $1, $2}' >> $seq.full
53 # get standard environment, filters and checks
57 # real QA test starts here
59 # Modify as appropriate.
61 _supported_os IRIX Linux
64 testfile=$TEST_DIR/file.$seq
71 #xfs_io -f -c "resvsp ${off}k ${end}k" $testfile
73 # write the initial file
74 xfs_io -f -c "pwrite 0 ${end}k" $testfile | _filter_io
78 while [ $off -le $end ]
83 xfs_io -c "unresvsp $offset $length" -c "bmap -vp" $testfile | _filter_bmap
85 off=`expr $off + $len` # skip over 1
86 off=`expr $off + $len`
90 while [ $off -le $end ]
96 echo "*** offset = $offset ***"
100 xfs_io -d -c "resvsp $offset $length" -c "pwrite -b $bufsize $offset $length" $testfile | _filter_io
103 #xfs_io -c "resvsp $offset $length" $testfile
104 #xfs_bmap -v -p $testfile
105 #xfs_io -d -c "pwrite -b $bufsize $offset $length" $testfile
106 #xfs_bmap -v -p $testfile
108 xfs_io -r -c "pread -v -b $bufsize $offset $length" $testfile >$tmp.$off &
111 #xfs_io -r -c "pread -v -b $bufsize $offset $length" $testfile
114 off=`expr $off + $len` # skip over 1
115 off=`expr $off + $len`
119 cat $tmp.* | _filter_io