4 # Test out reallocation of the extent array in xfs_io.
5 # Based on a testcase from Tomasz Majkowski <moosh009@gmail.com>.
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2009 Christoph Hellwig.
9 #-----------------------------------------------------------------------
15 echo "QA output created by $seq"
19 status=1 # failure is the default!
28 for i in `seq 0 $writes`; do
29 xfs_io -f $file -c "pwrite -q $offset 1"
30 let offset=$offset+0x100000
38 awk '$3 ~ /hole/ { print $1, $2, $3; next }
44 rm -f $TEST_DIR/hole_file*
47 trap "_cleanup; exit \$status" 0 1 2 3 15
49 # get standard environment, filters and checks
53 # real QA test starts here
58 for i in 10 14 15 16 17 28 29 30 31; do
59 rm -f $TEST_DIR/hole_file
60 _write_holes $TEST_DIR/hole_file${i} ${i}
63 for i in 10 14 15 16 17 28 29 30 31; do
64 xfs_bmap $TEST_DIR/hole_file${i} | _filter_bmap