Improve error reporting when -drive format= is incorrect

Bug #1090600 reported by Cole Robinson
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
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 https://bugzilla.redhat.com/show_bug.cgi?id=556482 )

Changed in qemu:
assignee: nobody → Stefan Weil (ubuntu-weilnetz)
status: New → In Progress
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.