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 backing_fmt=IMGFMT
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 size=32M 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 -F qcow2
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 -F qcow2
96 qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
97 Is another process using the image [TEST_DIR/t.qcow2]?
99 backing file format: IMGFMT
101 == Running utility commands -U ==
103 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
104 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
106 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
108 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
109 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
110 no file open, try 'help open'
112 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
114 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
116 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
118 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
120 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
122 _qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
123 qemu-img: unrecognized option '-U'
124 Try 'qemu-img --help' for more information
126 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
127 qemu-img: unrecognized option '-U'
128 Try 'qemu-img --help' for more information
130 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
131 qemu-img: unrecognized option '-U'
132 Try 'qemu-img --help' for more information
134 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
135 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
136 Is another process using the image [TEST_DIR/t.qcow2]?
138 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
140 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
142 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
144 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
146 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
147 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
148 { 'execute': 'quit' }
152 == Creating base image ==
153 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
155 == Creating test image ==
156 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
158 == Launching QEMU, opts: 'read-only=on' ==
160 == Launching another QEMU, opts: '' ==
161 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
162 Is another process using the image [TEST_DIR/t.qcow2]?
164 == Launching another QEMU, opts: 'read-only=on' ==
166 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
168 == Running utility commands ==
170 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
171 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
172 Is another process using the image [TEST_DIR/t.qcow2]?
174 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
176 _qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
177 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
178 Is another process using the image [TEST_DIR/t.qcow2]?
179 no file open, try 'help open'
181 _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
183 _qemu_img_wrapper info TEST_DIR/t.qcow2
185 _qemu_img_wrapper check TEST_DIR/t.qcow2
187 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
189 _qemu_img_wrapper map TEST_DIR/t.qcow2
191 _qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
192 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
193 Is another process using the image [TEST_DIR/t.qcow2]?
195 _qemu_img_wrapper commit TEST_DIR/t.qcow2
196 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
197 Is another process using the image [TEST_DIR/t.qcow2]?
199 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
200 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
201 Is another process using the image [TEST_DIR/t.qcow2]?
203 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
204 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
205 Is another process using the image [TEST_DIR/t.qcow2]?
207 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
209 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
211 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
213 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
215 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
216 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
217 Is another process using the image [TEST_DIR/t.qcow2]?
219 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
220 qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
221 Is another process using the image [TEST_DIR/t.qcow2]?
223 backing file format: IMGFMT
225 == Running utility commands -U ==
227 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
228 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
230 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
232 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
233 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
234 no file open, try 'help open'
236 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
238 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
240 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
242 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
244 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
246 _qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
247 qemu-img: unrecognized option '-U'
248 Try 'qemu-img --help' for more information
250 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
251 qemu-img: unrecognized option '-U'
252 Try 'qemu-img --help' for more information
254 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
255 qemu-img: unrecognized option '-U'
256 Try 'qemu-img --help' for more information
258 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
259 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
260 Is another process using the image [TEST_DIR/t.qcow2]?
262 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
264 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
266 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
268 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
270 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
271 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
272 { 'execute': 'quit' }
276 == Creating base image ==
277 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
279 == Creating test image ==
280 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
282 == Launching QEMU, opts: 'read-only=on,force-share=on' ==
284 == Launching another QEMU, opts: '' ==
286 == Launching another QEMU, opts: 'read-only=on' ==
288 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
290 == Running utility commands ==
292 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
294 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
296 _qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
298 _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
300 _qemu_img_wrapper info TEST_DIR/t.qcow2
302 _qemu_img_wrapper check TEST_DIR/t.qcow2
304 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
306 _qemu_img_wrapper map TEST_DIR/t.qcow2
308 _qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
310 _qemu_img_wrapper commit TEST_DIR/t.qcow2
312 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
314 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
316 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
318 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
320 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
322 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
324 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
326 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
328 backing file format: IMGFMT
330 == Running utility commands -U ==
332 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
333 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
335 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
337 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
338 qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
339 no file open, try 'help open'
341 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
343 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
345 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
347 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
349 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
351 _qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
352 qemu-img: unrecognized option '-U'
353 Try 'qemu-img --help' for more information
355 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
356 qemu-img: unrecognized option '-U'
357 Try 'qemu-img --help' for more information
359 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
360 qemu-img: unrecognized option '-U'
361 Try 'qemu-img --help' for more information
363 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
365 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
367 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
369 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
371 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
373 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
374 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
375 { 'execute': 'quit' }
379 == Two devices with the same image (read-only=off - read-only=off) ==
380 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
381 Is another process using the image [TEST_DIR/t.qcow2]?
383 == Two devices with the same image (read-only=off - read-only=on) ==
384 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=on: Failed to get shared "write" lock
385 Is another process using the image [TEST_DIR/t.qcow2]?
387 == Two devices with the same image (read-only=off - read-only=on,force-share=on) ==
389 == Two devices with the same image (read-only=on - read-only=off) ==
390 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
391 Is another process using the image [TEST_DIR/t.qcow2]?
393 == Two devices with the same image (read-only=on - read-only=on) ==
395 == Two devices with the same image (read-only=on - read-only=on,force-share=on) ==
397 == Two devices with the same image (read-only=on,force-share=on - read-only=off) ==
399 == Two devices with the same image (read-only=on,force-share=on - read-only=on) ==
401 == Two devices with the same image (read-only=on,force-share=on - read-only=on,force-share=on) ==
403 == Creating TEST_DIR/t.qcow2.[abc] ==
404 Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
405 Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
406 Formatting 'TEST_DIR/t.IMGFMT.c', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.b backing_fmt=IMGFMT
408 == Two devices sharing the same file in backing chain ==
410 == Backing image also as an active device ==
411 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
412 Is another process using the image [TEST_DIR/t.qcow2]?
414 == Backing image also as an active device (ro) ==
417 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
418 Is another process using the image [TEST_DIR/t.qcow2]?
420 == Active commit to intermediate layer should work when base in use ==
421 { 'execute': 'qmp_capabilities' }
424 _qemu_img_wrapper commit -b TEST_DIR/t.qcow2.b TEST_DIR/t.qcow2.c
425 { 'execute': 'qmp_capabilities' }
428 { 'execute': 'human-monitor-command',
429 'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT' } }
432 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
433 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
434 Is another process using the image [TEST_DIR/t.qcow2]?
435 Creating overlay with qemu-img when the guest is running should be allowed
437 _qemu_img_wrapper create -f qcow2 -b TEST_DIR/t.qcow2 -F qcow2 TEST_DIR/t.qcow2.overlay
438 == Closing an image should unlock it ==
439 { 'execute': 'human-monitor-command',
440 'arguments': { 'command-line': 'drive_del d0' } }
443 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
444 Adding two and closing one
445 { 'execute': 'human-monitor-command',
446 'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT,readonly=on' } }
448 { 'execute': 'human-monitor-command',
449 'arguments': { 'command-line': 'drive_add 0 if=none,id=d1,file=TEST_DIR/t.IMGFMT,readonly=on' } }
452 _qemu_img_wrapper info TEST_DIR/t.qcow2
453 { 'execute': 'human-monitor-command',
454 'arguments': { 'command-line': 'drive_del d0' } }
457 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
458 qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
459 Is another process using the image [TEST_DIR/t.qcow2]?
461 { 'execute': 'human-monitor-command',
462 'arguments': { 'command-line': 'drive_del d1' } }
465 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
467 == Detecting -U and force-share conflicts ==
472 virtual size: 1 GiB (1073741824 bytes)
476 qemu-img: --force-share/-U conflicts with image options
481 qemu-io: -U conflicts with image options