]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qemu-iotests/153.out
build: Remove --enable-gprof
[mirror_qemu.git] / tests / qemu-iotests / 153.out
CommitLineData
ba898078
FZ
1QA output created by 153
2== readonly=off,force-share=on should be rejected ==
3QEMU_PROG: -drive if=none,file=null-co://,readonly=off,force-share=on: force-share=on can only be used with read-only images
4
5== Creating base image ==
6Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
7
8== Creating test image ==
b66ff2c2 9Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
ba898078
FZ
10
11== Launching QEMU, opts: '' ==
12
13== Launching another QEMU, opts: '' ==
14QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
b857431d 15Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
16
17== Launching another QEMU, opts: 'read-only=on' ==
18QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,read-only=on: Failed to get shared "write" lock
b857431d 19Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
20
21== Launching another QEMU, opts: 'read-only=on,force-share=on' ==
22
23== Running utility commands ==
24
25_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
36b9986b 26qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 27Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
28
29_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
36b9986b 30qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
b857431d 31Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
32
33_qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
36b9986b 34qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 35Is another process using the image [TEST_DIR/t.qcow2]?
64ebf556 36no file open, try 'help open'
ba898078
FZ
37
38_qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
36b9986b 39qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
b857431d 40Is another process using the image [TEST_DIR/t.qcow2]?
64ebf556 41no file open, try 'help open'
ba898078
FZ
42
43_qemu_img_wrapper info TEST_DIR/t.qcow2
44qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
b857431d 45Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
46
47_qemu_img_wrapper check TEST_DIR/t.qcow2
48qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
b857431d 49Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
50
51_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
52qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
b857431d 53Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
54
55_qemu_img_wrapper map TEST_DIR/t.qcow2
56qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
b857431d 57Is another process using the image [TEST_DIR/t.qcow2]?
ba898078 58
44e808c1 59_qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
ba898078 60qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 61Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
62
63_qemu_img_wrapper commit TEST_DIR/t.qcow2
64qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 65Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
66
67_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
68qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 69Is another process using the image [TEST_DIR/t.qcow2]?
ba898078 70
b66ff2c2 71_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
ba898078 72qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 73Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
74
75_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
76qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
b857431d 77Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
78
79_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
80qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
b857431d 81Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
82
83_qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
84qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
b857431d 85Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
86
87_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
88qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock
b857431d 89Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
90
91_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
92qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 93Is another process using the image [TEST_DIR/t.qcow2]?
ba898078 94
b66ff2c2 95_qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
f45b638f 96qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 97Is another process using the image [TEST_DIR/t.qcow2]?
f45b638f 98file format: IMGFMT
b66ff2c2 99backing file format: IMGFMT
f45b638f 100
ba898078
FZ
101== Running utility commands -U ==
102
103_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
36b9986b 104qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
ba898078
FZ
105
106_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
107
108_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
36b9986b 109qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
64ebf556 110no file open, try 'help open'
ba898078
FZ
111
112_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
113
114_qemu_img_wrapper info -U TEST_DIR/t.qcow2
115
116_qemu_img_wrapper check -U TEST_DIR/t.qcow2
117
118_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
119
120_qemu_img_wrapper map -U TEST_DIR/t.qcow2
121
44e808c1 122_qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
ba898078
FZ
123qemu-img: unrecognized option '-U'
124Try 'qemu-img --help' for more information
125
126_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
127qemu-img: unrecognized option '-U'
128Try 'qemu-img --help' for more information
129
130_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
131qemu-img: unrecognized option '-U'
132Try 'qemu-img --help' for more information
133
b66ff2c2 134_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
ba898078 135qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 136Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
137
138_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
139
140_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
141
142_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
143
144_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
145
146_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
147qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
a98b1a1f 148{ 'execute': 'quit' }
ba898078
FZ
149
150Round done
151
152== Creating base image ==
153Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
154
155== Creating test image ==
b66ff2c2 156Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
ba898078
FZ
157
158== Launching QEMU, opts: 'read-only=on' ==
159
160== Launching another QEMU, opts: '' ==
161QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
b857431d 162Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
163
164== Launching another QEMU, opts: 'read-only=on' ==
165
166== Launching another QEMU, opts: 'read-only=on,force-share=on' ==
167
168== Running utility commands ==
169
170_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
36b9986b 171qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 172Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
173
174_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
175
176_qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
36b9986b 177qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 178Is another process using the image [TEST_DIR/t.qcow2]?
64ebf556 179no file open, try 'help open'
ba898078
FZ
180
181_qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
182
183_qemu_img_wrapper info TEST_DIR/t.qcow2
184
185_qemu_img_wrapper check TEST_DIR/t.qcow2
186
187_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
188
189_qemu_img_wrapper map TEST_DIR/t.qcow2
190
44e808c1 191_qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
ba898078 192qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 193Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
194
195_qemu_img_wrapper commit TEST_DIR/t.qcow2
196qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 197Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
198
199_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
200qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 201Is another process using the image [TEST_DIR/t.qcow2]?
ba898078 202
b66ff2c2 203_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
ba898078 204qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 205Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
206
207_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
208
209_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
210
211_qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
212
213_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
214
215_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
216qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 217Is another process using the image [TEST_DIR/t.qcow2]?
ba898078 218
b66ff2c2 219_qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
f45b638f 220qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 221Is another process using the image [TEST_DIR/t.qcow2]?
f45b638f 222file format: IMGFMT
b66ff2c2 223backing file format: IMGFMT
f45b638f 224
ba898078
FZ
225== Running utility commands -U ==
226
227_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
36b9986b 228qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
ba898078
FZ
229
230_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
231
232_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
36b9986b 233qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
64ebf556 234no file open, try 'help open'
ba898078
FZ
235
236_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
237
238_qemu_img_wrapper info -U TEST_DIR/t.qcow2
239
240_qemu_img_wrapper check -U TEST_DIR/t.qcow2
241
242_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
243
244_qemu_img_wrapper map -U TEST_DIR/t.qcow2
245
44e808c1 246_qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
ba898078
FZ
247qemu-img: unrecognized option '-U'
248Try 'qemu-img --help' for more information
249
250_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
251qemu-img: unrecognized option '-U'
252Try 'qemu-img --help' for more information
253
254_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
255qemu-img: unrecognized option '-U'
256Try 'qemu-img --help' for more information
257
b66ff2c2 258_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
ba898078 259qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
b857431d 260Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
261
262_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
263
264_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
265
266_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
267
268_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
269
270_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
271qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
a98b1a1f 272{ 'execute': 'quit' }
ba898078
FZ
273
274Round done
275
276== Creating base image ==
277Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
278
279== Creating test image ==
b66ff2c2 280Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
ba898078
FZ
281
282== Launching QEMU, opts: 'read-only=on,force-share=on' ==
283
284== Launching another QEMU, opts: '' ==
285
286== Launching another QEMU, opts: 'read-only=on' ==
287
288== Launching another QEMU, opts: 'read-only=on,force-share=on' ==
289
290== Running utility commands ==
291
292_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
293
294_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
295
296_qemu_io_wrapper -c open TEST_DIR/t.qcow2 -c read 0 512
297
298_qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512
299
300_qemu_img_wrapper info TEST_DIR/t.qcow2
301
302_qemu_img_wrapper check TEST_DIR/t.qcow2
303
304_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
305
306_qemu_img_wrapper map TEST_DIR/t.qcow2
307
44e808c1 308_qemu_img_wrapper amend -o size=32M TEST_DIR/t.qcow2
ba898078
FZ
309
310_qemu_img_wrapper commit TEST_DIR/t.qcow2
311
312_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
313
b66ff2c2 314_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
ba898078
FZ
315
316_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
317
318_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
319
320_qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
321
322_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
323
324_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
325
b66ff2c2 326_qemu_img_wrapper create -f qcow2 TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
f45b638f 327file format: IMGFMT
b66ff2c2 328backing file format: IMGFMT
f45b638f 329
ba898078
FZ
330== Running utility commands -U ==
331
332_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
36b9986b 333qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
ba898078
FZ
334
335_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
336
337_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
36b9986b 338qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
64ebf556 339no file open, try 'help open'
ba898078
FZ
340
341_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
342
343_qemu_img_wrapper info -U TEST_DIR/t.qcow2
344
345_qemu_img_wrapper check -U TEST_DIR/t.qcow2
346
347_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
348
349_qemu_img_wrapper map -U TEST_DIR/t.qcow2
350
44e808c1 351_qemu_img_wrapper amend -o size=32M -U TEST_DIR/t.qcow2
ba898078
FZ
352qemu-img: unrecognized option '-U'
353Try 'qemu-img --help' for more information
354
355_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
356qemu-img: unrecognized option '-U'
357Try 'qemu-img --help' for more information
358
359_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
360qemu-img: unrecognized option '-U'
361Try 'qemu-img --help' for more information
362
b66ff2c2 363_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2
ba898078
FZ
364
365_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
366
367_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
368
369_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
370
371_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
372
373_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
374qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
a98b1a1f 375{ 'execute': 'quit' }
ba898078
FZ
376
377Round done
0e1a5827
FZ
378
379== Two devices with the same image (read-only=off - read-only=off) ==
380QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
b857431d 381Is another process using the image [TEST_DIR/t.qcow2]?
0e1a5827
FZ
382
383== Two devices with the same image (read-only=off - read-only=on) ==
384QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=on: Failed to get shared "write" lock
b857431d 385Is another process using the image [TEST_DIR/t.qcow2]?
0e1a5827
FZ
386
387== Two devices with the same image (read-only=off - read-only=on,force-share=on) ==
388
389== Two devices with the same image (read-only=on - read-only=off) ==
390QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock
b857431d 391Is another process using the image [TEST_DIR/t.qcow2]?
0e1a5827
FZ
392
393== Two devices with the same image (read-only=on - read-only=on) ==
394
395== Two devices with the same image (read-only=on - read-only=on,force-share=on) ==
396
397== Two devices with the same image (read-only=on,force-share=on - read-only=off) ==
398
399== Two devices with the same image (read-only=on,force-share=on - read-only=on) ==
400
401== Two devices with the same image (read-only=on,force-share=on - read-only=on,force-share=on) ==
402
ba898078 403== Creating TEST_DIR/t.qcow2.[abc] ==
b66ff2c2
EB
404Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
405Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
406Formatting 'TEST_DIR/t.IMGFMT.c', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.b backing_fmt=IMGFMT
ba898078
FZ
407
408== Two devices sharing the same file in backing chain ==
409
410== Backing image also as an active device ==
411QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 412Is another process using the image [TEST_DIR/t.qcow2]?
ba898078
FZ
413
414== Backing image also as an active device (ro) ==
415
416== Symbolic link ==
417QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 418Is another process using the image [TEST_DIR/t.qcow2]?
de963500
FZ
419
420== Active commit to intermediate layer should work when base in use ==
a98b1a1f 421{ 'execute': 'qmp_capabilities' }
de963500
FZ
422{"return": {}}
423
424_qemu_img_wrapper commit -b TEST_DIR/t.qcow2.b TEST_DIR/t.qcow2.c
a98b1a1f 425{ 'execute': 'qmp_capabilities' }
ba898078
FZ
426{"return": {}}
427Adding drive
0e720781
HR
428{ 'execute': 'human-monitor-command',
429 'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT' } }
9cd97956 430{"return": "OKrn"}
ba898078
FZ
431
432_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
36b9986b 433qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 434Is another process using the image [TEST_DIR/t.qcow2]?
fcca5dce
FZ
435Creating overlay with qemu-img when the guest is running should be allowed
436
b66ff2c2 437_qemu_img_wrapper create -f qcow2 -b TEST_DIR/t.qcow2 -F qcow2 TEST_DIR/t.qcow2.overlay
fcca5dce 438== Closing an image should unlock it ==
0e720781
HR
439{ 'execute': 'human-monitor-command',
440 'arguments': { 'command-line': 'drive_del d0' } }
9cd97956 441{"return": ""}
ba898078
FZ
442
443_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
444Adding two and closing one
0e720781
HR
445{ 'execute': 'human-monitor-command',
446 'arguments': { 'command-line': 'drive_add 0 if=none,id=d0,file=TEST_DIR/t.IMGFMT,readonly=on' } }
9cd97956 447{"return": "OKrn"}
0e720781
HR
448{ 'execute': 'human-monitor-command',
449 'arguments': { 'command-line': 'drive_add 0 if=none,id=d1,file=TEST_DIR/t.IMGFMT,readonly=on' } }
9cd97956 450{"return": "OKrn"}
ba898078
FZ
451
452_qemu_img_wrapper info TEST_DIR/t.qcow2
0e720781
HR
453{ 'execute': 'human-monitor-command',
454 'arguments': { 'command-line': 'drive_del d0' } }
9cd97956 455{"return": ""}
ba898078
FZ
456
457_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
36b9986b 458qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
b857431d 459Is another process using the image [TEST_DIR/t.qcow2]?
ba898078 460Closing the other
0e720781
HR
461{ 'execute': 'human-monitor-command',
462 'arguments': { 'command-line': 'drive_del d1' } }
9cd97956 463{"return": ""}
ba898078
FZ
464
465_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
4e7d73c5
HR
466
467== Detecting -U and force-share conflicts ==
468
469No conflict:
470image: null-co://
471file format: null-co
de38b500 472virtual size: 1 GiB (1073741824 bytes)
07cd7b65 473disk size: 0 B
4e7d73c5
HR
474
475Conflict:
476qemu-img: --force-share/-U conflicts with image options
477
478No conflict:
479
480Conflict:
36b9986b 481qemu-io: -U conflicts with image options
ba898078 482*** done