xref: /openbmc/qemu/tests/qemu-iotests/051.pc.out (revision ac2ae233)
1289f3ebaSBo TuQA output created by 051
2289f3ebaSBo TuFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
3b66ff2c2SEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
4289f3ebaSBo Tu
5289f3ebaSBo Tu=== Unknown option ===
6289f3ebaSBo Tu
7dd87de06SBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
8d0e46a55SMax ReitzQEMU_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'
9289f3ebaSBo Tu
10dd87de06SBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
11d0e46a55SMax ReitzQEMU_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'
12289f3ebaSBo Tu
13dd87de06SBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
14d0e46a55SMax ReitzQEMU_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'
15289f3ebaSBo Tu
16dd87de06SBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
17d0e46a55SMax ReitzQEMU_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'
18289f3ebaSBo Tu
19289f3ebaSBo Tu
20289f3ebaSBo Tu=== Unknown protocol option ===
21289f3ebaSBo Tu
22289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'
24289f3ebaSBo Tu
25289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
26289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'
27289f3ebaSBo Tu
28289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
29289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'
30289f3ebaSBo Tu
31289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
32289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'
33289f3ebaSBo Tu
34289f3ebaSBo Tu
35289f3ebaSBo Tu=== Invalid format ===
36289f3ebaSBo Tu
37289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=foo
38289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
39289f3ebaSBo Tu
40289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,driver=foo
41289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
42289f3ebaSBo Tu
43289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
44289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'
45289f3ebaSBo Tu
46289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
47289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
48289f3ebaSBo Tu
49289f3ebaSBo Tu
50824808ddSKevin Wolf=== Node names ===
51824808ddSKevin Wolf
52824808ddSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,node-name=x123456789012345678901234567890
53824808ddSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
54824808ddSKevin Wolf(qemu) quit
55824808ddSKevin Wolf
56824808ddSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901
57824808ddSKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901: Node name too long
58824808ddSKevin Wolf
59824808ddSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,node-name=All-Types.of_all0wed_chars
60824808ddSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
61824808ddSKevin Wolf(qemu) quit
62824808ddSKevin Wolf
63824808ddSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,node-name=123foo
64785ec4b1SConnor KuehlQEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=123foo: Invalid node-name: '123foo'
65824808ddSKevin Wolf
66824808ddSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,node-name=_foo
67785ec4b1SConnor KuehlQEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=_foo: Invalid node-name: '_foo'
68824808ddSKevin Wolf
69824808ddSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,node-name=foo#12
70785ec4b1SConnor KuehlQEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=foo#12: Invalid node-name: 'foo#12'
71824808ddSKevin Wolf
72824808ddSKevin Wolf
73289f3ebaSBo Tu=== Device without drive ===
74289f3ebaSBo Tu
7522329f0dSLaurent VivierTesting: -device virtio-scsi -device scsi-hd
76289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
776ee7c82dSPaolo BonziniQEMU_PROG: -device scsi-hd: drive property not set
78289f3ebaSBo Tu
79289f3ebaSBo Tu
80289f3ebaSBo Tu=== Overriding backing file ===
81289f3ebaSBo Tu
82dd87de06SBo TuTesting: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
83289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
8469404d9eSKevin Wolf(qemu) info block
8590993623SMax Reitzdrive0 (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)
86dd87de06SBo Tu    Removable device: not locked, tray closed
87289f3ebaSBo Tu    Cache mode:       writeback
88289f3ebaSBo Tu    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
8969404d9eSKevin Wolf(qemu) quit
90289f3ebaSBo Tu
91289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
92289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
93289f3ebaSBo Tu
94289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
95289f3ebaSBo TuQEMU_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
96289f3ebaSBo Tu
97289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
98289f3ebaSBo TuQEMU_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
99289f3ebaSBo Tu
100289f3ebaSBo Tu
101289f3ebaSBo Tu=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
102289f3ebaSBo Tu
1037e0db6f4SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
104289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
105289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
10669404d9eSKevin Wolf(qemu) quit
107289f3ebaSBo Tu
108289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
109289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
11069404d9eSKevin Wolf(qemu) quit
111289f3ebaSBo Tu
112289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
113289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
114289f3ebaSBo Tu
115289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
116289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
117289f3ebaSBo Tu
118289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
119289f3ebaSBo TuQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
120289f3ebaSBo Tu
121289f3ebaSBo Tu
122289f3ebaSBo Tu=== With version 2 images enabling lazy refcounts must fail ===
123289f3ebaSBo Tu
124289f3ebaSBo TuFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
125289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
126289f3ebaSBo TuQEMU_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
127289f3ebaSBo Tu
128289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
129289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
13069404d9eSKevin Wolf(qemu) quit
131289f3ebaSBo Tu
132289f3ebaSBo Tu
133289f3ebaSBo Tu=== No medium ===
134289f3ebaSBo Tu
135289f3ebaSBo TuTesting: -drive if=floppy
136289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
13769404d9eSKevin Wolf(qemu) quit
138289f3ebaSBo Tu
139289f3ebaSBo TuTesting: -drive if=ide,media=cdrom
140289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
14169404d9eSKevin Wolf(qemu) quit
142289f3ebaSBo Tu
143289f3ebaSBo TuTesting: -drive if=ide
144289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
1456ee7c82dSPaolo BonziniQEMU_PROG: Device needs media, but drive is empty
146289f3ebaSBo Tu
147dd87de06SBo TuTesting: -drive if=virtio
148dd87de06SBo TuQEMU X.Y.Z monitor - type 'help' for more information
1496ee7c82dSPaolo BonziniQEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
150dd87de06SBo Tu
151289f3ebaSBo TuTesting: -drive if=none,id=disk -device ide-cd,drive=disk
152289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
15369404d9eSKevin Wolf(qemu) quit
154289f3ebaSBo Tu
155289f3ebaSBo TuTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
156289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
15769404d9eSKevin Wolf(qemu) quit
158289f3ebaSBo Tu
159289f3ebaSBo TuTesting: -drive if=none,id=disk -device ide-hd,drive=disk
160289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
1616ee7c82dSPaolo BonziniQEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
162289f3ebaSBo Tu
163289f3ebaSBo TuTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
164289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
1656ee7c82dSPaolo BonziniQEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
166289f3ebaSBo Tu
167289f3ebaSBo Tu
1686c870535SKevin Wolf=== Attach to node in non-default iothread ===
1696c870535SKevin Wolf
1706c870535SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device ide-hd,drive=disk,share-rw=on
1716c870535SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
172*ac2ae233SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk,share-rw=on: Cannot change iothread of active block backend
1736c870535SKevin Wolf
1746c870535SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-blk-pci,drive=disk,share-rw=on
1756c870535SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
176*ac2ae233SKevin Wolf(qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,share-rw=on: Cannot change iothread of active block backend
1776c870535SKevin Wolf
1786c870535SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device lsi53c895a,id=lsi0 -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on
1796c870535SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
1806c870535SKevin Wolf(qemu) QEMU_PROG: -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on: HBA does not support iothreads
1816c870535SKevin Wolf
1826c870535SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-scsi,id=virtio-scsi1 -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on
1836c870535SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
1846c870535SKevin Wolf(qemu) QEMU_PROG: -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on: Cannot change iothread of active block backend
1856c870535SKevin Wolf
186af6400afSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-blk-pci,drive=disk,iothread=thread0,share-rw=on
1876c870535SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
188*ac2ae233SKevin Wolf(qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,iothread=thread0,share-rw=on: Cannot change iothread of active block backend
1896c870535SKevin Wolf
1906c870535SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-scsi,id=virtio-scsi1,iothread=thread0 -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on
1916c870535SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
1926c870535SKevin Wolf(qemu) quit
1936c870535SKevin Wolf
1946c870535SKevin Wolf
195289f3ebaSBo Tu=== Read-only ===
196289f3ebaSBo Tu
197289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
198289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
19969404d9eSKevin Wolf(qemu) quit
200289f3ebaSBo Tu
201289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
202289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
20369404d9eSKevin Wolf(qemu) quit
204289f3ebaSBo Tu
205289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
206289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
2076ee7c82dSPaolo BonziniQEMU_PROG: Block node is read-only
208289f3ebaSBo Tu
209dd87de06SBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
210289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
21169404d9eSKevin Wolf(qemu) quit
212289f3ebaSBo Tu
213289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
214289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
21569404d9eSKevin Wolf(qemu) quit
216289f3ebaSBo Tu
217289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
218289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
21969404d9eSKevin Wolf(qemu) quit
220289f3ebaSBo Tu
221289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
222289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
2236ee7c82dSPaolo BonziniQEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
224289f3ebaSBo Tu
225289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
226289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
22769404d9eSKevin Wolf(qemu) quit
228289f3ebaSBo Tu
229289f3ebaSBo Tu
230289f3ebaSBo Tu=== Cache modes ===
231289f3ebaSBo Tu
232a6862418SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=none
233289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
23469404d9eSKevin Wolf(qemu) quit
235289f3ebaSBo Tu
236a6862418SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=directsync
237289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
23869404d9eSKevin Wolf(qemu) quit
239289f3ebaSBo Tu
240a6862418SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=writeback
241289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
24269404d9eSKevin Wolf(qemu) quit
243289f3ebaSBo Tu
244a6862418SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=writethrough
245289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
24669404d9eSKevin Wolf(qemu) quit
247289f3ebaSBo Tu
248a6862418SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=unsafe
249289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
25069404d9eSKevin Wolf(qemu) quit
251289f3ebaSBo Tu
252289f3ebaSBo TuTesting: -drive driver=null-co,cache=invalid_value
253289f3ebaSBo TuQEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
254289f3ebaSBo Tu
25561de4c68SKevin WolfTesting: -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
256289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
25769404d9eSKevin Wolf(qemu) info block
25890993623SMax Reitzdrive0 (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)
259dd87de06SBo Tu    Removable device: not locked, tray closed
260289f3ebaSBo Tu    Cache mode:       writeback
261289f3ebaSBo Tu    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
26269404d9eSKevin Wolf(qemu) info block file
263289f3ebaSBo Tu
264289f3ebaSBo Tufile: TEST_DIR/t.qcow2 (file)
265289f3ebaSBo Tu    Cache mode:       writeback
26669404d9eSKevin Wolf(qemu) info block backing
267289f3ebaSBo Tubacking: TEST_DIR/t.qcow2.base (qcow2, read-only)
268289f3ebaSBo Tu    Cache mode:       writeback, ignore flushes
26969404d9eSKevin Wolf(qemu) info block backing-file
270289f3ebaSBo Tu
271289f3ebaSBo Tubacking-file: TEST_DIR/t.qcow2.base (file, read-only)
272289f3ebaSBo Tu    Cache mode:       writeback, ignore flushes
27369404d9eSKevin Wolf(qemu) quit
274289f3ebaSBo Tu
27561de4c68SKevin WolfTesting: -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
276289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
27769404d9eSKevin Wolf(qemu) info block
27890993623SMax Reitzdrive0 (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)
279dd87de06SBo Tu    Removable device: not locked, tray closed
280289f3ebaSBo Tu    Cache mode:       writethrough
281289f3ebaSBo Tu    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
28269404d9eSKevin Wolf(qemu) info block file
283289f3ebaSBo Tu
284289f3ebaSBo Tufile: TEST_DIR/t.qcow2 (file)
285289f3ebaSBo Tu    Cache mode:       writeback
28669404d9eSKevin Wolf(qemu) info block backing
287289f3ebaSBo Tubacking: TEST_DIR/t.qcow2.base (qcow2, read-only)
288289f3ebaSBo Tu    Cache mode:       writeback, ignore flushes
28969404d9eSKevin Wolf(qemu) info block backing-file
290289f3ebaSBo Tu
291289f3ebaSBo Tubacking-file: TEST_DIR/t.qcow2.base (file, read-only)
292289f3ebaSBo Tu    Cache mode:       writeback, ignore flushes
29369404d9eSKevin Wolf(qemu) quit
294289f3ebaSBo Tu
29561de4c68SKevin WolfTesting: -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
296289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
29769404d9eSKevin Wolf(qemu) info block
29890993623SMax Reitzdrive0 (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)
299dd87de06SBo Tu    Removable device: not locked, tray closed
300289f3ebaSBo Tu    Cache mode:       writeback, ignore flushes
301289f3ebaSBo Tu    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
30269404d9eSKevin Wolf(qemu) info block file
303289f3ebaSBo Tu
304289f3ebaSBo Tufile: TEST_DIR/t.qcow2 (file)
305289f3ebaSBo Tu    Cache mode:       writeback, ignore flushes
30669404d9eSKevin Wolf(qemu) info block backing
307289f3ebaSBo Tubacking: TEST_DIR/t.qcow2.base (qcow2, read-only)
308289f3ebaSBo Tu    Cache mode:       writeback, ignore flushes
30969404d9eSKevin Wolf(qemu) info block backing-file
310289f3ebaSBo Tu
311289f3ebaSBo Tubacking-file: TEST_DIR/t.qcow2.base (file, read-only)
312289f3ebaSBo Tu    Cache mode:       writeback, ignore flushes
31369404d9eSKevin Wolf(qemu) quit
314289f3ebaSBo Tu
31561de4c68SKevin WolfTesting: -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
31661de4c68SKevin WolfQEMU_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
317289f3ebaSBo Tu
318289f3ebaSBo Tu
319289f3ebaSBo Tu=== Specifying the protocol layer ===
320289f3ebaSBo Tu
321289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,file.driver=file
322289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
32369404d9eSKevin Wolf(qemu) quit
324289f3ebaSBo Tu
325289f3ebaSBo Tu
326289f3ebaSBo Tu=== Leaving out required options ===
327289f3ebaSBo Tu
328289f3ebaSBo TuTesting: -drive driver=file
329289f3ebaSBo TuQEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
330289f3ebaSBo Tu
33142dc10f1SMax ReitzTesting: -drive driver=file,filename=
33242dc10f1SMax ReitzQEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
33342dc10f1SMax Reitz
334289f3ebaSBo TuTesting: -drive driver=nbd
335491d6c7cSMax ReitzQEMU_PROG: -drive driver=nbd: NBD server address missing
336289f3ebaSBo Tu
337289f3ebaSBo TuTesting: -drive driver=raw
3384e4bf5c4SKevin WolfQEMU_PROG: -drive driver=raw: A block device must be specified for "file"
339289f3ebaSBo Tu
340289f3ebaSBo TuTesting: -drive file.driver=file
341289f3ebaSBo TuQEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
342289f3ebaSBo Tu
343289f3ebaSBo TuTesting: -drive file.driver=nbd
344491d6c7cSMax ReitzQEMU_PROG: -drive file.driver=nbd: NBD server address missing
345289f3ebaSBo Tu
346289f3ebaSBo TuTesting: -drive file.driver=raw
3474e4bf5c4SKevin WolfQEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
348289f3ebaSBo Tu
349289f3ebaSBo TuTesting: -drive foo=bar
350289f3ebaSBo TuQEMU_PROG: -drive foo=bar: Must specify either driver or file
351289f3ebaSBo Tu
352289f3ebaSBo Tu
353289f3ebaSBo Tu=== Specifying both an option and its legacy alias ===
354289f3ebaSBo Tu
355289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
356289f3ebaSBo TuQEMU_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
357289f3ebaSBo Tu
358289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
359289f3ebaSBo TuQEMU_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
360289f3ebaSBo Tu
361289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
362289f3ebaSBo TuQEMU_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
363289f3ebaSBo Tu
364289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
365289f3ebaSBo TuQEMU_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
366289f3ebaSBo Tu
367289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
368289f3ebaSBo TuQEMU_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
369289f3ebaSBo Tu
370289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
371289f3ebaSBo TuQEMU_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
372289f3ebaSBo Tu
373289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
374289f3ebaSBo TuQEMU_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
375289f3ebaSBo Tu
376289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
377289f3ebaSBo TuQEMU_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
378289f3ebaSBo Tu
379289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
380289f3ebaSBo TuQEMU_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
381289f3ebaSBo Tu
382289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
383289f3ebaSBo TuQEMU_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
384289f3ebaSBo Tu
385289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
386289f3ebaSBo TuQEMU_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
387289f3ebaSBo Tu
388289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
389289f3ebaSBo TuQEMU_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
390289f3ebaSBo Tu
391289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
392289f3ebaSBo TuQEMU_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
393289f3ebaSBo Tu
394289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
395289f3ebaSBo TuQEMU_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
396289f3ebaSBo Tu
397289f3ebaSBo Tu
398e9b15550SFam Zheng=== Catching negative/large throttling values ===
399e9b15550SFam Zheng
400e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,iops=-1
401e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
402e9b15550SFam Zheng
403e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=-2
404e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
405e9b15550SFam Zheng
406e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
407e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
408e9b15550SFam Zheng
409e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
410e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
411e9b15550SFam Zheng
412e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
413e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
414e9b15550SFam Zheng
415e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
416e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
417e9b15550SFam Zheng
418e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=0
419e9b15550SFam ZhengQEMU X.Y.Z monitor - type 'help' for more information
42069404d9eSKevin Wolf(qemu) quit
421e9b15550SFam Zheng
422e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=1
423e9b15550SFam ZhengQEMU X.Y.Z monitor - type 'help' for more information
42469404d9eSKevin Wolf(qemu) quit
425e9b15550SFam Zheng
426e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
427e9b15550SFam ZhengQEMU X.Y.Z monitor - type 'help' for more information
42869404d9eSKevin Wolf(qemu) quit
429e9b15550SFam Zheng
430e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
431e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
432e9b15550SFam Zheng
433e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
434e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
435e9b15550SFam Zheng
436e9b15550SFam Zheng
437289f3ebaSBo Tu=== Parsing protocol from file name ===
438289f3ebaSBo Tu
439289f3ebaSBo TuTesting: -hda foo:bar
440289f3ebaSBo TuQEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
441289f3ebaSBo Tu
442289f3ebaSBo TuTesting: -drive file=foo:bar
443289f3ebaSBo TuQEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
444289f3ebaSBo Tu
445289f3ebaSBo TuTesting: -drive file.filename=foo:bar
446289f3ebaSBo TuQEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
447289f3ebaSBo Tu
448289f3ebaSBo TuTesting: -hda file:TEST_DIR/t.qcow2
449289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
45069404d9eSKevin Wolf(qemu) quit
451289f3ebaSBo Tu
452289f3ebaSBo TuTesting: -drive file=file:TEST_DIR/t.qcow2
453289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
45469404d9eSKevin Wolf(qemu) quit
455289f3ebaSBo Tu
456289f3ebaSBo TuTesting: -drive file.filename=file:TEST_DIR/t.qcow2
457289f3ebaSBo TuQEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
458289f3ebaSBo Tu
459289f3ebaSBo Tu
460289f3ebaSBo Tu=== Snapshot mode ===
461289f3ebaSBo Tu
462289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
463289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
464289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
465289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
46669404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
467289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
468289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
46969404d9eSKevin Wolf(qemu) quit
470289f3ebaSBo Tu
471289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
472289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
47369404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
474289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
475289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
47669404d9eSKevin Wolf(qemu) quit
477289f3ebaSBo Tu
478289f3ebaSBo TuTesting: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
479289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
48069404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
481289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
482289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
48369404d9eSKevin Wolf(qemu) quit
484289f3ebaSBo Tu
485289f3ebaSBo TuTesting: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
486289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
48769404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
488289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
489289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
49069404d9eSKevin Wolf(qemu) quit
491289f3ebaSBo Tu
492289f3ebaSBo TuTesting: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
493289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
49469404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
495289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
496289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
49769404d9eSKevin Wolf(qemu) quit
498289f3ebaSBo Tu
499289f3ebaSBo TuTesting: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
500289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
50169404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
502289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
503289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
50469404d9eSKevin Wolf(qemu) quit
505289f3ebaSBo Tu
506289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
507289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
50869404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
509289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
510289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
51169404d9eSKevin Wolf(qemu) quit
512289f3ebaSBo Tu
513289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
514289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
51569404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
516289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
517289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
51869404d9eSKevin Wolf(qemu) quit
519289f3ebaSBo Tu
520289f3ebaSBo Turead 4096/4096 bytes at offset 0
521289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
522289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
523289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
52469404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
525289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
526289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
52769404d9eSKevin Wolf(qemu) quit
528289f3ebaSBo Tu
529289f3ebaSBo Turead 4096/4096 bytes at offset 0
530289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
531289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
532289f3ebaSBo TuQEMU X.Y.Z monitor - type 'help' for more information
53369404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x33 0 4k"
534289f3ebaSBo Tuwrote 4096/4096 bytes at offset 0
535289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
53669404d9eSKevin Wolf(qemu) commit drive0
53769404d9eSKevin Wolf(qemu) quit
538289f3ebaSBo Tu
539289f3ebaSBo Turead 4096/4096 bytes at offset 0
540289f3ebaSBo Tu4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
5416a7014efSAlberto GarciaTesting: -drive driver=null-co,snapshot=on
54269fbfff9SBin MengQEMU_PROG: -drive driver=null-co,snapshot=on: Could not open temporary file SNAPSHOT_PATH: No such file or directory
5436a7014efSAlberto Garcia
54430855137SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0
54530855137SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
54630855137SKevin Wolf(qemu) info block
54730855137SKevin Wolfdrive0 (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)
54830855137SKevin Wolf    Removable device: not locked, tray closed
54930855137SKevin Wolf    Cache mode:       writeback, ignore flushes
55030855137SKevin Wolf    Backing file:     TEST_DIR/t.qcow2 (chain depth: 1)
55130855137SKevin Wolf(qemu) quit
55230855137SKevin Wolf
553289f3ebaSBo Tu*** done
554