4 # Test that non-block-aligned aio+dio into holes does not leave
5 # zero'd out portions of the file
7 # QEMU IO to a file-backed device with misaligned partitions
8 # can send this sort of IO
10 #-----------------------------------------------------------------------
11 # Copyright (c) 2010 Red Hat, Inc. All Rights Reserved.
13 # This program is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU General Public License as
15 # published by the Free Software Foundation.
17 # This program is distributed in the hope that it would be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write the Free Software Foundation,
24 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 #-----------------------------------------------------------------------
28 owner=sandeen@sandeen.net
31 echo "QA output created by $seq"
35 status=1 # failure is the default!
36 trap "_cleanup; exit \$status" 0 1 2 3 15
44 # get standard environment, filters and checks
51 echo "Silence is golden."
53 # real QA test starts here
56 rm -f $TEST_DIR/aiodio_sparse
58 # 2 threads, 4k writes, 16k filesize, stride throug file by 4k, start at 512 offset
59 $here/src/aio-dio-regress/aiodio_sparse2 -i 2 -w 4k -s 16k -n 4k -o 512 "$TEST_DIR/aiodio_sparse"