Improve error reporting when -drive format= is incorrect

Bug #1090600 reported by Cole Robinson on 2012-12-14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Stefan Weil

Bug Description

With qemu.git as of e376a788ae130454ad5e797f60cb70d0308babb6

$ qemu-img create -f raw test.raw 1M
Formatting 'test.raw', fmt=raw size=1048576
$ ./x86_64-softmmu/qemu-system-x86_64 -drive file=./test.raw,format=qcow2
qemu-system-x86_64: -drive file=./test.raw,format=qcow2: could not open disk image ./test.raw: Invalid argument
$ ./x86_64-softmmu/qemu-system-x86_64 -drive file=./test.raw,format=vdi
qemu-system-x86_64: -drive file=./test.raw,format=vdi: could not open disk image ./test.raw: Operation not permitted

Ideally we'd get something like
could not open disk image ./test.raw: not a qcow2 format file

(this was kicking around in Fedora bugzilla for a long time at )

Changed in qemu:
assignee: nobody → Stefan Weil (ubuntu-weilnetz)
status: New → In Progress
Stefan Weil (ubuntu-weilnetz) wrote :

Fixed in QEMU 1.4

Changed in qemu:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers