xref: /qemu/tests/qemu-iotests/051.out (revision 6ee7c82d)
147e5df21SKevin WolfQA output created by 051
247e5df21SKevin WolfFormatting '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
447e5df21SKevin Wolf
547e5df21SKevin Wolf=== Unknown option ===
647e5df21SKevin Wolf
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'
947e5df21SKevin Wolf
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'
1247e5df21SKevin Wolf
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'
1547e5df21SKevin Wolf
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'
1847e5df21SKevin Wolf
1947e5df21SKevin Wolf
20eb909c7fSKevin Wolf=== Unknown protocol option ===
21eb909c7fSKevin Wolf
22eb909c7fSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'
24eb909c7fSKevin Wolf
25eb909c7fSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
26e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'
27eb909c7fSKevin Wolf
28eb909c7fSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
29e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'
30eb909c7fSKevin Wolf
31eb909c7fSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
32e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'
33eb909c7fSKevin Wolf
34eb909c7fSKevin Wolf
3506d22aa3SKevin Wolf=== Invalid format ===
3606d22aa3SKevin Wolf
3706d22aa3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=foo
38e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
3906d22aa3SKevin Wolf
4006d22aa3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,driver=foo
41e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
4217b005f1SKevin Wolf
4317b005f1SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
44e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'
4506d22aa3SKevin Wolf
4680495fdfSMax ReitzTesting: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
47e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
4880495fdfSMax Reitz
4906d22aa3SKevin Wolf
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
64c00316e9SConnor 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
67c00316e9SConnor 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
70c00316e9SConnor KuehlQEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=foo#12: Invalid node-name: 'foo#12'
71824808ddSKevin Wolf
72824808ddSKevin Wolf
73354483e5SChristian Borntraeger=== Device without drive ===
74354483e5SChristian Borntraeger
7522329f0dSLaurent VivierTesting: -device virtio-scsi -device scsi-hd
76354483e5SChristian BorntraegerQEMU X.Y.Z monitor - type 'help' for more information
776ee7c82dSPaolo BonziniQEMU_PROG: -device scsi-hd: drive property not set
78354483e5SChristian Borntraeger
79354483e5SChristian Borntraeger
804db9c980SFam Zheng=== Overriding backing file ===
814db9c980SFam Zheng
82dd87de06SBo TuTesting: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
834db9c980SFam ZhengQEMU 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
879e193c5aSKevin Wolf    Cache mode:       writeback
884db9c980SFam Zheng    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
8969404d9eSKevin Wolf(qemu) quit
904db9c980SFam Zheng
918ee79e70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
92e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
938ee79e70SKevin Wolf
948ee79e70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
95e4342ce5SMax ReitzQEMU_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
968ee79e70SKevin Wolf
978ee79e70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
98e4342ce5SMax ReitzQEMU_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
998ee79e70SKevin Wolf
1004db9c980SFam Zheng
10147e5df21SKevin Wolf=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
10247e5df21SKevin Wolf
1037e0db6f4SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
10464aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
1059580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
10669404d9eSKevin Wolf(qemu) quit
10747e5df21SKevin Wolf
10864aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
1099580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
11069404d9eSKevin Wolf(qemu) quit
11147e5df21SKevin Wolf
11264aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
113e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
11447e5df21SKevin Wolf
11564aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
116e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
11747e5df21SKevin Wolf
11864aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
119e4342ce5SMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
12047e5df21SKevin Wolf
12147e5df21SKevin Wolf
12247e5df21SKevin Wolf=== With version 2 images enabling lazy refcounts must fail ===
12347e5df21SKevin Wolf
12447e5df21SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
12564aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
126e4342ce5SMax ReitzQEMU_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
12747e5df21SKevin Wolf
12864aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
1299580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
13069404d9eSKevin Wolf(qemu) quit
13147e5df21SKevin Wolf
13247e5df21SKevin Wolf
13347e5df21SKevin Wolf=== No medium ===
13447e5df21SKevin Wolf
13547e5df21SKevin WolfTesting: -drive if=virtio
1369580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1376ee7c82dSPaolo BonziniQEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
13847e5df21SKevin Wolf
13947e5df21SKevin Wolf
1406c870535SKevin Wolf=== Attach to node in non-default iothread ===
1416c870535SKevin Wolf
1426c870535SKevin Wolf
14347e5df21SKevin Wolf=== Read-only ===
14447e5df21SKevin Wolf
14547e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
1469580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
14769404d9eSKevin Wolf(qemu) quit
14847e5df21SKevin Wolf
14947e5df21SKevin Wolf
15047e5df21SKevin Wolf=== Cache modes ===
15147e5df21SKevin Wolf
152251071e0SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=none
1539580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
15469404d9eSKevin Wolf(qemu) quit
15547e5df21SKevin Wolf
156251071e0SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=directsync
1579580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
15869404d9eSKevin Wolf(qemu) quit
15947e5df21SKevin Wolf
160251071e0SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=writeback
1619580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
16269404d9eSKevin Wolf(qemu) quit
16347e5df21SKevin Wolf
164251071e0SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=writethrough
1659580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
16669404d9eSKevin Wolf(qemu) quit
16747e5df21SKevin Wolf
168251071e0SAndrey ShinkevichTesting: -drive driver=null-co,read-zeroes=on,cache=unsafe
1699580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
17069404d9eSKevin Wolf(qemu) quit
17147e5df21SKevin Wolf
172fc17c259SKevin WolfTesting: -drive driver=null-co,cache=invalid_value
173fc17c259SKevin WolfQEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
17447e5df21SKevin Wolf
1751759386bSSascha SilbeTesting: -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
176768ee459SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
17769404d9eSKevin Wolf(qemu) info block
17890993623SMax 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)
179dd87de06SBo Tu    Removable device: not locked, tray closed
180768ee459SKevin Wolf    Cache mode:       writeback
181768ee459SKevin Wolf    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
18269404d9eSKevin Wolf(qemu) info block file
183768ee459SKevin Wolf
184768ee459SKevin Wolffile: TEST_DIR/t.qcow2 (file)
185768ee459SKevin Wolf    Cache mode:       writeback
18669404d9eSKevin Wolf(qemu) info block backing
187768ee459SKevin Wolfbacking: TEST_DIR/t.qcow2.base (qcow2, read-only)
188768ee459SKevin Wolf    Cache mode:       writeback, ignore flushes
18969404d9eSKevin Wolf(qemu) info block backing-file
190768ee459SKevin Wolf
191768ee459SKevin Wolfbacking-file: TEST_DIR/t.qcow2.base (file, read-only)
192768ee459SKevin Wolf    Cache mode:       writeback, ignore flushes
19369404d9eSKevin Wolf(qemu) quit
194768ee459SKevin Wolf
1951759386bSSascha SilbeTesting: -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
196768ee459SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
19769404d9eSKevin Wolf(qemu) info block
19890993623SMax 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)
199dd87de06SBo Tu    Removable device: not locked, tray closed
200768ee459SKevin Wolf    Cache mode:       writethrough
201768ee459SKevin Wolf    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
20269404d9eSKevin Wolf(qemu) info block file
203768ee459SKevin Wolf
204768ee459SKevin Wolffile: TEST_DIR/t.qcow2 (file)
205768ee459SKevin Wolf    Cache mode:       writeback
20669404d9eSKevin Wolf(qemu) info block backing
207768ee459SKevin Wolfbacking: TEST_DIR/t.qcow2.base (qcow2, read-only)
208768ee459SKevin Wolf    Cache mode:       writeback, ignore flushes
20969404d9eSKevin Wolf(qemu) info block backing-file
210768ee459SKevin Wolf
211768ee459SKevin Wolfbacking-file: TEST_DIR/t.qcow2.base (file, read-only)
212768ee459SKevin Wolf    Cache mode:       writeback, ignore flushes
21369404d9eSKevin Wolf(qemu) quit
214768ee459SKevin Wolf
2151759386bSSascha SilbeTesting: -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
216768ee459SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
21769404d9eSKevin Wolf(qemu) info block
21890993623SMax 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)
219dd87de06SBo Tu    Removable device: not locked, tray closed
220768ee459SKevin Wolf    Cache mode:       writeback, ignore flushes
221768ee459SKevin Wolf    Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
22269404d9eSKevin Wolf(qemu) info block file
223768ee459SKevin Wolf
224768ee459SKevin Wolffile: TEST_DIR/t.qcow2 (file)
225768ee459SKevin Wolf    Cache mode:       writeback, ignore flushes
22669404d9eSKevin Wolf(qemu) info block backing
227768ee459SKevin Wolfbacking: TEST_DIR/t.qcow2.base (qcow2, read-only)
228768ee459SKevin Wolf    Cache mode:       writeback, ignore flushes
22969404d9eSKevin Wolf(qemu) info block backing-file
230768ee459SKevin Wolf
231768ee459SKevin Wolfbacking-file: TEST_DIR/t.qcow2.base (file, read-only)
232768ee459SKevin Wolf    Cache mode:       writeback, ignore flushes
23369404d9eSKevin Wolf(qemu) quit
234768ee459SKevin Wolf
2351759386bSSascha SilbeTesting: -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
2361759386bSSascha SilbeQEMU_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
237768ee459SKevin Wolf
2382af5ef70SKevin Wolf
2392af5ef70SKevin Wolf=== Specifying the protocol layer ===
2402af5ef70SKevin Wolf
2412af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=file
2429580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
24369404d9eSKevin Wolf(qemu) quit
2442af5ef70SKevin Wolf
24598289620SKevin Wolf
246765003dbSKevin Wolf=== Leaving out required options ===
247765003dbSKevin Wolf
248765003dbSKevin WolfTesting: -drive driver=file
249e4342ce5SMax ReitzQEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
250765003dbSKevin Wolf
25142dc10f1SMax ReitzTesting: -drive driver=file,filename=
25242dc10f1SMax ReitzQEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
25342dc10f1SMax Reitz
254765003dbSKevin WolfTesting: -drive driver=nbd
255491d6c7cSMax ReitzQEMU_PROG: -drive driver=nbd: NBD server address missing
256765003dbSKevin Wolf
257765003dbSKevin WolfTesting: -drive driver=raw
2584e4bf5c4SKevin WolfQEMU_PROG: -drive driver=raw: A block device must be specified for "file"
259765003dbSKevin Wolf
260765003dbSKevin WolfTesting: -drive file.driver=file
261e4342ce5SMax ReitzQEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
262765003dbSKevin Wolf
263765003dbSKevin WolfTesting: -drive file.driver=nbd
264491d6c7cSMax ReitzQEMU_PROG: -drive file.driver=nbd: NBD server address missing
265765003dbSKevin Wolf
266765003dbSKevin WolfTesting: -drive file.driver=raw
2674e4bf5c4SKevin WolfQEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
268765003dbSKevin Wolf
269765003dbSKevin WolfTesting: -drive foo=bar
270e4342ce5SMax ReitzQEMU_PROG: -drive foo=bar: Must specify either driver or file
271765003dbSKevin Wolf
272765003dbSKevin Wolf
2735abbf0eeSKevin Wolf=== Specifying both an option and its legacy alias ===
2745abbf0eeSKevin Wolf
2755abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
2765abbf0eeSKevin WolfQEMU_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
2775abbf0eeSKevin Wolf
2785abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
2795abbf0eeSKevin WolfQEMU_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
2805abbf0eeSKevin Wolf
2815abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
2825abbf0eeSKevin WolfQEMU_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
2835abbf0eeSKevin Wolf
2845abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
2855abbf0eeSKevin WolfQEMU_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
2865abbf0eeSKevin Wolf
2875abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
2885abbf0eeSKevin WolfQEMU_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
2895abbf0eeSKevin Wolf
2905abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
2915abbf0eeSKevin WolfQEMU_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
2925abbf0eeSKevin Wolf
2935abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
2945abbf0eeSKevin WolfQEMU_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
2955abbf0eeSKevin Wolf
2965abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
2975abbf0eeSKevin WolfQEMU_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
2985abbf0eeSKevin Wolf
2995abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
3005abbf0eeSKevin WolfQEMU_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
3015abbf0eeSKevin Wolf
3025abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
3035abbf0eeSKevin WolfQEMU_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
3045abbf0eeSKevin Wolf
3055abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
3065abbf0eeSKevin WolfQEMU_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
3075abbf0eeSKevin Wolf
3085abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
3095abbf0eeSKevin WolfQEMU_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
3105abbf0eeSKevin Wolf
3115abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
3125abbf0eeSKevin WolfQEMU_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
3135abbf0eeSKevin Wolf
3145abbf0eeSKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
3155abbf0eeSKevin WolfQEMU_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
3165abbf0eeSKevin Wolf
3175abbf0eeSKevin Wolf
318e9b15550SFam Zheng=== Catching negative/large throttling values ===
319e9b15550SFam Zheng
320e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,iops=-1
321e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
322e9b15550SFam Zheng
323e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=-2
324e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
325e9b15550SFam Zheng
326e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
327e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
328e9b15550SFam Zheng
329e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
330e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
331e9b15550SFam Zheng
332e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
333e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
334e9b15550SFam Zheng
335e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
336e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
337e9b15550SFam Zheng
338e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=0
339e9b15550SFam ZhengQEMU X.Y.Z monitor - type 'help' for more information
34069404d9eSKevin Wolf(qemu) quit
341e9b15550SFam Zheng
342e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=1
343e9b15550SFam ZhengQEMU X.Y.Z monitor - type 'help' for more information
34469404d9eSKevin Wolf(qemu) quit
345e9b15550SFam Zheng
346e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
347e9b15550SFam ZhengQEMU X.Y.Z monitor - type 'help' for more information
34869404d9eSKevin Wolf(qemu) quit
349e9b15550SFam Zheng
350e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
351e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
352e9b15550SFam Zheng
353e9b15550SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
354e9b15550SFam ZhengQEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
355e9b15550SFam Zheng
356e9b15550SFam Zheng
35798289620SKevin Wolf=== Parsing protocol from file name ===
35898289620SKevin Wolf
35998289620SKevin WolfTesting: -hda foo:bar
360e4342ce5SMax ReitzQEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
36198289620SKevin Wolf
36298289620SKevin WolfTesting: -drive file=foo:bar
363e4342ce5SMax ReitzQEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
36498289620SKevin Wolf
36598289620SKevin WolfTesting: -drive file.filename=foo:bar
366e4342ce5SMax ReitzQEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
36798289620SKevin Wolf
368e3fa4bfaSKevin WolfTesting: -hda file:TEST_DIR/t.qcow2
369e3fa4bfaSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
37069404d9eSKevin Wolf(qemu) quit
371e3fa4bfaSKevin Wolf
372e3fa4bfaSKevin WolfTesting: -drive file=file:TEST_DIR/t.qcow2
373e3fa4bfaSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
37469404d9eSKevin Wolf(qemu) quit
375e3fa4bfaSKevin Wolf
376e3fa4bfaSKevin WolfTesting: -drive file.filename=file:TEST_DIR/t.qcow2
377e4342ce5SMax ReitzQEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
378e3fa4bfaSKevin Wolf
379f32f988cSKevin Wolf
380f32f988cSKevin Wolf=== Snapshot mode ===
381f32f988cSKevin Wolf
382f32f988cSKevin Wolfwrote 4096/4096 bytes at offset 0
383f32f988cSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
384289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
385f32f988cSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
38669404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
387f32f988cSKevin Wolfwrote 4096/4096 bytes at offset 0
388f32f988cSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
38969404d9eSKevin Wolf(qemu) quit
390f32f988cSKevin Wolf
391289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
392f32f988cSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
39369404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
394f32f988cSKevin Wolfwrote 4096/4096 bytes at offset 0
395f32f988cSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
39669404d9eSKevin Wolf(qemu) quit
397f32f988cSKevin Wolf
398289f3ebaSBo TuTesting: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
399f32f988cSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
40069404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
401f32f988cSKevin Wolfwrote 4096/4096 bytes at offset 0
402f32f988cSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
40369404d9eSKevin Wolf(qemu) quit
404f32f988cSKevin Wolf
405289f3ebaSBo TuTesting: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
406f32f988cSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
40769404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
408f32f988cSKevin Wolfwrote 4096/4096 bytes at offset 0
409f32f988cSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
41069404d9eSKevin Wolf(qemu) quit
411f32f988cSKevin Wolf
412289f3ebaSBo TuTesting: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
413b998875dSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
41469404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
415b998875dSKevin Wolfwrote 4096/4096 bytes at offset 0
416b998875dSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
41769404d9eSKevin Wolf(qemu) quit
418b998875dSKevin Wolf
419289f3ebaSBo TuTesting: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
420b998875dSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
42169404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
422b998875dSKevin Wolfwrote 4096/4096 bytes at offset 0
423b998875dSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
42469404d9eSKevin Wolf(qemu) quit
425b998875dSKevin Wolf
426289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
427b998875dSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
42869404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
429b998875dSKevin Wolfwrote 4096/4096 bytes at offset 0
430b998875dSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
43169404d9eSKevin Wolf(qemu) quit
432b998875dSKevin Wolf
433289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
434b998875dSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
43569404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
436b998875dSKevin Wolfwrote 4096/4096 bytes at offset 0
437b998875dSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
43869404d9eSKevin Wolf(qemu) quit
439b998875dSKevin Wolf
440f32f988cSKevin Wolfread 4096/4096 bytes at offset 0
441f32f988cSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
442289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
443f32f988cSKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
44469404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x22 0 4k"
445f32f988cSKevin Wolfwrote 4096/4096 bytes at offset 0
446f32f988cSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
44769404d9eSKevin Wolf(qemu) quit
448f32f988cSKevin Wolf
449f32f988cSKevin Wolfread 4096/4096 bytes at offset 0
450f32f988cSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
451289f3ebaSBo TuTesting: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
452b1e6fc08SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
45369404d9eSKevin Wolf(qemu) qemu-io drive0 "write -P 0x33 0 4k"
454b1e6fc08SKevin Wolfwrote 4096/4096 bytes at offset 0
455b1e6fc08SKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
45669404d9eSKevin Wolf(qemu) commit drive0
45769404d9eSKevin Wolf(qemu) quit
458b1e6fc08SKevin Wolf
459b1e6fc08SKevin Wolfread 4096/4096 bytes at offset 0
460b1e6fc08SKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
4616a7014efSAlberto GarciaTesting: -drive driver=null-co,snapshot=on
46269fbfff9SBin MengQEMU_PROG: -drive driver=null-co,snapshot=on: Could not open temporary file SNAPSHOT_PATH: No such file or directory
4636a7014efSAlberto Garcia
46430855137SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0
46530855137SKevin WolfQEMU X.Y.Z monitor - type 'help' for more information
46630855137SKevin Wolf(qemu) info block
46730855137SKevin 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)
46830855137SKevin Wolf    Removable device: not locked, tray closed
46930855137SKevin Wolf    Cache mode:       writeback, ignore flushes
47030855137SKevin Wolf    Backing file:     TEST_DIR/t.qcow2 (chain depth: 1)
47130855137SKevin Wolf(qemu) quit
47230855137SKevin Wolf
47347e5df21SKevin Wolf*** done
474