xfstests: fix depend targets
[xfstests-dev.git] / 132
1 #! /bin/bash
2 # FSQA Test No. 132
3 #
4 # xfs_io aligned vector rw created from CXFSQA test
5 # unixfile_vector_aligned_rw
6 #
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2006 Silicon Graphics, Inc.  All Rights Reserved.
9 #
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License as
12 # published by the Free Software Foundation.
13 #
14 # This program is distributed in the hope that it would be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write the Free Software Foundation,
21 # Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22 #
23 #-----------------------------------------------------------------------
24 #
25 # creator
26 owner=allanr@sgi.com
27
28 seq=`basename $0`
29 echo "QA output created by $seq"
30
31 here=`pwd`
32 tmp=/tmp/$$
33 status=1    # failure is the default!
34 trap "_cleanup; exit \$status" 0 1 2 3 15
35
36 _cleanup()
37 {
38     cd /
39     _cleanup_testdir
40 }
41
42 # get standard environment, filters and checks
43 . ./common.rc
44 . ./common.filter
45
46 # real QA test starts here
47 _supported_fs generic
48 _supported_os Linux IRIX
49
50 _setup_testdir
51 _require_scratch
52
53 _scratch_mkfs >/dev/null 2>&1
54 _scratch_mount
55
56 xfs_io -F -f -t -c "pwrite -S 0x63 0 512" \
57     -c "pwrite -S 0x64 512 512" \
58     -c "pwrite -S 0x65 1024 512" \
59     -c "pwrite -S 0x66 1536 512" \
60     -c "pwrite -S 0x67 2048 512" \
61     -c "pwrite -S 0x68 2560 512" \
62     -c "pwrite -S 0x69 3072 512" \
63     -c "pwrite -S 0x6A 3584 512" \
64     -c "pread -v 0 512" \
65     -c "pread -v 512 512" \
66     -c "pread -v 1024 512" \
67     -c "pread -v 1536 512" \
68     -c "pread -v 2048 512" \
69     -c "pread -v 2560 512" \
70     -c "pread -v 3072 512" \
71     -c "pread -v 3584 512" \
72     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
73
74 xfs_io -F -f -c "pwrite -S 0x63 4096 1024" \
75     -c "pwrite -S 0x6B 5120 1024" \
76     -c "pwrite -S 0x6C 6144 1024" \
77     -c "pwrite -S 0x6D 7168 1024" \
78     -c "pread -v 0 1024" \
79     -c "pread -v 1024 1024" \
80     -c "pread -v 2048 1024" \
81     -c "pread -v 3072 1024" \
82     -c "pread -v 4096 1024" \
83     -c "pread -v 5120 1024" \
84     -c "pread -v 6144 1024" \
85     -c "pread -v 7168 1024" \
86     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
87
88 xfs_io -F -f -c "pwrite -S 0x6E 8192 2048" \
89     -c "pwrite -S 0x6F 10240 2048" \
90     -c "pread -v 0 2048" \
91     -c "pread -v 2048 2048" \
92     -c "pread -v 4096 2048" \
93     -c "pread -v 6144 2048" \
94     -c "pread -v 8192 2048" \
95     -c "pread -v 10240 2048" \
96     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
97
98 xfs_io -F -f -c "pwrite -S 0x70 12288 4096" \
99     -c "pread -v 0 4096" \
100     -c "pread -v 4096 4096" \
101     -c "pread -v 8192 4096" \
102     -c "pread -v 12288 4096" \
103     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
104
105 xfs_io -F -f -c "pwrite -S 0x71 16384 8192" \
106     -c "pwrite -S 0x72 24576 8192" \
107     -c "pread -v 0 8192" \
108     -c "pread -v 8192 8192" \
109     -c "pread -v 8192 8192" \
110     -c "pread -v 16384 8192" \
111     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
112
113 xfs_io -F -f -c "pwrite -S 0x73 32768 16384" \
114     -c "pwrite -S 0x74 49152 16384" \
115     -c "pread -v 0 16384" \
116     -c "pread -v 16384 16384" \
117     -c "pread -v 32768 16384" \
118     -c "pread -v 49152 16384" \
119     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
120
121 xfs_io -F -f -c "pwrite -S 0x75 65536 32768" \
122     -c "pwrite -S 0x76 98304 32768" \
123     -c "pread -v 0 32768" \
124     -c "pread -v 32768 32768" \
125     -c "pread -v 65536 32768" \
126     -c "pread -v 98304 32768" \
127     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
128
129 xfs_io -F -f -c "pwrite -S 0x76 131072 65536" \
130     -c "pwrite -S 0x77 196608 65536" \
131     -c "pread -v 0 65536" \
132     -c "pread -v 65536 65536" \
133     -c "pread -v 131072 65536" \
134     -c "pread -v 196608 65536" \
135     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
136
137 xfs_io -F -f -c "pwrite -S 0x76 262144 131072" \
138     -c "pwrite -S 0x77 393216 131072" \
139     -c "pread -v 0 131072" \
140     -c "pread -v 131072 131072" \
141     -c "pread -v 262144 131072" \
142     -c "pread -v 393216 131072" \
143     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
144
145 xfs_io -F -f -c "pwrite -S 0x76 524288 524288" \
146     -c "pwrite -S 0x77 1048576 524288" \
147     -c "pread -v 0 524288" \
148     -c "pread -v 524288 524288" \
149     -c "pread -v 1048576 524288" \
150     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
151
152 xfs_io -F -f -c "pwrite -S 0x32 1048576 1048576" \
153     -c "pwrite -S 0x33 2097152 1048576" \
154     -c "pwrite -S 0x34 3145728 1048576" \
155     -c "pwrite -S 0x35 4194304 1048576" \
156     -c "pwrite -S 0x36 5242880 1048576" \
157     -c "pwrite -S 0x37 6291456 1048576" \
158     -c "pwrite -S 0x38 7340032 1048576" \
159     -c "pwrite -S 0x39 8388608 1048576" \
160     -c "pread -v 0 1048576" \
161     -c "pread -v 1048576 1048576" \
162     -c "pread -v 2097152 1048576" \
163     -c "pread -v 3145728 1048576" \
164     -c "pread -v 4194304 1048576" \
165     -c "pread -v 5242880 1048576" \
166     -c "pread -v 6291456 1048576" \
167     -c "pread -v 7340032 1048576" \
168     -c "pread -v 8388608 1048576" \
169     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
170
171 xfs_io -F -f -c "pwrite -S 0x32 1048576 1048576" \
172     -c "pwrite -S 0x33 2097152 1048576" \
173     -c "pwrite -S 0x34 3145728 1048576" \
174     -c "pwrite -S 0x35 4194304 1048576" \
175     -c "pwrite -S 0x36 5242880 1048576" \
176     -c "pwrite -S 0x37 6291456 1048576" \
177     -c "pwrite -S 0x38 7340032 1048576" \
178     -c "pwrite -S 0x39 8388608 1048576" \
179     -c "pwrite -S 0x3A 9437184 1048576" \
180     -c "pread -v 0 1048576" \
181     -c "pread -v 1048576 1048576" \
182     -c "pread -v 2097152 1048576" \
183     -c "pread -v 3145728 1048576" \
184     -c "pread -v 4194304 1048576" \
185     -c "pread -v 5242880 1048576" \
186     -c "pread -v 6291456 1048576" \
187     -c "pread -v 7340032 1048576" \
188     -c "pread -v 8388608 1048576" \
189     -c "pread -v 9437184 1048576" \
190     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
191
192 xfs_io -F -f -c "pwrite -S 0x92 10485760 10485760" \
193     -c "pwrite -S 0x93 20971520 10485760" \
194     -c "pwrite -S 0x94 31457280 10485760" \
195     -c "pwrite -S 0x95 41943040 10485760" \
196     -c "pwrite -S 0x96 52428800 10485760" \
197     -c "pwrite -S 0x97 62914560 10485760" \
198     -c "pwrite -S 0x98 73400320 10485760" \
199     -c "pwrite -S 0x99 83886080 10485760" \
200     -c "pwrite -S 0x9A 94371840 10485760" \
201     -c "pread -v 0 10485760" \
202     -c "pread -v 10485760 10485760" \
203     -c "pread -v 20971520 10485760" \
204     -c "pread -v 31457280 10485760" \
205     -c "pread -v 41943040 10485760" \
206     -c "pread -v 52428800 10485760" \
207     -c "pread -v 62914560 10485760" \
208     -c "pread -v 73400320 10485760" \
209     -c "pread -v 83886080 10485760" \
210     -c "pread -v 94371840 10485760" \
211     $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
212
213 status=0
214 exit