qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/5] block: Fix error report for wrong file format
@ 2013-01-17 20:45 Stefan Weil
  2013-01-17 20:45 ` [Qemu-devel] [PATCH v2 1/5] block: Add special error code for wrong format Stefan Weil
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Stefan Weil @ 2013-01-17 20:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kevin Wolf, Stefan Hajnoczi

These patches improve the error report if the file format was
specified explicitly (example: -drive file=myfile,format=qcow2)
and the given format does not match the real format.

They fix those bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=556482
https://bugs.launchpad.net/qemu/+bug/1090600

Changes in v2:

* Use error code EMEDIUMTYPE instead of inventing a new one.
* Split modifications in block/vdi.c into 3 separate patches.

I decided to use EMEDIUMTYPE because I think that it matches best
the kind of error which we want to describe here.

EINVAL is too unspecific, and ENOTTY means something completely different,
therefore I did not use one of those suggested values.

Cheers,
Stefan

[PATCH v2 1/5] block: Add special error code for wrong format
[PATCH v2 2/5] block: Use error code EMEDIUMTYPE for wrong format in
[PATCH v2 3/5] block/vdi: Improve debug output for signature
[PATCH v2 4/5] block/vdi: Improved return values from vdi_open
[PATCH v2 5/5] block/vdi: Check for bad signature

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-01-21 11:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-17 20:45 [Qemu-devel] [PATCH v2 0/5] block: Fix error report for wrong file format Stefan Weil
2013-01-17 20:45 ` [Qemu-devel] [PATCH v2 1/5] block: Add special error code for wrong format Stefan Weil
2013-01-17 20:45 ` [Qemu-devel] [PATCH v2 2/5] block: Use error code EMEDIUMTYPE for wrong format in some block drivers Stefan Weil
2013-01-18  8:53   ` Markus Armbruster
2013-01-18 18:10     ` Stefan Weil
2013-01-21 11:03       ` Markus Armbruster
2013-01-17 20:45 ` [Qemu-devel] [PATCH v2 3/5] block/vdi: Improve debug output for signature Stefan Weil
2013-01-17 20:45 ` [Qemu-devel] [PATCH v2 4/5] block/vdi: Improved return values from vdi_open Stefan Weil
2013-01-17 20:45 ` [Qemu-devel] [PATCH v2 5/5] block/vdi: Check for bad signature Stefan Weil
2013-01-17 21:28 ` [Qemu-devel] [PATCH v2 0/5] block: Fix error report for wrong file format Eric Blake
2013-01-17 22:25   ` Stefan Weil
2013-01-17 22:41     ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).