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 [TEST_DIR/t.qcow2]?
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 [TEST_DIR/t.qcow2]?
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 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
27 Is another process using the image [TEST_DIR/t.qcow2]?
29 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
30 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
31 Is another process using the image [TEST_DIR/t.qcow2]?
33 _qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
34 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
35 Is another process using the image [TEST_DIR/t.qcow2]?
36 no file open, try 'help open'
38 _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
39 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
40 Is another process using the image [TEST_DIR/t.qcow2]?
41 no file open, try 'help open'
43 _qemu_img_wrapper info TEST_DIR/t.qcow2
44 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
45 Is another process using the image [TEST_DIR/t.qcow2]?
47 _qemu_img_wrapper check TEST_DIR/t.qcow2
48 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
49 Is another process using the image [TEST_DIR/t.qcow2]?
51 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
52 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
53 Is another process using the image [TEST_DIR/t.qcow2]?
55 _qemu_img_wrapper map TEST_DIR/t.qcow2
56 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
57 Is another process using the image [TEST_DIR/t.qcow2]?
59 _qemu_img_wrapper amend -o TEST_DIR/t.qcow2
60 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
61 Is another process using the image [TEST_DIR/t.qcow2]?
63 _qemu_img_wrapper commit TEST_DIR/t.qcow2
64 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
65 Is another process using the image [TEST_DIR/t.qcow2]?
67 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
68 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
69 Is another process using the image [TEST_DIR/t.qcow2]?
71 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
72 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
73 Is another process using the image [TEST_DIR/t.qcow2]?
75 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
76 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
77 Is another process using the image [TEST_DIR/t.qcow2]?
79 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
80 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
81 Is another process using the image [TEST_DIR/t.qcow2]?
83 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
84 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
85 Is another process using the image [TEST_DIR/t.qcow2]?
87 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
88 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
89 Is another process using the image [TEST_DIR/t.qcow2]?
91 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
92 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
93 Is another process using the image [TEST_DIR/t.qcow2]?
95 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
96 qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
97 Is another process using the image [TEST_DIR/t.qcow2]?
100 == Running utility commands -U ==
102 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
103 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
105 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
107 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
108 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
109 no file open, try 'help open'
111 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
113 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
115 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
117 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
119 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
121 _qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2
122 qemu-img: unrecognized option '-U'
123 Try 'qemu-img --help' for more information
125 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
126 qemu-img: unrecognized option '-U'
127 Try 'qemu-img --help' for more information
129 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
130 qemu-img: unrecognized option '-U'
131 Try 'qemu-img --help' for more information
133 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
134 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
135 Is another process using the image [TEST_DIR/t.qcow2]?
137 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
139 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
141 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
143 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
145 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
146 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
147 { 'execute': 'quit' }
151 == Creating base image ==
152 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
154 == Creating test image ==
155 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
157 == Launching QEMU, opts: 'read-only=on' ==
159 == Launching another QEMU, opts: '' ==
160 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
161 Is another process using the image [TEST_DIR/t.qcow2]?
163 == Launching another QEMU, opts: 'read-only=on' ==
165 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
167 == Running utility commands ==
169 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
170 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
171 Is another process using the image [TEST_DIR/t.qcow2]?
173 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
175 _qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
176 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
177 Is another process using the image [TEST_DIR/t.qcow2]?
178 no file open, try 'help open'
180 _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
182 _qemu_img_wrapper info TEST_DIR/t.qcow2
184 _qemu_img_wrapper check TEST_DIR/t.qcow2
186 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
188 _qemu_img_wrapper map TEST_DIR/t.qcow2
190 _qemu_img_wrapper amend -o TEST_DIR/t.qcow2
191 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
192 Is another process using the image [TEST_DIR/t.qcow2]?
194 _qemu_img_wrapper commit TEST_DIR/t.qcow2
195 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
196 Is another process using the image [TEST_DIR/t.qcow2]?
198 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
199 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
200 Is another process using the image [TEST_DIR/t.qcow2]?
202 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
203 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
204 Is another process using the image [TEST_DIR/t.qcow2]?
206 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
208 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
210 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
212 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
214 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
215 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
216 Is another process using the image [TEST_DIR/t.qcow2]?
218 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
219 qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
220 Is another process using the image [TEST_DIR/t.qcow2]?
223 == Running utility commands -U ==
225 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
226 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
228 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
230 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
231 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
232 no file open, try 'help open'
234 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
236 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
238 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
240 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
242 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
244 _qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2
245 qemu-img: unrecognized option '-U'
246 Try 'qemu-img --help' for more information
248 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
249 qemu-img: unrecognized option '-U'
250 Try 'qemu-img --help' for more information
252 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
253 qemu-img: unrecognized option '-U'
254 Try 'qemu-img --help' for more information
256 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
257 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
258 Is another process using the image [TEST_DIR/t.qcow2]?
260 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
262 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
264 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
266 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
268 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
269 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
270 { 'execute': 'quit' }
274 == Creating base image ==
275 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
277 == Creating test image ==
278 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
280 == Launching QEMU, opts: 'read-only=on,force-share=on' ==
282 == Launching another QEMU, opts: '' ==
284 == Launching another QEMU, opts: 'read-only=on' ==
286 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
288 == Running utility commands ==
290 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
292 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
294 _qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
296 _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
298 _qemu_img_wrapper info TEST_DIR/t.qcow2
300 _qemu_img_wrapper check TEST_DIR/t.qcow2
302 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
304 _qemu_img_wrapper map TEST_DIR/t.qcow2
306 _qemu_img_wrapper amend -o TEST_DIR/t.qcow2
308 _qemu_img_wrapper commit TEST_DIR/t.qcow2
310 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
312 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
314 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
316 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
318 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
320 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
322 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
324 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
327 == Running utility commands -U ==
329 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
330 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
332 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
334 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
335 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
336 no file open, try 'help open'
338 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
340 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
342 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
344 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
346 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
348 _qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2
349 qemu-img: unrecognized option '-U'
350 Try 'qemu-img --help' for more information
352 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
353 qemu-img: unrecognized option '-U'
354 Try 'qemu-img --help' for more information
356 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
357 qemu-img: unrecognized option '-U'
358 Try 'qemu-img --help' for more information
360 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
362 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
364 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
366 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
368 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
370 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
371 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
372 { 'execute': 'quit' }
376 == Two devices with the same image (read-only=off - read-only=off) ==
377 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
378 Is another process using the image [TEST_DIR/t.qcow2]?
380 == Two devices with the same image (read-only=off - read-only=on) ==
381 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=on: Failed to get shared "write" lock
382 Is another process using the image [TEST_DIR/t.qcow2]?
384 == Two devices with the same image (read-only=off - read-only=on,force-share=on) ==
386 == Two devices with the same image (read-only=on - read-only=off) ==
387 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
388 Is another process using the image [TEST_DIR/t.qcow2]?
390 == Two devices with the same image (read-only=on - read-only=on) ==
392 == Two devices with the same image (read-only=on - read-only=on,force-share=on) ==
394 == Two devices with the same image (read-only=on,force-share=on - read-only=off) ==
396 == Two devices with the same image (read-only=on,force-share=on - read-only=on) ==
398 == Two devices with the same image (read-only=on,force-share=on - read-only=on,force-share=on) ==
400 == Creating TEST_DIR/t.qcow2.[abc] ==
401 Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
402 Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
403 Formatting 'TEST_DIR/t.IMGFMT.c', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.b
405 == Two devices sharing the same file in backing chain ==
407 == Backing image also as an active device ==
408 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
409 Is another process using the image [TEST_DIR/t.qcow2]?
411 == Backing image also as an active device (ro) ==
414 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
415 Is another process using the image [TEST_DIR/t.qcow2]?
417 == Active commit to intermediate layer should work when base in use ==
418 { 'execute': 'qmp_capabilities' }
421 _qemu_img_wrapper commit -b TEST_DIR/t.qcow2.b TEST_DIR/t.qcow2.c
422 { 'execute': 'qmp_capabilities' }
425 { 'execute': 'human-monitor-command', 'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT' } }
428 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
429 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
430 Is another process using the image [TEST_DIR/t.qcow2]?
431 Creating overlay with qemu-img when the guest is running should be allowed
433 _qemu_img_wrapper create -f qcow2 -b TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.overlay
434 == Closing an image should unlock it ==
435 { 'execute': 'human-monitor-command', 'arguments': { 'command-line': 'drive_del d0' } }
438 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
439 Adding two and closing one
440 { 'execute': 'human-monitor-command', 'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT,readonly=on' } }
442 { 'execute': 'human-monitor-command', 'arguments': { 'command-line': 'drive_add 0 if=none,id=d1,file=TEST_DIR/t.IMGFMT,readonly=on' } }
445 _qemu_img_wrapper info TEST_DIR/t.qcow2
446 { 'execute': 'human-monitor-command', 'arguments': { 'command-line': 'drive_del d0' } }
449 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
450 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
451 Is another process using the image [TEST_DIR/t.qcow2]?
453 { 'execute': 'human-monitor-command', 'arguments': { 'command-line': 'drive_del d1' } }
456 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
458 == Detecting -U and force-share conflicts ==
463 virtual size: 1 GiB (1073741824 bytes)
464 disk size: unavailable
467 qemu-img: --force-share/-U conflicts with image options
472 qemu-io: -U conflicts with image options