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