4 # xfs_io aligned vector rw created from CXFSQA test
5 # unixfile_vector_aligned_rw
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
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.
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.
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
23 #-----------------------------------------------------------------------
27 seqres=$RESULT_DIR/$seq
28 echo "QA output created by $seq"
32 status=1 # failure is the default!
33 trap "exit \$status" 0 1 2 3 15
35 # get standard environment, filters and checks
39 # real QA test starts here
41 _supported_os Linux IRIX
45 _scratch_mkfs >/dev/null 2>&1
48 $XFS_IO_PROG -f -t -c "pwrite -S 0x63 0 512" \
49 -c "pwrite -S 0x64 512 512" \
50 -c "pwrite -S 0x65 1024 512" \
51 -c "pwrite -S 0x66 1536 512" \
52 -c "pwrite -S 0x67 2048 512" \
53 -c "pwrite -S 0x68 2560 512" \
54 -c "pwrite -S 0x69 3072 512" \
55 -c "pwrite -S 0x6A 3584 512" \
57 -c "pread -v 512 512" \
58 -c "pread -v 1024 512" \
59 -c "pread -v 1536 512" \
60 -c "pread -v 2048 512" \
61 -c "pread -v 2560 512" \
62 -c "pread -v 3072 512" \
63 -c "pread -v 3584 512" \
64 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
66 $XFS_IO_PROG -f -c "pwrite -S 0x63 4096 1024" \
67 -c "pwrite -S 0x6B 5120 1024" \
68 -c "pwrite -S 0x6C 6144 1024" \
69 -c "pwrite -S 0x6D 7168 1024" \
70 -c "pread -v 0 1024" \
71 -c "pread -v 1024 1024" \
72 -c "pread -v 2048 1024" \
73 -c "pread -v 3072 1024" \
74 -c "pread -v 4096 1024" \
75 -c "pread -v 5120 1024" \
76 -c "pread -v 6144 1024" \
77 -c "pread -v 7168 1024" \
78 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
80 $XFS_IO_PROG -f -c "pwrite -S 0x6E 8192 2048" \
81 -c "pwrite -S 0x6F 10240 2048" \
82 -c "pread -v 0 2048" \
83 -c "pread -v 2048 2048" \
84 -c "pread -v 4096 2048" \
85 -c "pread -v 6144 2048" \
86 -c "pread -v 8192 2048" \
87 -c "pread -v 10240 2048" \
88 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
90 $XFS_IO_PROG -f -c "pwrite -S 0x70 12288 4096" \
91 -c "pread -v 0 4096" \
92 -c "pread -v 4096 4096" \
93 -c "pread -v 8192 4096" \
94 -c "pread -v 12288 4096" \
95 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
97 $XFS_IO_PROG -f -c "pwrite -S 0x71 16384 8192" \
98 -c "pwrite -S 0x72 24576 8192" \
99 -c "pread -v 0 8192" \
100 -c "pread -v 8192 8192" \
101 -c "pread -v 8192 8192" \
102 -c "pread -v 16384 8192" \
103 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
105 $XFS_IO_PROG -f -c "pwrite -S 0x73 32768 16384" \
106 -c "pwrite -S 0x74 49152 16384" \
107 -c "pread -v 0 16384" \
108 -c "pread -v 16384 16384" \
109 -c "pread -v 32768 16384" \
110 -c "pread -v 49152 16384" \
111 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
113 $XFS_IO_PROG -f -c "pwrite -S 0x75 65536 32768" \
114 -c "pwrite -S 0x76 98304 32768" \
115 -c "pread -v 0 32768" \
116 -c "pread -v 32768 32768" \
117 -c "pread -v 65536 32768" \
118 -c "pread -v 98304 32768" \
119 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
121 $XFS_IO_PROG -f -c "pwrite -S 0x76 131072 65536" \
122 -c "pwrite -S 0x77 196608 65536" \
123 -c "pread -v 0 65536" \
124 -c "pread -v 65536 65536" \
125 -c "pread -v 131072 65536" \
126 -c "pread -v 196608 65536" \
127 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
129 $XFS_IO_PROG -f -c "pwrite -S 0x76 262144 131072" \
130 -c "pwrite -S 0x77 393216 131072" \
131 -c "pread -v 0 131072" \
132 -c "pread -v 131072 131072" \
133 -c "pread -v 262144 131072" \
134 -c "pread -v 393216 131072" \
135 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
137 $XFS_IO_PROG -f -c "pwrite -S 0x76 524288 524288" \
138 -c "pwrite -S 0x77 1048576 524288" \
139 -c "pread -v 0 524288" \
140 -c "pread -v 524288 524288" \
141 -c "pread -v 1048576 524288" \
142 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
144 $XFS_IO_PROG -f -c "pwrite -S 0x32 1048576 1048576" \
145 -c "pwrite -S 0x33 2097152 1048576" \
146 -c "pwrite -S 0x34 3145728 1048576" \
147 -c "pwrite -S 0x35 4194304 1048576" \
148 -c "pwrite -S 0x36 5242880 1048576" \
149 -c "pwrite -S 0x37 6291456 1048576" \
150 -c "pwrite -S 0x38 7340032 1048576" \
151 -c "pwrite -S 0x39 8388608 1048576" \
152 -c "pread -v 0 1048576" \
153 -c "pread -v 1048576 1048576" \
154 -c "pread -v 2097152 1048576" \
155 -c "pread -v 3145728 1048576" \
156 -c "pread -v 4194304 1048576" \
157 -c "pread -v 5242880 1048576" \
158 -c "pread -v 6291456 1048576" \
159 -c "pread -v 7340032 1048576" \
160 -c "pread -v 8388608 1048576" \
161 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
163 $XFS_IO_PROG -f -c "pwrite -S 0x32 1048576 1048576" \
164 -c "pwrite -S 0x33 2097152 1048576" \
165 -c "pwrite -S 0x34 3145728 1048576" \
166 -c "pwrite -S 0x35 4194304 1048576" \
167 -c "pwrite -S 0x36 5242880 1048576" \
168 -c "pwrite -S 0x37 6291456 1048576" \
169 -c "pwrite -S 0x38 7340032 1048576" \
170 -c "pwrite -S 0x39 8388608 1048576" \
171 -c "pwrite -S 0x3A 9437184 1048576" \
172 -c "pread -v 0 1048576" \
173 -c "pread -v 1048576 1048576" \
174 -c "pread -v 2097152 1048576" \
175 -c "pread -v 3145728 1048576" \
176 -c "pread -v 4194304 1048576" \
177 -c "pread -v 5242880 1048576" \
178 -c "pread -v 6291456 1048576" \
179 -c "pread -v 7340032 1048576" \
180 -c "pread -v 8388608 1048576" \
181 -c "pread -v 9437184 1048576" \
182 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique
184 $XFS_IO_PROG -f -c "pwrite -S 0x92 10485760 10485760" \
185 -c "pwrite -S 0x93 20971520 10485760" \
186 -c "pwrite -S 0x94 31457280 10485760" \
187 -c "pwrite -S 0x95 41943040 10485760" \
188 -c "pwrite -S 0x96 52428800 10485760" \
189 -c "pwrite -S 0x97 62914560 10485760" \
190 -c "pwrite -S 0x98 73400320 10485760" \
191 -c "pwrite -S 0x99 83886080 10485760" \
192 -c "pwrite -S 0x9A 94371840 10485760" \
193 -c "pread -v 0 10485760" \
194 -c "pread -v 10485760 10485760" \
195 -c "pread -v 20971520 10485760" \
196 -c "pread -v 31457280 10485760" \
197 -c "pread -v 41943040 10485760" \
198 -c "pread -v 52428800 10485760" \
199 -c "pread -v 62914560 10485760" \
200 -c "pread -v 73400320 10485760" \
201 -c "pread -v 83886080 10485760" \
202 -c "pread -v 94371840 10485760" \
203 $SCRATCH_MNT/aligned_vector_rw | _filter_xfs_io_unique