]>
Commit | Line | Data |
---|---|---|
47e5df21 | 1 | QA output created by 051 |
7486458c | 2 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
fe646693 | 3 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base |
47e5df21 KW |
4 | |
5 | === Unknown option === | |
6 | ||
dd87de06 | 7 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 |
d0e46a55 | 8 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt' |
47e5df21 | 9 | |
dd87de06 | 10 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 |
d0e46a55 | 11 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt' |
47e5df21 | 12 | |
dd87de06 | 13 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 |
d0e46a55 | 14 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt' |
47e5df21 | 15 | |
dd87de06 | 16 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 |
d0e46a55 | 17 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt' |
47e5df21 KW |
18 | |
19 | ||
eb909c7f KW |
20 | === Unknown protocol option === |
21 | ||
22 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= | |
e4342ce5 | 23 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt' |
eb909c7f KW |
24 | |
25 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on | |
e4342ce5 | 26 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt' |
eb909c7f KW |
27 | |
28 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234 | |
e4342ce5 | 29 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt' |
eb909c7f KW |
30 | |
31 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo | |
e4342ce5 | 32 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt' |
eb909c7f KW |
33 | |
34 | ||
06d22aa3 KW |
35 | === Invalid format === |
36 | ||
37 | Testing: -drive file=TEST_DIR/t.qcow2,format=foo | |
e4342ce5 | 38 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo' |
06d22aa3 KW |
39 | |
40 | Testing: -drive file=TEST_DIR/t.qcow2,driver=foo | |
e4342ce5 | 41 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo' |
17b005f1 KW |
42 | |
43 | Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2 | |
e4342ce5 | 44 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format' |
06d22aa3 | 45 | |
80495fdf | 46 | Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2 |
e4342ce5 | 47 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format' |
80495fdf | 48 | |
06d22aa3 | 49 | |
824808dd KW |
50 | === Node names === |
51 | ||
52 | Testing: -drive file=TEST_DIR/t.qcow2,node-name=x123456789012345678901234567890 | |
53 | QEMU X.Y.Z monitor - type 'help' for more information | |
54 | (qemu) quit | |
55 | ||
56 | Testing: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901 | |
57 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901: Node name too long | |
58 | ||
59 | Testing: -drive file=TEST_DIR/t.qcow2,node-name=All-Types.of_all0wed_chars | |
60 | QEMU X.Y.Z monitor - type 'help' for more information | |
61 | (qemu) quit | |
62 | ||
63 | Testing: -drive file=TEST_DIR/t.qcow2,node-name=123foo | |
64 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=123foo: Invalid node name | |
65 | ||
66 | Testing: -drive file=TEST_DIR/t.qcow2,node-name=_foo | |
67 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=_foo: Invalid node name | |
68 | ||
69 | Testing: -drive file=TEST_DIR/t.qcow2,node-name=foo#12 | |
70 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=foo#12: Invalid node name | |
71 | ||
72 | ||
354483e5 CB |
73 | === Device without drive === |
74 | ||
75f02ed5 | 75 | Testing: -device VIRTIO_SCSI -device scsi-hd |
354483e5 CB |
76 | QEMU X.Y.Z monitor - type 'help' for more information |
77 | (qemu) QEMU_PROG: -device scsi-hd: drive property not set | |
354483e5 CB |
78 | |
79 | ||
4db9c980 FZ |
80 | === Overriding backing file === |
81 | ||
dd87de06 | 82 | Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults |
cd408908 | 83 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 84 | (qemu) info block |
90993623 | 85 | drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.orig"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2) |
dd87de06 | 86 | Removable device: not locked, tray closed |
9e193c5a | 87 | Cache mode: writeback |
cd408908 | 88 | Backing file: TEST_DIR/t.qcow2.orig (chain depth: 1) |
69404d9e | 89 | (qemu) quit |
4db9c980 | 90 | |
8ee79e70 | 91 | Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig |
e4342ce5 | 92 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files |
8ee79e70 KW |
93 | |
94 | Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig | |
e4342ce5 | 95 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files |
8ee79e70 KW |
96 | |
97 | Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig | |
e4342ce5 | 98 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files |
8ee79e70 | 99 | |
4db9c980 | 100 | |
47e5df21 KW |
101 | === Enable and disable lazy refcounting on the command line, plus some invalid values === |
102 | ||
7e0db6f4 | 103 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
64aa99d3 | 104 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on |
ac9524dc | 105 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 106 | (qemu) quit |
47e5df21 | 107 | |
64aa99d3 | 108 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off |
ac9524dc | 109 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 110 | (qemu) quit |
47e5df21 | 111 | |
64aa99d3 | 112 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts= |
e4342ce5 | 113 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off' |
47e5df21 | 114 | |
64aa99d3 | 115 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42 |
e4342ce5 | 116 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off' |
47e5df21 | 117 | |
64aa99d3 | 118 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo |
e4342ce5 | 119 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off' |
47e5df21 KW |
120 | |
121 | ||
122 | === With version 2 images enabling lazy refcounts must fail === | |
123 | ||
7486458c | 124 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
64aa99d3 | 125 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on |
e4342ce5 | 126 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level |
47e5df21 | 127 | |
64aa99d3 | 128 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off |
ac9524dc | 129 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 130 | (qemu) quit |
47e5df21 KW |
131 | |
132 | ||
133 | === No medium === | |
134 | ||
47e5df21 | 135 | Testing: -drive if=virtio |
ac9524dc | 136 | QEMU X.Y.Z monitor - type 'help' for more information |
7a370406 | 137 | (qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty |
47e5df21 | 138 | |
47e5df21 KW |
139 | |
140 | === Read-only === | |
141 | ||
47e5df21 | 142 | Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on |
ac9524dc | 143 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 144 | (qemu) quit |
47e5df21 | 145 | |
47e5df21 KW |
146 | |
147 | === Cache modes === | |
148 | ||
fc17c259 | 149 | Testing: -drive driver=null-co,cache=none |
ac9524dc | 150 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 151 | (qemu) quit |
47e5df21 | 152 | |
fc17c259 | 153 | Testing: -drive driver=null-co,cache=directsync |
ac9524dc | 154 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 155 | (qemu) quit |
47e5df21 | 156 | |
fc17c259 | 157 | Testing: -drive driver=null-co,cache=writeback |
ac9524dc | 158 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 159 | (qemu) quit |
47e5df21 | 160 | |
fc17c259 | 161 | Testing: -drive driver=null-co,cache=writethrough |
ac9524dc | 162 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 163 | (qemu) quit |
47e5df21 | 164 | |
fc17c259 | 165 | Testing: -drive driver=null-co,cache=unsafe |
ac9524dc | 166 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 167 | (qemu) quit |
47e5df21 | 168 | |
fc17c259 KW |
169 | Testing: -drive driver=null-co,cache=invalid_value |
170 | QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option | |
47e5df21 | 171 | |
1759386b | 172 | Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults |
768ee459 | 173 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 174 | (qemu) info block |
90993623 | 175 | drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2) |
dd87de06 | 176 | Removable device: not locked, tray closed |
768ee459 KW |
177 | Cache mode: writeback |
178 | Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) | |
69404d9e | 179 | (qemu) info block file |
768ee459 KW |
180 | |
181 | file: TEST_DIR/t.qcow2 (file) | |
182 | Cache mode: writeback | |
69404d9e | 183 | (qemu) info block backing |
768ee459 KW |
184 | backing: TEST_DIR/t.qcow2.base (qcow2, read-only) |
185 | Cache mode: writeback, ignore flushes | |
69404d9e | 186 | (qemu) info block backing-file |
768ee459 KW |
187 | |
188 | backing-file: TEST_DIR/t.qcow2.base (file, read-only) | |
189 | Cache mode: writeback, ignore flushes | |
69404d9e | 190 | (qemu) quit |
768ee459 | 191 | |
1759386b | 192 | Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults |
768ee459 | 193 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 194 | (qemu) info block |
90993623 | 195 | drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2) |
dd87de06 | 196 | Removable device: not locked, tray closed |
768ee459 KW |
197 | Cache mode: writethrough |
198 | Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) | |
69404d9e | 199 | (qemu) info block file |
768ee459 KW |
200 | |
201 | file: TEST_DIR/t.qcow2 (file) | |
202 | Cache mode: writeback | |
69404d9e | 203 | (qemu) info block backing |
768ee459 KW |
204 | backing: TEST_DIR/t.qcow2.base (qcow2, read-only) |
205 | Cache mode: writeback, ignore flushes | |
69404d9e | 206 | (qemu) info block backing-file |
768ee459 KW |
207 | |
208 | backing-file: TEST_DIR/t.qcow2.base (file, read-only) | |
209 | Cache mode: writeback, ignore flushes | |
69404d9e | 210 | (qemu) quit |
768ee459 | 211 | |
1759386b | 212 | Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults |
768ee459 | 213 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 214 | (qemu) info block |
90993623 | 215 | drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2) |
dd87de06 | 216 | Removable device: not locked, tray closed |
768ee459 KW |
217 | Cache mode: writeback, ignore flushes |
218 | Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) | |
69404d9e | 219 | (qemu) info block file |
768ee459 KW |
220 | |
221 | file: TEST_DIR/t.qcow2 (file) | |
222 | Cache mode: writeback, ignore flushes | |
69404d9e | 223 | (qemu) info block backing |
768ee459 KW |
224 | backing: TEST_DIR/t.qcow2.base (qcow2, read-only) |
225 | Cache mode: writeback, ignore flushes | |
69404d9e | 226 | (qemu) info block backing-file |
768ee459 KW |
227 | |
228 | backing-file: TEST_DIR/t.qcow2.base (file, read-only) | |
229 | Cache mode: writeback, ignore flushes | |
69404d9e | 230 | (qemu) quit |
768ee459 | 231 | |
1759386b SS |
232 | Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults |
233 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0: invalid cache option | |
768ee459 | 234 | |
2af5ef70 KW |
235 | |
236 | === Specifying the protocol layer === | |
237 | ||
238 | Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file | |
ac9524dc | 239 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 240 | (qemu) quit |
2af5ef70 | 241 | |
98289620 | 242 | |
765003db KW |
243 | === Leaving out required options === |
244 | ||
245 | Testing: -drive driver=file | |
e4342ce5 | 246 | QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name |
765003db | 247 | |
42dc10f1 HR |
248 | Testing: -drive driver=file,filename= |
249 | QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name | |
250 | ||
765003db | 251 | Testing: -drive driver=nbd |
491d6c7c | 252 | QEMU_PROG: -drive driver=nbd: NBD server address missing |
765003db KW |
253 | |
254 | Testing: -drive driver=raw | |
4e4bf5c4 | 255 | QEMU_PROG: -drive driver=raw: A block device must be specified for "file" |
765003db KW |
256 | |
257 | Testing: -drive file.driver=file | |
e4342ce5 | 258 | QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name |
765003db KW |
259 | |
260 | Testing: -drive file.driver=nbd | |
491d6c7c | 261 | QEMU_PROG: -drive file.driver=nbd: NBD server address missing |
765003db KW |
262 | |
263 | Testing: -drive file.driver=raw | |
4e4bf5c4 | 264 | QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file" |
765003db KW |
265 | |
266 | Testing: -drive foo=bar | |
e4342ce5 | 267 | QEMU_PROG: -drive foo=bar: Must specify either driver or file |
765003db KW |
268 | |
269 | ||
5abbf0ee KW |
270 | === Specifying both an option and its legacy alias === |
271 | ||
272 | Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678 | |
273 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678: 'throttling.iops-total' and its alias 'iops' can't be used at the same time | |
274 | ||
275 | Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678 | |
276 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678: 'throttling.iops-read' and its alias 'iops_rd' can't be used at the same time | |
277 | ||
278 | Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678 | |
279 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678: 'throttling.iops-write' and its alias 'iops_wr' can't be used at the same time | |
280 | ||
281 | Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678 | |
282 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678: 'throttling.bps-total' and its alias 'bps' can't be used at the same time | |
283 | ||
284 | Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678 | |
285 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678: 'throttling.bps-read' and its alias 'bps_rd' can't be used at the same time | |
286 | ||
287 | Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678 | |
288 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678: 'throttling.bps-write' and its alias 'bps_wr' can't be used at the same time | |
289 | ||
290 | Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678 | |
291 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678: 'throttling.iops-total-max' and its alias 'iops_max' can't be used at the same time | |
292 | ||
293 | Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678 | |
294 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678: 'throttling.iops-read-max' and its alias 'iops_rd_max' can't be used at the same time | |
295 | ||
296 | Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678 | |
297 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678: 'throttling.iops-write-max' and its alias 'iops_wr_max' can't be used at the same time | |
298 | ||
299 | Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678 | |
300 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678: 'throttling.bps-total-max' and its alias 'bps_max' can't be used at the same time | |
301 | ||
302 | Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678 | |
303 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678: 'throttling.bps-read-max' and its alias 'bps_rd_max' can't be used at the same time | |
304 | ||
305 | Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678 | |
306 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678: 'throttling.bps-write-max' and its alias 'bps_wr_max' can't be used at the same time | |
307 | ||
308 | Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678 | |
309 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678: 'throttling.iops-size' and its alias 'iops_size' can't be used at the same time | |
310 | ||
311 | Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off | |
312 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off: 'read-only' and its alias 'readonly' can't be used at the same time | |
313 | ||
314 | ||
e9b15550 FZ |
315 | === Catching negative/large throttling values === |
316 | ||
317 | Testing: -drive file=TEST_DIR/t.qcow2,iops=-1 | |
318 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000] | |
319 | ||
320 | Testing: -drive file=TEST_DIR/t.qcow2,bps=-2 | |
321 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000] | |
322 | ||
323 | Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3 | |
324 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000] | |
325 | ||
326 | Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3 | |
327 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000] | |
328 | ||
329 | Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4 | |
330 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000] | |
331 | ||
332 | Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5 | |
333 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000] | |
334 | ||
335 | Testing: -drive file=TEST_DIR/t.qcow2,bps=0 | |
336 | QEMU X.Y.Z monitor - type 'help' for more information | |
69404d9e | 337 | (qemu) quit |
e9b15550 FZ |
338 | |
339 | Testing: -drive file=TEST_DIR/t.qcow2,bps=1 | |
340 | QEMU X.Y.Z monitor - type 'help' for more information | |
69404d9e | 341 | (qemu) quit |
e9b15550 FZ |
342 | |
343 | Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000 | |
344 | QEMU X.Y.Z monitor - type 'help' for more information | |
69404d9e | 345 | (qemu) quit |
e9b15550 FZ |
346 | |
347 | Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001 | |
348 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000] | |
349 | ||
350 | Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999 | |
351 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000] | |
352 | ||
353 | ||
98289620 KW |
354 | === Parsing protocol from file name === |
355 | ||
356 | Testing: -hda foo:bar | |
e4342ce5 | 357 | QEMU_PROG: -hda foo:bar: Unknown protocol 'foo' |
98289620 KW |
358 | |
359 | Testing: -drive file=foo:bar | |
e4342ce5 | 360 | QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo' |
98289620 KW |
361 | |
362 | Testing: -drive file.filename=foo:bar | |
e4342ce5 | 363 | QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory |
98289620 | 364 | |
e3fa4bfa KW |
365 | Testing: -hda file:TEST_DIR/t.qcow2 |
366 | QEMU X.Y.Z monitor - type 'help' for more information | |
69404d9e | 367 | (qemu) quit |
e3fa4bfa KW |
368 | |
369 | Testing: -drive file=file:TEST_DIR/t.qcow2 | |
370 | QEMU X.Y.Z monitor - type 'help' for more information | |
69404d9e | 371 | (qemu) quit |
e3fa4bfa KW |
372 | |
373 | Testing: -drive file.filename=file:TEST_DIR/t.qcow2 | |
e4342ce5 | 374 | QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory |
e3fa4bfa | 375 | |
f32f988c KW |
376 | |
377 | === Snapshot mode === | |
378 | ||
379 | wrote 4096/4096 bytes at offset 0 | |
380 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
289f3eba | 381 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot |
f32f988c | 382 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 383 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
f32f988c KW |
384 | wrote 4096/4096 bytes at offset 0 |
385 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 386 | (qemu) quit |
f32f988c | 387 | |
289f3eba | 388 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 |
f32f988c | 389 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 390 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
f32f988c KW |
391 | wrote 4096/4096 bytes at offset 0 |
392 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 393 | (qemu) quit |
f32f988c | 394 | |
289f3eba | 395 | Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0 |
f32f988c | 396 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 397 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
f32f988c KW |
398 | wrote 4096/4096 bytes at offset 0 |
399 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 400 | (qemu) quit |
f32f988c | 401 | |
289f3eba | 402 | Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot |
f32f988c | 403 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 404 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
b998875d KW |
405 | wrote 4096/4096 bytes at offset 0 |
406 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 407 | (qemu) quit |
b998875d | 408 | |
289f3eba | 409 | Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot |
b998875d | 410 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 411 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
b998875d KW |
412 | wrote 4096/4096 bytes at offset 0 |
413 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 414 | (qemu) quit |
b998875d | 415 | |
289f3eba | 416 | Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 |
b998875d | 417 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 418 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
b998875d KW |
419 | wrote 4096/4096 bytes at offset 0 |
420 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 421 | (qemu) quit |
b998875d | 422 | |
289f3eba | 423 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot |
b998875d | 424 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 425 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
b998875d KW |
426 | wrote 4096/4096 bytes at offset 0 |
427 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 428 | (qemu) quit |
b998875d | 429 | |
289f3eba | 430 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 |
b998875d | 431 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 432 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
f32f988c KW |
433 | wrote 4096/4096 bytes at offset 0 |
434 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 435 | (qemu) quit |
f32f988c KW |
436 | |
437 | read 4096/4096 bytes at offset 0 | |
438 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
289f3eba | 439 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0 |
f32f988c | 440 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 441 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
f32f988c KW |
442 | wrote 4096/4096 bytes at offset 0 |
443 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e | 444 | (qemu) quit |
f32f988c | 445 | |
b1e6fc08 KW |
446 | read 4096/4096 bytes at offset 0 |
447 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
289f3eba | 448 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 |
b1e6fc08 | 449 | QEMU X.Y.Z monitor - type 'help' for more information |
69404d9e | 450 | (qemu) qemu-io drive0 "write -P 0x33 0 4k" |
b1e6fc08 KW |
451 | wrote 4096/4096 bytes at offset 0 |
452 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
69404d9e KW |
453 | (qemu) commit drive0 |
454 | (qemu) quit | |
b1e6fc08 | 455 | |
f32f988c KW |
456 | read 4096/4096 bytes at offset 0 |
457 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) | |
6a7014ef AG |
458 | Testing: -drive driver=null-co,snapshot=on |
459 | QEMU_PROG: -drive driver=null-co,snapshot=on: Could not get temporary filename: No such file or directory | |
460 | ||
30855137 KW |
461 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0 |
462 | QEMU X.Y.Z monitor - type 'help' for more information | |
463 | (qemu) info block | |
464 | drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}}, "driver": "qcow2", "file": {"driver": "file", "filename": SNAPSHOT_PATH}} (qcow2, read-only) | |
465 | Removable device: not locked, tray closed | |
466 | Cache mode: writeback, ignore flushes | |
467 | Backing file: TEST_DIR/t.qcow2 (chain depth: 1) | |
468 | (qemu) quit | |
469 | ||
47e5df21 | 470 | *** done |