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= 7*2c78857bSMax 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' 847e5df21SKevin Wolf 947e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on 10*2c78857bSMax 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' 1147e5df21SKevin Wolf 1247e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234 13*2c78857bSMax 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' 1447e5df21SKevin Wolf 1547e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo 16*2c78857bSMax 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' 1747e5df21SKevin Wolf 1847e5df21SKevin Wolf 1947e5df21SKevin Wolf=== Enable and disable lazy refcounting on the command line, plus some invalid values === 2047e5df21SKevin Wolf 2164aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on 229580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 237a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 2447e5df21SKevin Wolf 2564aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off 269580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 277a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 2847e5df21SKevin Wolf 2964aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts= 30*2c78857bSMax 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' 3147e5df21SKevin Wolf 3264aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42 33*2c78857bSMax 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' 3447e5df21SKevin Wolf 3564aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo 36*2c78857bSMax 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' 3747e5df21SKevin Wolf 3847e5df21SKevin Wolf 3947e5df21SKevin Wolf=== With version 2 images enabling lazy refcounts must fail === 4047e5df21SKevin Wolf 4147e5df21SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 4264aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on 43*2c78857bSMax 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 4447e5df21SKevin Wolf 4564aa99d3SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off 469580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 477a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 4847e5df21SKevin Wolf 4947e5df21SKevin Wolf 5047e5df21SKevin Wolf=== No medium === 5147e5df21SKevin Wolf 5247e5df21SKevin WolfTesting: -drive if=floppy 539580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 547a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 5547e5df21SKevin Wolf 5647e5df21SKevin WolfTesting: -drive if=ide,media=cdrom 579580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 587a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 5947e5df21SKevin Wolf 6047e5df21SKevin WolfTesting: -drive if=scsi,media=cdrom 619580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 627a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 6347e5df21SKevin Wolf 6447e5df21SKevin WolfTesting: -drive if=ide 659580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 667a370406SKevin Wolf(qemu) QEMU_PROG: Device needs media, but drive is empty 677a370406SKevin WolfQEMU_PROG: Device initialization failed. 68c09b437bSStefan HajnocziQEMU_PROG: Initialization of device ide-hd failed 6947e5df21SKevin Wolf 7047e5df21SKevin WolfTesting: -drive if=virtio 719580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 727a370406SKevin Wolf(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty 737a370406SKevin WolfQEMU_PROG: -drive if=virtio: Device initialization failed. 747a370406SKevin WolfQEMU_PROG: -drive if=virtio: Device initialization failed. 75c09b437bSStefan HajnocziQEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized 7647e5df21SKevin Wolf 7747e5df21SKevin WolfTesting: -drive if=scsi 789580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 797a370406SKevin Wolf(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty 807a370406SKevin WolfQEMU_PROG: Device initialization failed. 81c09b437bSStefan HajnocziQEMU_PROG: Initialization of device lsi53c895a failed 8247e5df21SKevin Wolf 8347e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-cd,drive=disk 849580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 857a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 8647e5df21SKevin Wolf 8747e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk 889580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 897a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 9047e5df21SKevin Wolf 9147e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-drive,drive=disk 929580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 937a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty 947a370406SKevin WolfQEMU_PROG: -device ide-drive,drive=disk: Device initialization failed. 95c09b437bSStefan HajnocziQEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized 9647e5df21SKevin Wolf 9747e5df21SKevin WolfTesting: -drive if=none,id=disk -device ide-hd,drive=disk 989580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 997a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty 1007a370406SKevin WolfQEMU_PROG: -device ide-hd,drive=disk: Device initialization failed. 101c09b437bSStefan HajnocziQEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized 10247e5df21SKevin Wolf 10347e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk 1049580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1057a370406SKevin Wolf(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty 1067a370406SKevin WolfQEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed. 107c09b437bSStefan HajnocziQEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized 10847e5df21SKevin Wolf 10947e5df21SKevin WolfTesting: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk 1109580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1117a370406SKevin Wolf(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty 1127a370406SKevin WolfQEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed. 113c09b437bSStefan HajnocziQEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized 11447e5df21SKevin Wolf 11547e5df21SKevin Wolf 11647e5df21SKevin Wolf=== Read-only === 11747e5df21SKevin Wolf 11847e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on 1199580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1207a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 12147e5df21SKevin Wolf 12247e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on 1239580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1247a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 12547e5df21SKevin Wolf 12647e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on 1279580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1287a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 12947e5df21SKevin Wolf 13047e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on 1310f227a94SKevin WolfQEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: read-only not supported by this bus type 13247e5df21SKevin Wolf 13347e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on 1349580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1357a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 13647e5df21SKevin Wolf 13747e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on 1389580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1397a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 14047e5df21SKevin Wolf 14147e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk 1429580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1437a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 14447e5df21SKevin Wolf 14547e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk 1469580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1477a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 14847e5df21SKevin Wolf 14947e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk 1509580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1517a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive 1527a370406SKevin WolfQEMU_PROG: -device ide-drive,drive=disk: Device initialization failed. 153c09b437bSStefan HajnocziQEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized 15447e5df21SKevin Wolf 15547e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk 1569580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1577a370406SKevin Wolf(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive 1587a370406SKevin WolfQEMU_PROG: -device ide-hd,drive=disk: Device initialization failed. 159c09b437bSStefan HajnocziQEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized 16047e5df21SKevin Wolf 16147e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk 1629580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1637a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 16447e5df21SKevin Wolf 16547e5df21SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk 1669580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1677a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 16847e5df21SKevin Wolf 16947e5df21SKevin Wolf 17047e5df21SKevin Wolf=== Cache modes === 17147e5df21SKevin Wolf 17247e5df21SKevin WolfTesting: -drive media=cdrom,cache=none 1739580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1747a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 17547e5df21SKevin Wolf 17647e5df21SKevin WolfTesting: -drive media=cdrom,cache=directsync 1779580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1787a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 17947e5df21SKevin Wolf 18047e5df21SKevin WolfTesting: -drive media=cdrom,cache=writeback 1819580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1827a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 18347e5df21SKevin Wolf 18447e5df21SKevin WolfTesting: -drive media=cdrom,cache=writethrough 1859580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1867a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 18747e5df21SKevin Wolf 18847e5df21SKevin WolfTesting: -drive media=cdrom,cache=unsafe 1899580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 1907a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 19147e5df21SKevin Wolf 19247e5df21SKevin WolfTesting: -drive media=cdrom,cache=invalid_value 193c09b437bSStefan HajnocziQEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option 19447e5df21SKevin Wolf 1952af5ef70SKevin Wolf 1962af5ef70SKevin Wolf=== Specifying the protocol layer === 1972af5ef70SKevin Wolf 1982af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=file 1999580498bSStefan HajnocziQEMU X.Y.Z monitor - type 'help' for more information 2007a370406SKevin Wolf(qemu) q[K[Dqu[K[D[Dqui[K[D[D[Dquit[K 2012af5ef70SKevin Wolf 2022af5ef70SKevin WolfTesting: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2 203*2c78857bSMax 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 2042af5ef70SKevin Wolf 20598289620SKevin Wolf 20698289620SKevin Wolf=== Parsing protocol from file name === 20798289620SKevin Wolf 20898289620SKevin WolfTesting: -hda foo:bar 209*2c78857bSMax ReitzQEMU_PROG: -hda foo:bar: could not open disk image foo:bar: Unknown protocol 21098289620SKevin Wolf 21198289620SKevin WolfTesting: -drive file=foo:bar 212*2c78857bSMax ReitzQEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: Unknown protocol 21398289620SKevin Wolf 21498289620SKevin WolfTesting: -drive file.filename=foo:bar 215*2c78857bSMax ReitzQEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: Could not open 'foo:bar': No such file or directory 21698289620SKevin Wolf 21747e5df21SKevin Wolf*** done 218