2013-04-09 17:56:13 +04:00
QA output created by 051
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
2013-09-22 16:05:07 +04:00
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file='TEST_DIR/t.IMGFMT.base'
2013-04-09 17:56:13 +04:00
=== Unknown option ===
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=
2013-09-10 15:59:43 +04:00
QEMU_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'
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on
2013-09-10 15:59:43 +04:00
QEMU_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'
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234
2013-09-10 15:59:43 +04:00
QEMU_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'
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo
2013-09-10 15:59:43 +04:00
QEMU_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'
2013-04-09 17:56:13 +04:00
2013-09-22 16:05:07 +04:00
=== Overriding backing file ===
Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig -nodefaults
QEMU X.Y.Z monitor - type 'help' for more information
(qemu) i [K [Din [K [D [Dinf [K [D [D [Dinfo [K [D [D [D [Dinfo [K [D [D [D [D [Dinfo b [K [D [D [D [D [D [Dinfo bl [K [D [D [D [D [D [D [Dinfo blo [K [D [D [D [D [D [D [D [Dinfo bloc [K [D [D [D [D [D [D [D [D [Dinfo block [K
ide0-hd0: TEST_DIR/t.qcow2 (qcow2)
Backing file: TEST_DIR/t.qcow2.orig (chain depth: 1)
[not inserted](qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
=== Enable and disable lazy refcounting on the command line, plus some invalid values ===
2013-07-17 16:45:34 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
2013-07-17 16:45:34 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
2013-07-17 16:45:34 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
2013-09-10 15:59:43 +04:00
QEMU_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'
2013-04-09 17:56:13 +04:00
2013-07-17 16:45:34 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
2013-09-10 15:59:43 +04:00
QEMU_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'
2013-04-09 17:56:13 +04:00
2013-07-17 16:45:34 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
2013-09-10 15:59:43 +04:00
QEMU_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'
2013-04-09 17:56:13 +04:00
=== With version 2 images enabling lazy refcounts must fail ===
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
2013-07-17 16:45:34 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
2013-09-10 15:59:43 +04:00
QEMU_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
2013-04-09 17:56:13 +04:00
2013-07-17 16:45:34 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
=== No medium ===
Testing: -drive if=floppy
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive if=ide,media=cdrom
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive if=scsi,media=cdrom
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive if=ide
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: Device needs media, but drive is empty
QEMU_PROG: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: Initialization of device ide-hd failed
2013-04-09 17:56:13 +04:00
Testing: -drive if=virtio
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
QEMU_PROG: -drive if=virtio: Device initialization failed.
QEMU_PROG: -drive if=virtio: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
2013-04-09 17:56:13 +04:00
Testing: -drive if=scsi
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
QEMU_PROG: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: Initialization of device lsi53c895a failed
2013-04-09 17:56:13 +04:00
Testing: -drive if=none,id=disk -device ide-cd,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive if=none,id=disk -device ide-drive,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
2013-04-09 17:56:13 +04:00
Testing: -drive if=none,id=disk -device ide-hd,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
2013-04-09 17:56:13 +04:00
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
QEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
2013-04-09 17:56:13 +04:00
Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
QEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
2013-04-09 17:56:13 +04:00
=== Read-only ===
Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
2013-07-19 22:07:29 +04:00
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: read-only not supported by this bus type
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
2013-04-15 12:15:17 +04:00
QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
=== Cache modes ===
Testing: -drive media=cdrom,cache=none
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive media=cdrom,cache=directsync
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive media=cdrom,cache=writeback
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive media=cdrom,cache=writethrough
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive media=cdrom,cache=unsafe
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 17:56:13 +04:00
Testing: -drive media=cdrom,cache=invalid_value
2013-04-15 12:15:17 +04:00
QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
2013-04-09 17:56:13 +04:00
2013-04-09 15:19:18 +04:00
=== Specifying the protocol layer ===
Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
2013-08-05 16:40:34 +04:00
QEMU X.Y.Z monitor - type 'help' for more information
2013-07-10 19:30:26 +04:00
(qemu) q [K [Dqu [K [D [Dqui [K [D [D [Dquit [K
2013-04-09 15:19:18 +04:00
Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
2013-09-10 15:59:43 +04:00
QEMU_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
2013-04-09 15:19:18 +04:00
2013-07-10 17:47:39 +04:00
=== Parsing protocol from file name ===
Testing: -hda foo:bar
2013-09-10 15:59:43 +04:00
QEMU_PROG: -hda foo:bar: could not open disk image foo:bar: Unknown protocol
2013-07-10 17:47:39 +04:00
Testing: -drive file=foo:bar
2013-09-10 15:59:43 +04:00
QEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: Unknown protocol
2013-07-10 17:47:39 +04:00
Testing: -drive file.filename=foo:bar
2013-09-10 15:59:43 +04:00
QEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: Could not open 'foo:bar': No such file or directory
2013-07-10 17:47:39 +04:00
2013-04-09 17:56:13 +04:00
*** done