xref: /qemu/tests/qemu-iotests/051.out (revision 0f227a947004aa9043d4386f4a47d6739499b88f)
147e5df21SKevin WolfQA output created by 051
247e5df21SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
347e5df21SKevin Wolf
447e5df21SKevin Wolf=== Unknown option ===
547e5df21SKevin Wolf
647e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=
7c09b437bSStefan HajnocziQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
8c09b437bSStefan HajnocziQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: could not open disk image TEST_DIR/t.qcow2: Invalid argument
947e5df21SKevin Wolf
1047e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
11c09b437bSStefan HajnocziQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
12c09b437bSStefan HajnocziQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: could not open disk image TEST_DIR/t.qcow2: Invalid argument
1347e5df21SKevin Wolf
1447e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
15c09b437bSStefan HajnocziQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
16c09b437bSStefan HajnocziQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: could not open disk image TEST_DIR/t.qcow2: Invalid argument
1747e5df21SKevin Wolf
1847e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
19c09b437bSStefan HajnocziQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
20c09b437bSStefan HajnocziQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: could not open disk image TEST_DIR/t.qcow2: Invalid argument
2147e5df21SKevin Wolf
2247e5df21SKevin Wolf
2347e5df21SKevin Wolf=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
2447e5df21SKevin Wolf
2564aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
267a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
277a370406SKevin Wolf(qemu) qququiquit
2847e5df21SKevin Wolf
2964aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
307a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
317a370406SKevin Wolf(qemu) qququiquit
3247e5df21SKevin Wolf
3364aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
3464aa99d3SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
3564aa99d3SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: could not open disk image TEST_DIR/t.qcow2: Invalid argument
3647e5df21SKevin Wolf
3764aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
3864aa99d3SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
3964aa99d3SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: could not open disk image TEST_DIR/t.qcow2: Invalid argument
4047e5df21SKevin Wolf
4164aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
4264aa99d3SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
4364aa99d3SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: could not open disk image TEST_DIR/t.qcow2: Invalid argument
4447e5df21SKevin Wolf
4547e5df21SKevin Wolf
4647e5df21SKevin Wolf=== With version 2 images enabling lazy refcounts must fail ===
4747e5df21SKevin Wolf
4847e5df21SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
4964aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
5064aa99d3SKevin WolfQEMU_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
5164aa99d3SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: could not open disk image TEST_DIR/t.qcow2: Invalid argument
5247e5df21SKevin Wolf
5364aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
547a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
557a370406SKevin Wolf(qemu) qququiquit
5647e5df21SKevin Wolf
5747e5df21SKevin Wolf
5847e5df21SKevin Wolf=== No medium ===
5947e5df21SKevin Wolf
6047e5df21SKevin WolfTesting: -drive if=floppy
617a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
627a370406SKevin Wolf(qemu) qququiquit
6347e5df21SKevin Wolf
6447e5df21SKevin WolfTesting: -drive if=ide,media=cdrom
657a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
667a370406SKevin Wolf(qemu) qququiquit
6747e5df21SKevin Wolf
6847e5df21SKevin WolfTesting: -drive if=scsi,media=cdrom
697a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
707a370406SKevin Wolf(qemu) qququiquit
7147e5df21SKevin Wolf
7247e5df21SKevin WolfTesting: -drive if=ide
737a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
747a370406SKevin Wolf(qemu) QEMU_PROG: Device needs media, but drive is empty
757a370406SKevin WolfQEMU_PROG: Device initialization failed.
76c09b437bSStefan HajnocziQEMU_PROG: Initialization of device ide-hd failed
7747e5df21SKevin Wolf
7847e5df21SKevin WolfTesting: -drive if=virtio
797a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
807a370406SKevin Wolf(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
817a370406SKevin WolfQEMU_PROG: -drive if=virtio: Device initialization failed.
827a370406SKevin WolfQEMU_PROG: -drive if=virtio: Device initialization failed.
83c09b437bSStefan HajnocziQEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
8447e5df21SKevin Wolf
8547e5df21SKevin WolfTesting: -drive if=scsi
867a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
877a370406SKevin Wolf(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
887a370406SKevin WolfQEMU_PROG: -drive if=scsi: Device initialization failed.
897a370406SKevin WolfQEMU_PROG: Device initialization failed.
90c09b437bSStefan HajnocziQEMU_PROG: Initialization of device lsi53c895a failed
9147e5df21SKevin Wolf
9247e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-cd,drive=disk
937a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
947a370406SKevin Wolf(qemu) qququiquit
9547e5df21SKevin Wolf
9647e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
977a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
987a370406SKevin Wolf(qemu) qququiquit
9947e5df21SKevin Wolf
10047e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-drive,drive=disk
1017a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1027a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
1037a370406SKevin WolfQEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
104c09b437bSStefan HajnocziQEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
10547e5df21SKevin Wolf
10647e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-hd,drive=disk
1077a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1087a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
1097a370406SKevin WolfQEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
110c09b437bSStefan HajnocziQEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
11147e5df21SKevin Wolf
11247e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
1137a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1147a370406SKevin Wolf(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
1157a370406SKevin WolfQEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
116c09b437bSStefan HajnocziQEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
11747e5df21SKevin Wolf
11847e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
1197a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1207a370406SKevin Wolf(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
1217a370406SKevin WolfQEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
122c09b437bSStefan HajnocziQEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
12347e5df21SKevin Wolf
12447e5df21SKevin Wolf
12547e5df21SKevin Wolf=== Read-only ===
12647e5df21SKevin Wolf
12747e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
1287a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1297a370406SKevin Wolf(qemu) qququiquit
13047e5df21SKevin Wolf
13147e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
1327a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1337a370406SKevin Wolf(qemu) qququiquit
13447e5df21SKevin Wolf
13547e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
1367a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1377a370406SKevin Wolf(qemu) qququiquit
13847e5df21SKevin Wolf
13947e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
140*0f227a94SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: read-only not supported by this bus type
14147e5df21SKevin Wolf
14247e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
1437a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1447a370406SKevin Wolf(qemu) qququiquit
14547e5df21SKevin Wolf
14647e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
1477a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1487a370406SKevin Wolf(qemu) qququiquit
14947e5df21SKevin Wolf
15047e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
1517a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1527a370406SKevin Wolf(qemu) qququiquit
15347e5df21SKevin Wolf
15447e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
1557a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1567a370406SKevin Wolf(qemu) qququiquit
15747e5df21SKevin Wolf
15847e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
1597a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1607a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
1617a370406SKevin WolfQEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
162c09b437bSStefan HajnocziQEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
16347e5df21SKevin Wolf
16447e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
1657a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1667a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
1677a370406SKevin WolfQEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
168c09b437bSStefan HajnocziQEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
16947e5df21SKevin Wolf
17047e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
1717a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1727a370406SKevin Wolf(qemu) qququiquit
17347e5df21SKevin Wolf
17447e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
1757a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1767a370406SKevin Wolf(qemu) qququiquit
17747e5df21SKevin Wolf
17847e5df21SKevin Wolf
17947e5df21SKevin Wolf=== Cache modes ===
18047e5df21SKevin Wolf
18147e5df21SKevin WolfTesting: -drive media=cdrom,cache=none
1827a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1837a370406SKevin Wolf(qemu) qququiquit
18447e5df21SKevin Wolf
18547e5df21SKevin WolfTesting: -drive media=cdrom,cache=directsync
1867a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1877a370406SKevin Wolf(qemu) qququiquit
18847e5df21SKevin Wolf
18947e5df21SKevin WolfTesting: -drive media=cdrom,cache=writeback
1907a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1917a370406SKevin Wolf(qemu) qququiquit
19247e5df21SKevin Wolf
19347e5df21SKevin WolfTesting: -drive media=cdrom,cache=writethrough
1947a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1957a370406SKevin Wolf(qemu) qququiquit
19647e5df21SKevin Wolf
19747e5df21SKevin WolfTesting: -drive media=cdrom,cache=unsafe
1987a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
1997a370406SKevin Wolf(qemu) qququiquit
20047e5df21SKevin Wolf
20147e5df21SKevin WolfTesting: -drive media=cdrom,cache=invalid_value
202c09b437bSStefan HajnocziQEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
20347e5df21SKevin Wolf
2042af5ef70SKevin Wolf
2052af5ef70SKevin Wolf=== Specifying the protocol layer ===
2062af5ef70SKevin Wolf
2072af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=file
2087a370406SKevin WolfQEMU 1.5.50 monitor - type 'help' for more information
2097a370406SKevin Wolf(qemu) qququiquit
2102af5ef70SKevin Wolf
2112af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
2122af5ef70SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: Can't use 'qcow2' as a block driver for the protocol level
2132af5ef70SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Invalid argument
2142af5ef70SKevin Wolf
21598289620SKevin Wolf
21698289620SKevin Wolf=== Parsing protocol from file name ===
21798289620SKevin Wolf
21898289620SKevin WolfTesting: -hda foo:bar
21998289620SKevin WolfQEMU_PROG: -hda foo:bar: Unknown protocol
22098289620SKevin WolfQEMU_PROG: -hda foo:bar: could not open disk image foo:bar: No such file or directory
22198289620SKevin Wolf
22298289620SKevin WolfTesting: -drive file=foo:bar
22398289620SKevin WolfQEMU_PROG: -drive file=foo:bar: Unknown protocol
22498289620SKevin WolfQEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: No such file or directory
22598289620SKevin Wolf
22698289620SKevin WolfTesting: -drive file.filename=foo:bar
22798289620SKevin WolfQEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: No such file or directory
22898289620SKevin Wolf
22947e5df21SKevin Wolf*** done
230