xref: /qemu/tests/qemu-iotests/153.out (revision 6402cbbb)
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 ==
9Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
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
15Is another process using the image?
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
19Is another process using the image?
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
26can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
27Is another process using the image?
28
29_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
30can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
31Is another process using the image?
32
33_qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
34can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
35Is another process using the image?
36no file open, try 'help open'
37
38_qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
39can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock
40Is another process using the image?
41no file open, try 'help open'
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
45Is another process using the image?
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
49Is another process using the image?
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
53Is another process using the image?
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
57Is another process using the image?
58
59_qemu_img_wrapper amend -o  TEST_DIR/t.qcow2
60qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
61Is another process using the image?
62
63_qemu_img_wrapper commit TEST_DIR/t.qcow2
64qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
65Is another process using the image?
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
69Is another process using the image?
70
71_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
72qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
73Is another process using the image?
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
77Is another process using the image?
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
81Is another process using the image?
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
85Is another process using the image?
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
89Is another process using the image?
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
93Is another process using the image?
94
95== Running utility commands -U ==
96
97_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
98can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
99
100_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
101
102_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
103can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
104no file open, try 'help open'
105
106_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
107
108_qemu_img_wrapper info -U TEST_DIR/t.qcow2
109
110_qemu_img_wrapper check -U TEST_DIR/t.qcow2
111
112_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
113
114_qemu_img_wrapper map -U TEST_DIR/t.qcow2
115
116_qemu_img_wrapper amend -o  -U TEST_DIR/t.qcow2
117qemu-img: unrecognized option '-U'
118Try 'qemu-img --help' for more information
119
120_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
121qemu-img: unrecognized option '-U'
122Try 'qemu-img --help' for more information
123
124_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
125qemu-img: unrecognized option '-U'
126Try 'qemu-img --help' for more information
127
128_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
129qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
130Is another process using the image?
131
132_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
133
134_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
135
136_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
137
138_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
139
140_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
141qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
142
143Round done
144
145== Creating base image ==
146Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
147
148== Creating test image ==
149Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
150
151== Launching QEMU, opts: 'read-only=on' ==
152
153== Launching another QEMU, opts: '' ==
154QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
155Is another process using the image?
156
157== Launching another QEMU, opts: 'read-only=on' ==
158
159== Launching another QEMU, opts: 'read-only=on,force-share=on' ==
160
161== Running utility commands  ==
162
163_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
164can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
165Is another process using the image?
166
167_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
168
169_qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
170can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
171Is another process using the image?
172no file open, try 'help open'
173
174_qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
175
176_qemu_img_wrapper info TEST_DIR/t.qcow2
177
178_qemu_img_wrapper check TEST_DIR/t.qcow2
179
180_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
181
182_qemu_img_wrapper map TEST_DIR/t.qcow2
183
184_qemu_img_wrapper amend -o  TEST_DIR/t.qcow2
185qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
186Is another process using the image?
187
188_qemu_img_wrapper commit TEST_DIR/t.qcow2
189qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
190Is another process using the image?
191
192_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
193qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
194Is another process using the image?
195
196_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
197qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
198Is another process using the image?
199
200_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
201
202_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
203
204_qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
205
206_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
207
208_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
209qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
210Is another process using the image?
211
212== Running utility commands -U ==
213
214_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
215can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
216
217_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
218
219_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
220can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
221no file open, try 'help open'
222
223_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
224
225_qemu_img_wrapper info -U TEST_DIR/t.qcow2
226
227_qemu_img_wrapper check -U TEST_DIR/t.qcow2
228
229_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
230
231_qemu_img_wrapper map -U TEST_DIR/t.qcow2
232
233_qemu_img_wrapper amend -o  -U TEST_DIR/t.qcow2
234qemu-img: unrecognized option '-U'
235Try 'qemu-img --help' for more information
236
237_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
238qemu-img: unrecognized option '-U'
239Try 'qemu-img --help' for more information
240
241_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
242qemu-img: unrecognized option '-U'
243Try 'qemu-img --help' for more information
244
245_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
246qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
247Is another process using the image?
248
249_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
250
251_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
252
253_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
254
255_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
256
257_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
258qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
259
260Round done
261
262== Creating base image ==
263Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
264
265== Creating test image ==
266Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.base
267
268== Launching QEMU, opts: 'read-only=on,force-share=on' ==
269
270== Launching another QEMU, opts: '' ==
271
272== Launching another QEMU, opts: 'read-only=on' ==
273
274== Launching another QEMU, opts: 'read-only=on,force-share=on' ==
275
276== Running utility commands  ==
277
278_qemu_io_wrapper -c read 0 512 TEST_DIR/t.qcow2
279
280_qemu_io_wrapper -r -c read 0 512 TEST_DIR/t.qcow2
281
282_qemu_io_wrapper -c open  TEST_DIR/t.qcow2 -c read 0 512
283
284_qemu_io_wrapper -c open -r  TEST_DIR/t.qcow2 -c read 0 512
285
286_qemu_img_wrapper info TEST_DIR/t.qcow2
287
288_qemu_img_wrapper check TEST_DIR/t.qcow2
289
290_qemu_img_wrapper compare TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
291
292_qemu_img_wrapper map TEST_DIR/t.qcow2
293
294_qemu_img_wrapper amend -o  TEST_DIR/t.qcow2
295
296_qemu_img_wrapper commit TEST_DIR/t.qcow2
297
298_qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
299
300_qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
301
302_qemu_img_wrapper snapshot -l TEST_DIR/t.qcow2
303
304_qemu_img_wrapper convert TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
305
306_qemu_img_wrapper dd if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
307
308_qemu_img_wrapper bench -c 1 TEST_DIR/t.qcow2
309
310_qemu_img_wrapper bench -w -c 1 TEST_DIR/t.qcow2
311
312== Running utility commands -U ==
313
314_qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
315can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
316
317_qemu_io_wrapper -U -r -c read 0 512 TEST_DIR/t.qcow2
318
319_qemu_io_wrapper -c open -U TEST_DIR/t.qcow2 -c read 0 512
320can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
321no file open, try 'help open'
322
323_qemu_io_wrapper -c open -r -U TEST_DIR/t.qcow2 -c read 0 512
324
325_qemu_img_wrapper info -U TEST_DIR/t.qcow2
326
327_qemu_img_wrapper check -U TEST_DIR/t.qcow2
328
329_qemu_img_wrapper compare -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2
330
331_qemu_img_wrapper map -U TEST_DIR/t.qcow2
332
333_qemu_img_wrapper amend -o  -U TEST_DIR/t.qcow2
334qemu-img: unrecognized option '-U'
335Try 'qemu-img --help' for more information
336
337_qemu_img_wrapper commit -U TEST_DIR/t.qcow2
338qemu-img: unrecognized option '-U'
339Try 'qemu-img --help' for more information
340
341_qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
342qemu-img: unrecognized option '-U'
343Try 'qemu-img --help' for more information
344
345_qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
346
347_qemu_img_wrapper snapshot -l -U TEST_DIR/t.qcow2
348
349_qemu_img_wrapper convert -U TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.convert
350
351_qemu_img_wrapper dd -U if=TEST_DIR/t.qcow2 of=TEST_DIR/t.qcow2.convert bs=512 count=1
352
353_qemu_img_wrapper bench -U -c 1 TEST_DIR/t.qcow2
354
355_qemu_img_wrapper bench -U -w -c 1 TEST_DIR/t.qcow2
356qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
357
358Round done
359== Creating TEST_DIR/t.qcow2.[abc] ==
360Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
361Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
362Formatting 'TEST_DIR/t.IMGFMT.c', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT.b
363
364== Two devices sharing the same file in backing chain ==
365
366== Backing image also as an active device ==
367QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
368Is another process using the image?
369
370== Backing image also as an active device (ro) ==
371
372== Symbolic link ==
373QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
374Is another process using the image?
375
376== Closing an image should unlock it ==
377{"return": {}}
378Adding drive
379
380_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
381can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
382Is another process using the image?
383Closing drive
384
385_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
386Adding two and closing one
387
388_qemu_img_wrapper info TEST_DIR/t.qcow2
389
390_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
391can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
392Is another process using the image?
393Closing the other
394
395_qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
396*** done
397