test 198, testcase for aio+dio writes into sparse files
[xfstests-dev.git] / 198
1 #! /bin/sh
2 # FS QA Test No. 198
3 #
4 # Test that aio+dio into holes does completion at the proper offsets
5 # See also https://bugzilla.redhat.com/show_bug.cgi?id=217098
6 #
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2008 Eric Sandeen.  All Rights Reserved.
9 #-----------------------------------------------------------------------
10 #
11 # creator
12 owner=sandeen@sandeen.net
13
14 seq=`basename $0`
15 echo "QA output created by $seq"
16
17 here=`pwd`
18 tmp=/tmp/$$
19 status=1        # failure is the default!
20 trap "_cleanup; exit \$status" 0 1 2 3 15
21
22 _cleanup()
23 {
24     cd /
25     rm -f $tmp.*
26 }
27
28 # get standard environment, filters and checks
29 . ./common.rc
30 . ./common.filter
31
32 # This should actually run on anything that supports O_DIRECT + AIO...
33 _supported_fs xfs
34 _supported_os Linux
35
36 echo "Silence is golden."
37
38 # real QA test starts here
39 rm -f $seq.full
40
41 rm -f "$TEST_DIR/aiodio_sparse*"
42 $here/src/aiodio_sparse2 "$TEST_DIR/aiodio_sparse"
43
44 status=$?
45 exit