Improve error reporting when -drive format= is incorrect
Public bug reported:
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 )
** Affects: qemu
Importance: Undecided
Status: New
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1090600 Title: Improve error reporting when -drive format= is incorrect Status in QEMU: New 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 ) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1090600/+subscriptions
** Changed in: qemu
Assignee: (unassigned) => Stefan Weil (ubuntu-weilnetz)
** Changed in: qemu
Status: New => In Progress
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1090600 Title: Improve error reporting when -drive format= is incorrect Status in QEMU: In Progress 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 ) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1090600/+subscriptions