block: Add BDRV_BLOCK_EOF to bdrv_get_block_status()
[qemu/ar7.git] / tests / qemu-iotests / 153.out
blob5ba0b638677b452152ec92f39f33a8a1e1cee20b
1 QA output created by 153
2 == readonly=off,force-share=on should be rejected ==
3 QEMU_PROG: -drive if=none,file=null-co://,readonly=off,force-share=on: force-share=on can only be used with read-only images
5 == Creating base image ==
6 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
8 == Creating test image ==
9 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
11 == Launching QEMU, opts: '' ==
13 == Launching another QEMU, opts: '' ==
14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
15 Is another process using the image?
17 == Launching another QEMU, opts: 'read-only=on' ==
18 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,read-only=on: Failed to get shared "write" lock
19 Is another process using the image?
21 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
23 == Running utility commands  ==
25 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
26 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
27 Is another process using the image?
29 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
30 can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
31 Is another process using the image?
33 _qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
34 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
35 Is another process using the image?
37 _qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
38 can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
39 Is another process using the image?
41 _qemu_img_wrapper info TEST_DIR/t.qcow2
42 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
43 Is another process using the image?
45 _qemu_img_wrapper check TEST_DIR/t.qcow2
46 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
47 Is another process using the image?
49 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
50 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
51 Is another process using the image?
53 _qemu_img_wrapper map TEST_DIR/t.qcow2
54 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
55 Is another process using the image?
57 _qemu_img_wrapper amend -o  TEST_DIR/t.qcow2
58 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
59 Is another process using the image?
61 _qemu_img_wrapper commit TEST_DIR/t.qcow2
62 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
63 Is another process using the image?
65 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
66 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
67 Is another process using the image?
69 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
70 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
71 Is another process using the image?
73 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
74 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
75 Is another process using the image?
77 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
78 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
79 Is another process using the image?
81 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
82 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
83 Is another process using the image?
85 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
86 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
87 Is another process using the image?
89 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
90 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
91 Is another process using the image?
93 == Running utility commands -U ==
95 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
96 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
98 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
100 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
101 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
103 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
105 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
107 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
109 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
111 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
113 _qemu_img_wrapper amend -o  -U TEST_DIR/t.qcow2
114 qemu-img: unrecognized option '-U'
115 Try 'qemu-img --help' for more information
117 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
118 qemu-img: unrecognized option '-U'
119 Try 'qemu-img --help' for more information
121 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
122 qemu-img: unrecognized option '-U'
123 Try 'qemu-img --help' for more information
125 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
126 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
127 Is another process using the image?
129 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
131 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
133 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
135 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
137 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
138 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
140 Round done
142 == Creating base image ==
143 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
145 == Creating test image ==
146 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
148 == Launching QEMU, opts: 'read-only=on' ==
150 == Launching another QEMU, opts: '' ==
151 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
152 Is another process using the image?
154 == Launching another QEMU, opts: 'read-only=on' ==
156 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
158 == Running utility commands  ==
160 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
161 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
162 Is another process using the image?
164 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
166 _qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
167 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
168 Is another process using the image?
170 _qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
172 _qemu_img_wrapper info TEST_DIR/t.qcow2
174 _qemu_img_wrapper check TEST_DIR/t.qcow2
176 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
178 _qemu_img_wrapper map TEST_DIR/t.qcow2
180 _qemu_img_wrapper amend -o  TEST_DIR/t.qcow2
181 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
182 Is another process using the image?
184 _qemu_img_wrapper commit TEST_DIR/t.qcow2
185 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
186 Is another process using the image?
188 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
189 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
190 Is another process using the image?
192 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
193 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
194 Is another process using the image?
196 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
198 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
200 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
202 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
204 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
205 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
206 Is another process using the image?
208 == Running utility commands -U ==
210 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
211 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
213 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
215 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
216 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
218 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
220 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
222 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
224 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
226 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
228 _qemu_img_wrapper amend -o  -U TEST_DIR/t.qcow2
229 qemu-img: unrecognized option '-U'
230 Try 'qemu-img --help' for more information
232 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
233 qemu-img: unrecognized option '-U'
234 Try 'qemu-img --help' for more information
236 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
237 qemu-img: unrecognized option '-U'
238 Try 'qemu-img --help' for more information
240 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
241 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
242 Is another process using the image?
244 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
246 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
248 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
250 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
252 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
253 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
255 Round done
257 == Creating base image ==
258 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
260 == Creating test image ==
261 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
263 == Launching QEMU, opts: 'read-only=on,force-share=on' ==
265 == Launching another QEMU, opts: '' ==
267 == Launching another QEMU, opts: 'read-only=on' ==
269 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
271 == Running utility commands  ==
273 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
275 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
277 _qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
279 _qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
281 _qemu_img_wrapper info TEST_DIR/t.qcow2
283 _qemu_img_wrapper check TEST_DIR/t.qcow2
285 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
287 _qemu_img_wrapper map TEST_DIR/t.qcow2
289 _qemu_img_wrapper amend -o  TEST_DIR/t.qcow2
291 _qemu_img_wrapper commit TEST_DIR/t.qcow2
293 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
295 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
297 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
299 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
301 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
303 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
305 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
307 == Running utility commands -U ==
309 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
310 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
312 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
314 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
315 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
317 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
319 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
321 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
323 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
325 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
327 _qemu_img_wrapper amend -o  -U TEST_DIR/t.qcow2
328 qemu-img: unrecognized option '-U'
329 Try 'qemu-img --help' for more information
331 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
332 qemu-img: unrecognized option '-U'
333 Try 'qemu-img --help' for more information
335 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
336 qemu-img: unrecognized option '-U'
337 Try 'qemu-img --help' for more information
339 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
341 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
343 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
345 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
347 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
349 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
350 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
352 Round done
353 == Creating TEST_DIR/t.qcow2.[abc] ==
354 Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
355 Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
356 Formatting 'TEST_DIR/t.IMGFMT.c', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.b
358 == Two devices sharing the same file in backing chain ==
360 == Backing image also as an active device ==
361 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
362 Is another process using the image?
364 == Backing image also as an active device (ro) ==
366 == Symbolic link ==
367 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
368 Is another process using the image?
370 == Closing an image should unlock it ==
371 {"return": {}}
372 Adding drive
374 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
375 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
376 Is another process using the image?
377 Closing drive
379 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
380 Adding two and closing one
382 _qemu_img_wrapper info TEST_DIR/t.qcow2
384 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
385 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
386 Is another process using the image?
387 Closing the other
389 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
390 *** done