xref: /qemu/tests/qemu-iotests/051.out (revision e428e439df4d92ac42cb913a1dd19b86155eae86)
147e5df21SKevin WolfQA output created by 051
247e5df21SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
34db9c980SFam ZhengFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file='TEST_DIR/t.IMGFMT.base'
447e5df21SKevin Wolf
547e5df21SKevin Wolf=== Unknown option ===
647e5df21SKevin Wolf
747e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=
82c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
947e5df21SKevin Wolf
1047e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
112c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
1247e5df21SKevin Wolf
1347e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
142c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
1547e5df21SKevin Wolf
1647e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
172c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: could not open disk image TEST_DIR/t.qcow2: Block format 'qcow2' used by device 'ide0-hd0' doesn't support the option 'unknown_opt'
1847e5df21SKevin Wolf
1947e5df21SKevin Wolf
204db9c980SFam Zheng=== Overriding backing file ===
214db9c980SFam Zheng
224db9c980SFam ZhengTesting: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig -nodefaults
234db9c980SFam ZhengQEMU X.Y.Z monitor - type 'help' for more information
244db9c980SFam Zheng(qemu) iininfinfoinfo info binfo blinfo bloinfo blocinfo block
254db9c980SFam Zhengide0-hd0: TEST_DIR/t.qcow2 (qcow2)
264db9c980SFam Zheng    Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
274db9c980SFam Zheng [not inserted](qemu) qququiquit
284db9c980SFam Zheng
294db9c980SFam Zheng
3047e5df21SKevin Wolf=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
3147e5df21SKevin Wolf
3264aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
339580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
347a370406SKevin Wolf(qemu) qququiquit
3547e5df21SKevin Wolf
3664aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
379580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
387a370406SKevin Wolf(qemu) qququiquit
3947e5df21SKevin Wolf
4064aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
412c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off'
4247e5df21SKevin Wolf
4364aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
442c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off'
4547e5df21SKevin Wolf
4664aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
472c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: could not open disk image TEST_DIR/t.qcow2: Parameter 'lazy-refcounts' expects 'on' or 'off'
4847e5df21SKevin Wolf
4947e5df21SKevin Wolf
5047e5df21SKevin Wolf=== With version 2 images enabling lazy refcounts must fail ===
5147e5df21SKevin Wolf
5247e5df21SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
5364aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
542c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: could not open disk image TEST_DIR/t.qcow2: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level
5547e5df21SKevin Wolf
5664aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
579580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
587a370406SKevin Wolf(qemu) qququiquit
5947e5df21SKevin Wolf
6047e5df21SKevin Wolf
6147e5df21SKevin Wolf=== No medium ===
6247e5df21SKevin Wolf
6347e5df21SKevin WolfTesting: -drive if=floppy
649580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
657a370406SKevin Wolf(qemu) qququiquit
6647e5df21SKevin Wolf
6747e5df21SKevin WolfTesting: -drive if=ide,media=cdrom
689580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
697a370406SKevin Wolf(qemu) qququiquit
7047e5df21SKevin Wolf
7147e5df21SKevin WolfTesting: -drive if=scsi,media=cdrom
729580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
737a370406SKevin Wolf(qemu) qququiquit
7447e5df21SKevin Wolf
7547e5df21SKevin WolfTesting: -drive if=ide
769580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
777a370406SKevin Wolf(qemu) QEMU_PROG: Device needs media, but drive is empty
787a370406SKevin WolfQEMU_PROG: Device initialization failed.
79c09b437bSStefan HajnocziQEMU_PROG: Initialization of device ide-hd failed
8047e5df21SKevin Wolf
8147e5df21SKevin WolfTesting: -drive if=virtio
829580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
837a370406SKevin Wolf(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
847a370406SKevin WolfQEMU_PROG: -drive if=virtio: Device initialization failed.
857a370406SKevin WolfQEMU_PROG: -drive if=virtio: Device initialization failed.
86c09b437bSStefan HajnocziQEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
8747e5df21SKevin Wolf
8847e5df21SKevin WolfTesting: -drive if=scsi
899580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
907a370406SKevin Wolf(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
917a370406SKevin WolfQEMU_PROG: Device initialization failed.
92c09b437bSStefan HajnocziQEMU_PROG: Initialization of device lsi53c895a failed
9347e5df21SKevin Wolf
9447e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-cd,drive=disk
959580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
967a370406SKevin Wolf(qemu) qququiquit
9747e5df21SKevin Wolf
9847e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
999580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1007a370406SKevin Wolf(qemu) qququiquit
10147e5df21SKevin Wolf
10247e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-drive,drive=disk
1039580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1047a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
1057a370406SKevin WolfQEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
106c09b437bSStefan HajnocziQEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
10747e5df21SKevin Wolf
10847e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-hd,drive=disk
1099580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1107a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
1117a370406SKevin WolfQEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
112c09b437bSStefan HajnocziQEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
11347e5df21SKevin Wolf
11447e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
1159580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1167a370406SKevin Wolf(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
1177a370406SKevin WolfQEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
118c09b437bSStefan HajnocziQEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
11947e5df21SKevin Wolf
12047e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
1219580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1227a370406SKevin Wolf(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
1237a370406SKevin WolfQEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
124c09b437bSStefan HajnocziQEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
12547e5df21SKevin Wolf
12647e5df21SKevin Wolf
12747e5df21SKevin Wolf=== Read-only ===
12847e5df21SKevin Wolf
12947e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
1309580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1317a370406SKevin Wolf(qemu) qququiquit
13247e5df21SKevin Wolf
13347e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
1349580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1357a370406SKevin Wolf(qemu) qququiquit
13647e5df21SKevin Wolf
13747e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
1389580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1397a370406SKevin Wolf(qemu) qququiquit
14047e5df21SKevin Wolf
14147e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
1420f227a94SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: read-only not supported by this bus type
14347e5df21SKevin Wolf
14447e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
1459580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1467a370406SKevin Wolf(qemu) qququiquit
14747e5df21SKevin Wolf
14847e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
1499580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1507a370406SKevin Wolf(qemu) qququiquit
15147e5df21SKevin Wolf
15247e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
1539580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1547a370406SKevin Wolf(qemu) qququiquit
15547e5df21SKevin Wolf
15647e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
1579580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1587a370406SKevin Wolf(qemu) qququiquit
15947e5df21SKevin Wolf
16047e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
1619580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1627a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
1637a370406SKevin WolfQEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
164c09b437bSStefan HajnocziQEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
16547e5df21SKevin Wolf
16647e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
1679580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1687a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
1697a370406SKevin WolfQEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
170c09b437bSStefan HajnocziQEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
17147e5df21SKevin Wolf
17247e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
1739580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1747a370406SKevin Wolf(qemu) qququiquit
17547e5df21SKevin Wolf
17647e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
1779580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1787a370406SKevin Wolf(qemu) qququiquit
17947e5df21SKevin Wolf
18047e5df21SKevin Wolf
18147e5df21SKevin Wolf=== Cache modes ===
18247e5df21SKevin Wolf
18347e5df21SKevin WolfTesting: -drive media=cdrom,cache=none
1849580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1857a370406SKevin Wolf(qemu) qququiquit
18647e5df21SKevin Wolf
18747e5df21SKevin WolfTesting: -drive media=cdrom,cache=directsync
1889580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1897a370406SKevin Wolf(qemu) qququiquit
19047e5df21SKevin Wolf
19147e5df21SKevin WolfTesting: -drive media=cdrom,cache=writeback
1929580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1937a370406SKevin Wolf(qemu) qququiquit
19447e5df21SKevin Wolf
19547e5df21SKevin WolfTesting: -drive media=cdrom,cache=writethrough
1969580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
1977a370406SKevin Wolf(qemu) qququiquit
19847e5df21SKevin Wolf
19947e5df21SKevin WolfTesting: -drive media=cdrom,cache=unsafe
2009580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
2017a370406SKevin Wolf(qemu) qququiquit
20247e5df21SKevin Wolf
20347e5df21SKevin WolfTesting: -drive media=cdrom,cache=invalid_value
204c09b437bSStefan HajnocziQEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
20547e5df21SKevin Wolf
2062af5ef70SKevin Wolf
2072af5ef70SKevin Wolf=== Specifying the protocol layer ===
2082af5ef70SKevin Wolf
2092af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=file
2109580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information
2117a370406SKevin Wolf(qemu) qququiquit
2122af5ef70SKevin Wolf
2132af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
2142c78857bSMax ReitzQEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Can't use 'qcow2' as a block driver for the protocol level
2152af5ef70SKevin Wolf
21698289620SKevin Wolf
21798289620SKevin Wolf=== Parsing protocol from file name ===
21898289620SKevin Wolf
21998289620SKevin WolfTesting: -hda foo:bar
2202c78857bSMax ReitzQEMU_PROG: -hda foo:bar: could not open disk image foo:bar: Unknown protocol
22198289620SKevin Wolf
22298289620SKevin WolfTesting: -drive file=foo:bar
2232c78857bSMax ReitzQEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: Unknown protocol
22498289620SKevin Wolf
22598289620SKevin WolfTesting: -drive file.filename=foo:bar
226*e428e439SMax ReitzQEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: Could not open file: No such file or directory
22798289620SKevin Wolf
22847e5df21SKevin Wolf*** done
229