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?
36 no file open, try 'help open'
38 _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
39 can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
40 Is another process using the image?
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?
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?
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?
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?
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?
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?
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?
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?
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?
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?
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?
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?
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?
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?
100 == Running utility commands -U ==
102 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
103 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 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?
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
150 == Creating base image ==
151 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
153 == Creating test image ==
154 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
156 == Launching QEMU, opts: 'read-only=on' ==
158 == Launching another QEMU, opts: '' ==
159 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
160 Is another process using the image?
162 == Launching another QEMU, opts: 'read-only=on' ==
164 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
166 == Running utility commands ==
168 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
169 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
170 Is another process using the image?
172 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
174 _qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
175 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
176 Is another process using the image?
177 no file open, try 'help open'
179 _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
181 _qemu_img_wrapper info TEST_DIR/t.qcow2
183 _qemu_img_wrapper check TEST_DIR/t.qcow2
185 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
187 _qemu_img_wrapper map TEST_DIR/t.qcow2
189 _qemu_img_wrapper amend -o TEST_DIR/t.qcow2
190 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
191 Is another process using the image?
193 _qemu_img_wrapper commit TEST_DIR/t.qcow2
194 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
195 Is another process using the image?
197 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
198 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
199 Is another process using the image?
201 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
202 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
203 Is another process using the image?
205 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
207 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
209 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
211 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
213 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
214 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
215 Is another process using the image?
217 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
218 qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
219 Is another process using the image?
222 == Running utility commands -U ==
224 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
225 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
227 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
229 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
230 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
231 no file open, try 'help open'
233 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
235 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
237 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
239 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
241 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
243 _qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2
244 qemu-img: unrecognized option '-U'
245 Try 'qemu-img --help' for more information
247 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
248 qemu-img: unrecognized option '-U'
249 Try 'qemu-img --help' for more information
251 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
252 qemu-img: unrecognized option '-U'
253 Try 'qemu-img --help' for more information
255 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
256 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
257 Is another process using the image?
259 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
261 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
263 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
265 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
267 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
268 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
272 == Creating base image ==
273 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
275 == Creating test image ==
276 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
278 == Launching QEMU, opts: 'read-only=on,force-share=on' ==
280 == Launching another QEMU, opts: '' ==
282 == Launching another QEMU, opts: 'read-only=on' ==
284 == Launching another QEMU, opts: 'read-only=on,force-share=on' ==
286 == Running utility commands ==
288 _qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
290 _qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
292 _qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
294 _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
296 _qemu_img_wrapper info TEST_DIR/t.qcow2
298 _qemu_img_wrapper check TEST_DIR/t.qcow2
300 _qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
302 _qemu_img_wrapper map TEST_DIR/t.qcow2
304 _qemu_img_wrapper amend -o TEST_DIR/t.qcow2
306 _qemu_img_wrapper commit TEST_DIR/t.qcow2
308 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
310 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
312 _qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
314 _qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
316 _qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
318 _qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
320 _qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
322 _qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
325 == Running utility commands -U ==
327 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
328 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
330 _qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
332 _qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
333 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
334 no file open, try 'help open'
336 _qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
338 _qemu_img_wrapper info -U TEST_DIR/t.qcow2
340 _qemu_img_wrapper check -U TEST_DIR/t.qcow2
342 _qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
344 _qemu_img_wrapper map -U TEST_DIR/t.qcow2
346 _qemu_img_wrapper amend -o -U TEST_DIR/t.qcow2
347 qemu-img: unrecognized option '-U'
348 Try 'qemu-img --help' for more information
350 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
351 qemu-img: unrecognized option '-U'
352 Try 'qemu-img --help' for more information
354 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
355 qemu-img: unrecognized option '-U'
356 Try 'qemu-img --help' for more information
358 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
360 _qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
362 _qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
364 _qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
366 _qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
368 _qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
369 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
372 == Creating TEST_DIR/t.qcow2.[abc] ==
373 Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
374 Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
375 Formatting 'TEST_DIR/t.IMGFMT.c', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.b
377 == Two devices sharing the same file in backing chain ==
379 == Backing image also as an active device ==
380 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
381 Is another process using the image?
383 == Backing image also as an active device (ro) ==
386 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
387 Is another process using the image?
389 == Active commit to intermediate layer should work when base in use ==
392 _qemu_img_wrapper commit -b TEST_DIR/t.qcow2.b TEST_DIR/t.qcow2.c
396 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
397 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
398 Is another process using the image?
399 Creating overlay with qemu-img when the guest is running should be allowed
401 _qemu_img_wrapper create -f qcow2 -b TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.overlay
402 == Closing an image should unlock it ==
404 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
405 Adding two and closing one
407 _qemu_img_wrapper info TEST_DIR/t.qcow2
409 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
410 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
411 Is another process using the image?
414 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
416 == Detecting -U and force-share conflicts ==
421 virtual size: 1.0G (1073741824 bytes)
422 disk size: unavailable
425 qemu-img: --force-share/-U conflicts with image options
430 -U conflicts with image options