]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qemu-iotests/153.out
Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging
[mirror_qemu.git] / tests / qemu-iotests / 153.out
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
4
5 == Creating base image ==
6 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
7
8 == Creating test image ==
9 Formatting '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: '' ==
14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
15 Is another process using the image?
16
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?
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
26 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
27 Is another process using the image?
28
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?
32
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'
37
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'
42
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?
46
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?
50
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?
54
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?
58
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?
62
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?
66
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?
70
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?
74
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?
78
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?
82
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?
86
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?
90
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?
94
95 == Running utility commands -U ==
96
97 _qemu_io_wrapper -U -c read 0 512 TEST_DIR/t.qcow2
98 can'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
103 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
104 no 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
117 qemu-img: unrecognized option '-U'
118 Try 'qemu-img --help' for more information
119
120 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
121 qemu-img: unrecognized option '-U'
122 Try 'qemu-img --help' for more information
123
124 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
125 qemu-img: unrecognized option '-U'
126 Try 'qemu-img --help' for more information
127
128 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
129 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
130 Is 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
141 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
142
143 Round done
144
145 == Creating base image ==
146 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
147
148 == Creating test image ==
149 Formatting '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: '' ==
154 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock
155 Is 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
164 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
165 Is 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
170 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
171 Is another process using the image?
172 no 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
185 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
186 Is another process using the image?
187
188 _qemu_img_wrapper commit TEST_DIR/t.qcow2
189 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
190 Is another process using the image?
191
192 _qemu_img_wrapper resize TEST_DIR/t.qcow2 32M
193 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
194 Is another process using the image?
195
196 _qemu_img_wrapper rebase TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
197 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
198 Is 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
209 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
210 Is 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
215 can'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
220 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
221 no 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
234 qemu-img: unrecognized option '-U'
235 Try 'qemu-img --help' for more information
236
237 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
238 qemu-img: unrecognized option '-U'
239 Try 'qemu-img --help' for more information
240
241 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
242 qemu-img: unrecognized option '-U'
243 Try 'qemu-img --help' for more information
244
245 _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base
246 qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock
247 Is 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
258 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
259
260 Round done
261
262 == Creating base image ==
263 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432
264
265 == Creating test image ==
266 Formatting '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
315 can'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
320 can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images
321 no 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
334 qemu-img: unrecognized option '-U'
335 Try 'qemu-img --help' for more information
336
337 _qemu_img_wrapper commit -U TEST_DIR/t.qcow2
338 qemu-img: unrecognized option '-U'
339 Try 'qemu-img --help' for more information
340
341 _qemu_img_wrapper resize -U TEST_DIR/t.qcow2 32M
342 qemu-img: unrecognized option '-U'
343 Try '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
356 qemu-img: Could not open 'TEST_DIR/t.qcow2': force-share=on can only be used with read-only images
357
358 Round done
359 == Creating TEST_DIR/t.qcow2.[abc] ==
360 Formatting 'TEST_DIR/t.IMGFMT.a', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
361 Formatting 'TEST_DIR/t.IMGFMT.b', fmt=IMGFMT size=33554432 backing_file=TEST_DIR/t.IMGFMT
362 Formatting '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 ==
367 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
368 Is another process using the image?
369
370 == Backing image also as an active device (ro) ==
371
372 == Symbolic link ==
373 QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock
374 Is another process using the image?
375 {"return": {}}
376 Adding drive
377
378 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
379 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
380 Is another process using the image?
381 Creating overlay with qemu-img when the guest is running should be allowed
382
383 _qemu_img_wrapper create -f qcow2 -b TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.overlay
384 == Closing an image should unlock it ==
385
386 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
387 Adding two and closing one
388
389 _qemu_img_wrapper info TEST_DIR/t.qcow2
390
391 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
392 can't open device TEST_DIR/t.qcow2: Failed to get "write" lock
393 Is another process using the image?
394 Closing the other
395
396 _qemu_io_wrapper TEST_DIR/t.qcow2 -c write 0 512
397 *** done