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