]>
Commit | Line | Data |
---|---|---|
ccc47808 TG |
1 | QA output created by 171 |
2 | ||
3 | == test 'offset' option == | |
4 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4096 | |
5 | ||
6 | write to image | |
7 | wrote 3584/3584 bytes at offset 0 | |
8 | 3.500 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
9 | ||
10 | read the image | |
11 | read 3584/3584 bytes at offset 0 | |
12 | 3.500 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
13 | ||
14 | check that offset is respected | |
15 | 000001fe: 00 00 0a 0a .... | |
16 | read 4/4 bytes at offset 510 | |
17 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
18 | ||
19 | write before image boundary | |
20 | wrote 1/1 bytes at offset 3583 | |
21 | 1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
22 | ||
23 | write across image boundary | |
24 | write failed: Input/output error | |
25 | ||
26 | write at image boundary | |
27 | write failed: Input/output error | |
28 | ||
29 | write after image boundary | |
30 | write failed: Input/output error | |
31 | ||
32 | writev before/after image boundary | |
33 | writev failed: Input/output error | |
34 | ||
35 | read before image boundary | |
36 | read 1/1 bytes at offset 3583 | |
37 | 1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
38 | ||
39 | read across image boundary | |
40 | read failed: Input/output error | |
41 | ||
42 | read at image boundary | |
43 | read failed: Input/output error | |
44 | ||
45 | read after image boundary | |
46 | read failed: Input/output error | |
47 | ||
48 | readv before/after image boundary | |
49 | readv failed: Input/output error | |
50 | ||
51 | fill image with pattern | |
52 | wrote 4096/4096 bytes at offset 0 | |
53 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
54 | ||
55 | write zeroes and check | |
56 | wrote 512/512 bytes at offset 0 | |
57 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
58 | 000001fe: 0a 0a 00 00 .... | |
59 | read 4/4 bytes at offset 510 | |
60 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
61 | ||
62 | write zeroes across image boundary | |
63 | write failed: Input/output error | |
64 | ||
65 | write zeroes at image boundary and check | |
66 | wrote 2/2 bytes at offset 3582 | |
67 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
68 | 00000ffe: 00 00 .. | |
69 | read 2/2 bytes at offset 4094 | |
70 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
71 | read failed: Input/output error | |
72 | ||
73 | fill image with pattern | |
74 | wrote 4096/4096 bytes at offset 0 | |
75 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
76 | ||
77 | discard and check | |
78 | discard 512/512 bytes at offset 0 | |
79 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
80 | 000001fe: 0a 0a 00 00 .... | |
81 | read 4/4 bytes at offset 510 | |
82 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
83 | ||
84 | discard across image boundary | |
85 | discard failed: Input/output error | |
86 | ||
87 | discard at image boundary and check | |
88 | discard 2/2 bytes at offset 3582 | |
89 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
90 | 00000ffe: 00 00 .. | |
91 | read 2/2 bytes at offset 4094 | |
92 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
93 | read failed: Input/output error | |
94 | ||
95 | == test 'offset' and 'size' options == | |
96 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4096 | |
97 | ||
98 | write to image | |
99 | wrote 2048/2048 bytes at offset 0 | |
100 | 2 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
101 | ||
102 | read the image | |
103 | read 2048/2048 bytes at offset 0 | |
104 | 2 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
105 | ||
106 | check that offset is respected | |
107 | 000001fe: 00 00 0a 0a .... | |
108 | read 4/4 bytes at offset 510 | |
109 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
110 | ||
111 | write before image boundary | |
112 | wrote 1/1 bytes at offset 2047 | |
113 | 1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
114 | ||
115 | write across image boundary | |
116 | write failed: Input/output error | |
117 | ||
118 | write at image boundary | |
119 | write failed: Input/output error | |
120 | ||
121 | write after image boundary | |
122 | write failed: Input/output error | |
123 | ||
124 | writev before/after image boundary | |
125 | writev failed: Input/output error | |
126 | ||
127 | read before image boundary | |
128 | read 1/1 bytes at offset 2047 | |
129 | 1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
130 | ||
131 | read across image boundary | |
132 | read failed: Input/output error | |
133 | ||
134 | read at image boundary | |
135 | read failed: Input/output error | |
136 | ||
137 | read after image boundary | |
138 | read failed: Input/output error | |
139 | ||
140 | readv before/after image boundary | |
141 | readv failed: Input/output error | |
142 | ||
143 | fill image with pattern | |
144 | wrote 4096/4096 bytes at offset 0 | |
145 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
146 | ||
147 | write zeroes and check | |
148 | wrote 512/512 bytes at offset 0 | |
149 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
150 | 000001fe: 0a 0a 00 00 .... | |
151 | read 4/4 bytes at offset 510 | |
152 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
153 | ||
154 | write zeroes across image boundary | |
155 | write failed: Input/output error | |
156 | ||
157 | write zeroes at image boundary and check | |
158 | wrote 2/2 bytes at offset 2046 | |
159 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
160 | 000009fe: 00 00 .. | |
161 | read 2/2 bytes at offset 2558 | |
162 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
163 | 00000a00: 0a 0a .. | |
164 | read 2/2 bytes at offset 2560 | |
165 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
166 | ||
167 | fill image with pattern | |
168 | wrote 4096/4096 bytes at offset 0 | |
169 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
170 | ||
171 | discard and check | |
172 | discard 512/512 bytes at offset 0 | |
173 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
174 | 000001fe: 0a 0a 00 00 .... | |
175 | read 4/4 bytes at offset 510 | |
176 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
177 | ||
178 | discard across image boundary | |
179 | discard failed: Input/output error | |
180 | ||
181 | discard at image boundary and check | |
182 | discard 2/2 bytes at offset 2046 | |
183 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
184 | 000009fe: 00 00 .. | |
185 | read 2/2 bytes at offset 2558 | |
186 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
187 | 00000a00: 0a 0a .. | |
188 | read 2/2 bytes at offset 2560 | |
189 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
190 | ||
191 | == test misaligned 'offset' == | |
192 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4096 | |
193 | ||
194 | write to image | |
195 | wrote 2048/2048 bytes at offset 0 | |
196 | 2 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
197 | ||
198 | read the image | |
199 | read 2048/2048 bytes at offset 0 | |
200 | 2 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
201 | ||
202 | check that offset is respected | |
203 | 00000008: 00 00 0a 0a .... | |
204 | read 4/4 bytes at offset 8 | |
205 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
206 | ||
207 | write before image boundary | |
208 | wrote 1/1 bytes at offset 2047 | |
209 | 1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
210 | ||
211 | write across image boundary | |
212 | write failed: Input/output error | |
213 | ||
214 | write at image boundary | |
215 | write failed: Input/output error | |
216 | ||
217 | write after image boundary | |
218 | write failed: Input/output error | |
219 | ||
220 | writev before/after image boundary | |
221 | writev failed: Input/output error | |
222 | ||
223 | read before image boundary | |
224 | read 1/1 bytes at offset 2047 | |
225 | 1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
226 | ||
227 | read across image boundary | |
228 | read failed: Input/output error | |
229 | ||
230 | read at image boundary | |
231 | read failed: Input/output error | |
232 | ||
233 | read after image boundary | |
234 | read failed: Input/output error | |
235 | ||
236 | readv before/after image boundary | |
237 | readv failed: Input/output error | |
238 | ||
239 | fill image with pattern | |
240 | wrote 4096/4096 bytes at offset 0 | |
241 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
242 | ||
243 | write zeroes and check | |
244 | wrote 512/512 bytes at offset 0 | |
245 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
246 | 00000008: 0a 0a 00 00 .... | |
247 | read 4/4 bytes at offset 8 | |
248 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
249 | ||
250 | write zeroes across image boundary | |
251 | write failed: Input/output error | |
252 | ||
253 | write zeroes at image boundary and check | |
254 | wrote 2/2 bytes at offset 2046 | |
255 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
256 | 00000808: 00 00 .. | |
257 | read 2/2 bytes at offset 2056 | |
258 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
259 | 0000080a: 0a 0a .. | |
260 | read 2/2 bytes at offset 2058 | |
261 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
262 | ||
263 | fill image with pattern | |
264 | wrote 4096/4096 bytes at offset 0 | |
265 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
266 | ||
267 | discard and check | |
268 | discard 512/512 bytes at offset 0 | |
269 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
270 | 00000008: 0a 0a 00 00 .... | |
271 | read 4/4 bytes at offset 8 | |
272 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
273 | ||
274 | discard across image boundary | |
275 | discard failed: Input/output error | |
276 | ||
277 | discard at image boundary and check | |
278 | discard 2/2 bytes at offset 2046 | |
279 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
280 | 00000808: 00 00 .. | |
281 | read 2/2 bytes at offset 2056 | |
282 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
283 | 0000080a: 0a 0a .. | |
284 | read 2/2 bytes at offset 2058 | |
285 | 2 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
286 | ||
287 | == test reopen == | |
288 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4096 | |
289 | wrote 512/512 bytes at offset 0 | |
290 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
291 | wrote 1/1 bytes at offset 511 | |
292 | 1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
293 | write failed: Input/output error | |
294 | wrote 1024/1024 bytes at offset 0 | |
295 | 1 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
296 | wrote 1/1 bytes at offset 1023 | |
297 | 1 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
298 | write failed: Input/output error | |
299 | checking boundaries | |
300 | 000001fe: 00 00 0a 0a .... | |
301 | read 4/4 bytes at offset 510 | |
302 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
303 | 000003fe: 0a 0a 00 00 .... | |
304 | read 4/4 bytes at offset 1022 | |
305 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
306 | 000005fe: 00 00 0a 0a .... | |
307 | read 4/4 bytes at offset 1534 | |
308 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
309 | 000009fe: 0a 0a 00 00 .... | |
310 | read 4/4 bytes at offset 2558 | |
311 | 4 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
312 | ||
313 | *** done |