]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qemu-iotests/051.out
iotests: Fix 195 if IMGFMT is part of TEST_DIR
[mirror_qemu.git] / tests / qemu-iotests / 051.out
CommitLineData
47e5df21 1QA output created by 051
7486458c 2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
fe646693 3Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
47e5df21
KW
4
5=== Unknown option ===
6
dd87de06 7Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
d0e46a55 8QEMU_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 10Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
d0e46a55 11QEMU_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 13Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
d0e46a55 14QEMU_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 16Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
d0e46a55 17QEMU_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
22Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
e4342ce5 23QEMU_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
25Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
e4342ce5 26QEMU_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
28Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
e4342ce5 29QEMU_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
31Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
e4342ce5 32QEMU_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
37Testing: -drive file=TEST_DIR/t.qcow2,format=foo
e4342ce5 38QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
06d22aa3
KW
39
40Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
e4342ce5 41QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
17b005f1
KW
42
43Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
e4342ce5 44QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'
06d22aa3 45
80495fdf 46Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
e4342ce5 47QEMU_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
75f02ed5 52Testing: -device VIRTIO_SCSI -device scsi-hd
354483e5
CB
53QEMU 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 59Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
cd408908 60QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 61(qemu) info block
dd87de06
BT
62drive0 (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 68Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
e4342ce5 69QEMU_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
71Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
e4342ce5 72QEMU_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
74Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
e4342ce5 75QEMU_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 80Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
ac9524dc 81QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 82(qemu) quit
47e5df21 83
64aa99d3 84Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
ac9524dc 85QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 86(qemu) quit
47e5df21 87
64aa99d3 88Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
e4342ce5 89QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
47e5df21 90
64aa99d3 91Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
e4342ce5 92QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
47e5df21 93
64aa99d3 94Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
e4342ce5 95QEMU_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 100Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
64aa99d3 101Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
e4342ce5 102QEMU_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 104Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
ac9524dc 105QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 106(qemu) quit
47e5df21
KW
107
108
109=== No medium ===
110
47e5df21 111Testing: -drive if=virtio
ac9524dc 112QEMU 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 118Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
ac9524dc 119QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 120(qemu) quit
47e5df21 121
47e5df21
KW
122
123=== Cache modes ===
124
fc17c259 125Testing: -drive driver=null-co,cache=none
ac9524dc 126QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 127(qemu) quit
47e5df21 128
fc17c259 129Testing: -drive driver=null-co,cache=directsync
ac9524dc 130QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 131(qemu) quit
47e5df21 132
fc17c259 133Testing: -drive driver=null-co,cache=writeback
ac9524dc 134QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 135(qemu) quit
47e5df21 136
fc17c259 137Testing: -drive driver=null-co,cache=writethrough
ac9524dc 138QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 139(qemu) quit
47e5df21 140
fc17c259 141Testing: -drive driver=null-co,cache=unsafe
ac9524dc 142QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 143(qemu) quit
47e5df21 144
fc17c259
KW
145Testing: -drive driver=null-co,cache=invalid_value
146QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
47e5df21 147
1759386b 148Testing: -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 149QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 150(qemu) info block
dd87de06
BT
151drive0 (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
157file: TEST_DIR/t.qcow2 (file)
158 Cache mode: writeback
69404d9e 159(qemu) info block backing
768ee459
KW
160backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
161 Cache mode: writeback, ignore flushes
69404d9e 162(qemu) info block backing-file
768ee459
KW
163
164backing-file: TEST_DIR/t.qcow2.base (file, read-only)
165 Cache mode: writeback, ignore flushes
69404d9e 166(qemu) quit
768ee459 167
1759386b 168Testing: -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 169QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 170(qemu) info block
dd87de06
BT
171drive0 (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
177file: TEST_DIR/t.qcow2 (file)
178 Cache mode: writeback
69404d9e 179(qemu) info block backing
768ee459
KW
180backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
181 Cache mode: writeback, ignore flushes
69404d9e 182(qemu) info block backing-file
768ee459
KW
183
184backing-file: TEST_DIR/t.qcow2.base (file, read-only)
185 Cache mode: writeback, ignore flushes
69404d9e 186(qemu) quit
768ee459 187
1759386b 188Testing: -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 189QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 190(qemu) info block
dd87de06
BT
191drive0 (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
197file: TEST_DIR/t.qcow2 (file)
198 Cache mode: writeback, ignore flushes
69404d9e 199(qemu) info block backing
768ee459
KW
200backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
201 Cache mode: writeback, ignore flushes
69404d9e 202(qemu) info block backing-file
768ee459
KW
203
204backing-file: TEST_DIR/t.qcow2.base (file, read-only)
205 Cache mode: writeback, ignore flushes
69404d9e 206(qemu) quit
768ee459 207
1759386b
SS
208Testing: -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
209QEMU_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
214Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
ac9524dc 215QEMU 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
221Testing: -drive driver=file
e4342ce5 222QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
765003db 223
42dc10f1
HR
224Testing: -drive driver=file,filename=
225QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
226
765003db 227Testing: -drive driver=nbd
491d6c7c 228QEMU_PROG: -drive driver=nbd: NBD server address missing
765003db
KW
229
230Testing: -drive driver=raw
4e4bf5c4 231QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
765003db
KW
232
233Testing: -drive file.driver=file
e4342ce5 234QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
765003db
KW
235
236Testing: -drive file.driver=nbd
491d6c7c 237QEMU_PROG: -drive file.driver=nbd: NBD server address missing
765003db
KW
238
239Testing: -drive file.driver=raw
4e4bf5c4 240QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
765003db
KW
241
242Testing: -drive foo=bar
e4342ce5 243QEMU_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
248Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
249QEMU_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
251Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
252QEMU_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
254Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
255QEMU_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
257Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
258QEMU_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
260Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
261QEMU_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
263Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
264QEMU_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
266Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
267QEMU_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
269Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
270QEMU_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
272Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
273QEMU_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
275Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
276QEMU_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
278Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
279QEMU_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
281Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
282QEMU_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
284Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
285QEMU_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
287Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
288QEMU_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
293Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
294QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
295
296Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
297QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
298
299Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
300QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
301
302Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
303QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
304
305Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
306QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
307
308Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
309QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
310
311Testing: -drive file=TEST_DIR/t.qcow2,bps=0
312QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 313(qemu) quit
e9b15550
FZ
314
315Testing: -drive file=TEST_DIR/t.qcow2,bps=1
316QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 317(qemu) quit
e9b15550
FZ
318
319Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
320QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 321(qemu) quit
e9b15550
FZ
322
323Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
324QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
325
326Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
327QEMU_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
332Testing: -hda foo:bar
e4342ce5 333QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
98289620
KW
334
335Testing: -drive file=foo:bar
e4342ce5 336QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
98289620
KW
337
338Testing: -drive file.filename=foo:bar
e4342ce5 339QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
98289620 340
e3fa4bfa
KW
341Testing: -hda file:TEST_DIR/t.qcow2
342QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 343(qemu) quit
e3fa4bfa
KW
344
345Testing: -drive file=file:TEST_DIR/t.qcow2
346QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 347(qemu) quit
e3fa4bfa
KW
348
349Testing: -drive file.filename=file:TEST_DIR/t.qcow2
e4342ce5 350QEMU_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
355wrote 4096/4096 bytes at offset 0
3564 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
289f3eba 357Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
f32f988c 358QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 359(qemu) qemu-io drive0 "write -P 0x22 0 4k"
f32f988c
KW
360wrote 4096/4096 bytes at offset 0
3614 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 362(qemu) quit
f32f988c 363
289f3eba 364Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
f32f988c 365QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 366(qemu) qemu-io drive0 "write -P 0x22 0 4k"
f32f988c
KW
367wrote 4096/4096 bytes at offset 0
3684 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 369(qemu) quit
f32f988c 370
289f3eba 371Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
f32f988c 372QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 373(qemu) qemu-io drive0 "write -P 0x22 0 4k"
f32f988c
KW
374wrote 4096/4096 bytes at offset 0
3754 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 376(qemu) quit
f32f988c 377
289f3eba 378Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
f32f988c 379QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 380(qemu) qemu-io drive0 "write -P 0x22 0 4k"
b998875d
KW
381wrote 4096/4096 bytes at offset 0
3824 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 383(qemu) quit
b998875d 384
289f3eba 385Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
b998875d 386QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 387(qemu) qemu-io drive0 "write -P 0x22 0 4k"
b998875d
KW
388wrote 4096/4096 bytes at offset 0
3894 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 390(qemu) quit
b998875d 391
289f3eba 392Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
b998875d 393QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 394(qemu) qemu-io drive0 "write -P 0x22 0 4k"
b998875d
KW
395wrote 4096/4096 bytes at offset 0
3964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 397(qemu) quit
b998875d 398
289f3eba 399Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
b998875d 400QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 401(qemu) qemu-io drive0 "write -P 0x22 0 4k"
b998875d
KW
402wrote 4096/4096 bytes at offset 0
4034 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 404(qemu) quit
b998875d 405
289f3eba 406Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
b998875d 407QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 408(qemu) qemu-io drive0 "write -P 0x22 0 4k"
f32f988c
KW
409wrote 4096/4096 bytes at offset 0
4104 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 411(qemu) quit
f32f988c
KW
412
413read 4096/4096 bytes at offset 0
4144 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
289f3eba 415Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
f32f988c 416QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 417(qemu) qemu-io drive0 "write -P 0x22 0 4k"
f32f988c
KW
418wrote 4096/4096 bytes at offset 0
4194 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69404d9e 420(qemu) quit
f32f988c 421
b1e6fc08
KW
422read 4096/4096 bytes at offset 0
4234 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
289f3eba 424Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
b1e6fc08 425QEMU X.Y.Z monitor - type 'help' for more information
69404d9e 426(qemu) qemu-io drive0 "write -P 0x33 0 4k"
b1e6fc08
KW
427wrote 4096/4096 bytes at offset 0
4284 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
432read 4096/4096 bytes at offset 0
4334 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
47e5df21 434*** done