]>
Commit | Line | Data |
---|---|---|
ba898078 FZ |
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 == | |
b66ff2c2 | 9 | Formatting '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: '' == | |
14 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock | |
b857431d | 15 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
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 | |
b857431d | 19 | Is 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 | 26 | qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock |
b857431d | 27 | Is 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 | 30 | qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock |
b857431d | 31 | Is 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 | 34 | qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock |
b857431d | 35 | Is another process using the image [TEST_DIR/t.qcow2]? |
64ebf556 | 36 | no file open, try 'help open' |
ba898078 FZ |
37 | |
38 | _qemu_io_wrapper -c open -r TEST_DIR/t.qcow2 -c read 0 512 | |
36b9986b | 39 | qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get shared "write" lock |
b857431d | 40 | Is another process using the image [TEST_DIR/t.qcow2]? |
64ebf556 | 41 | no file open, try 'help open' |
ba898078 FZ |
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 | |
b857431d | 45 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
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 | |
b857431d | 49 | Is 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 | |
52 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock | |
b857431d | 53 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
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 | |
b857431d | 57 | Is 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 | 60 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock |
b857431d | 61 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
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 | |
b857431d | 65 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
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 | |
b857431d | 69 | Is 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 | 72 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock |
b857431d | 73 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
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 | |
b857431d | 77 | Is 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 | |
80 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock | |
b857431d | 81 | Is 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 | |
84 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get shared "write" lock | |
b857431d | 85 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
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 | |
b857431d | 89 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
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 | |
b857431d | 93 | Is 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 | 96 | qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock |
b857431d | 97 | Is another process using the image [TEST_DIR/t.qcow2]? |
f45b638f | 98 | file format: IMGFMT |
b66ff2c2 | 99 | backing 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 | 104 | qemu-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 | 109 | qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images |
64ebf556 | 110 | no 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 |
123 | qemu-img: unrecognized option '-U' |
124 | Try 'qemu-img --help' for more information | |
125 | ||
126 | _qemu_img_wrapper commit -U TEST_DIR/t.qcow2 | |
127 | qemu-img: unrecognized option '-U' | |
128 | Try 'qemu-img --help' for more information | |
129 | ||
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 | |
133 | ||
b66ff2c2 | 134 | _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2 |
ba898078 | 135 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock |
b857431d | 136 | Is 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 | |
147 | qemu-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 | |
150 | Round done | |
151 | ||
152 | == Creating base image == | |
153 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432 | |
154 | ||
155 | == Creating test image == | |
b66ff2c2 | 156 | Formatting '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: '' == | |
161 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=none,: Failed to get "write" lock | |
b857431d | 162 | Is 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 | 171 | qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock |
b857431d | 172 | Is 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 | 177 | qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock |
b857431d | 178 | Is another process using the image [TEST_DIR/t.qcow2]? |
64ebf556 | 179 | no 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 | 192 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock |
b857431d | 193 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
194 | |
195 | _qemu_img_wrapper commit TEST_DIR/t.qcow2 | |
196 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock | |
b857431d | 197 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 FZ |
198 | |
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 | |
b857431d | 201 | Is 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 | 204 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock |
b857431d | 205 | Is 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 | |
216 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock | |
b857431d | 217 | Is 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 | 220 | qemu-img: TEST_DIR/t.qcow2: Failed to get "write" lock |
b857431d | 221 | Is another process using the image [TEST_DIR/t.qcow2]? |
f45b638f | 222 | file format: IMGFMT |
b66ff2c2 | 223 | backing 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 | 228 | qemu-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 | 233 | qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images |
64ebf556 | 234 | no 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 |
247 | qemu-img: unrecognized option '-U' |
248 | Try 'qemu-img --help' for more information | |
249 | ||
250 | _qemu_img_wrapper commit -U TEST_DIR/t.qcow2 | |
251 | qemu-img: unrecognized option '-U' | |
252 | Try 'qemu-img --help' for more information | |
253 | ||
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 | |
257 | ||
b66ff2c2 | 258 | _qemu_img_wrapper rebase -U TEST_DIR/t.qcow2 -b TEST_DIR/t.qcow2.base -F qcow2 |
ba898078 | 259 | qemu-img: Could not open 'TEST_DIR/t.qcow2': Failed to get "write" lock |
b857431d | 260 | Is 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 | |
271 | qemu-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 | |
274 | Round done | |
275 | ||
276 | == Creating base image == | |
277 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=33554432 | |
278 | ||
279 | == Creating test image == | |
b66ff2c2 | 280 | Formatting '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 | 327 | file format: IMGFMT |
b66ff2c2 | 328 | backing 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 | 333 | qemu-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 | 338 | qemu-io: can't open device TEST_DIR/t.qcow2: force-share=on can only be used with read-only images |
64ebf556 | 339 | no 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 |
352 | qemu-img: unrecognized option '-U' |
353 | Try 'qemu-img --help' for more information | |
354 | ||
355 | _qemu_img_wrapper commit -U TEST_DIR/t.qcow2 | |
356 | qemu-img: unrecognized option '-U' | |
357 | Try 'qemu-img --help' for more information | |
358 | ||
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 | |
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 | |
374 | qemu-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 | |
377 | Round done | |
0e1a5827 FZ |
378 | |
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 | |
b857431d | 381 | Is 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) == | |
384 | QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=on: Failed to get shared "write" lock | |
b857431d | 385 | Is 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) == | |
390 | QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,read-only=off: Failed to get "write" lock | |
b857431d | 391 | Is 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 |
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 | |
ba898078 FZ |
407 | |
408 | == Two devices sharing the same file in backing chain == | |
409 | ||
410 | == Backing image also as an active device == | |
411 | QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock | |
b857431d | 412 | Is 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 == | |
417 | QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2: Failed to get "write" lock | |
b857431d | 418 | Is 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": {}} |
427 | Adding 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 | 433 | qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock |
b857431d | 434 | Is another process using the image [TEST_DIR/t.qcow2]? |
fcca5dce FZ |
435 | Creating 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 | |
444 | Adding 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 | 458 | qemu-io: can't open device TEST_DIR/t.qcow2: Failed to get "write" lock |
b857431d | 459 | Is another process using the image [TEST_DIR/t.qcow2]? |
ba898078 | 460 | Closing 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 | ||
469 | No conflict: | |
470 | image: null-co:// | |
471 | file format: null-co | |
de38b500 | 472 | virtual size: 1 GiB (1073741824 bytes) |
07cd7b65 | 473 | disk size: 0 B |
4e7d73c5 HR |
474 | |
475 | Conflict: | |
476 | qemu-img: --force-share/-U conflicts with image options | |
477 | ||
478 | No conflict: | |
479 | ||
480 | Conflict: | |
36b9986b | 481 | qemu-io: -U conflicts with image options |
ba898078 | 482 | *** done |