qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] For AIO return -ENOSPC on short write
@ 2011-02-22 10:17 Jes.Sorensen
  2011-02-22 10:18 ` Jes.Sorensen
  0 siblings, 1 reply; 10+ messages in thread
From: Jes.Sorensen @ 2011-02-22 10:17 UTC (permalink / raw)
  To: qemu-devel; +Cc: hch, kwolf, stefanha

From: Jes Sorensen <Jes.Sorensen@redhat.com>

Hi,

Current AIO code returns -EINVAL on every error, even on write. In
order to be able to report some more sensible error messages, I
suggest we change it to return -ENOSPC if we are failing on a write
request and we had a partial write. It matches more what one would
expect.

One way to reproduce the strange error return is this:
1) setup a loopback device for a file (say 2GB)
2) create an LVM volume over it
3) create a qcow2 image on top of it which is larger than the 2GB
4) try and install a guest.....

Comments? any reason why this is a bad idea?

Cheers,
Jes


Jes Sorensen (1):
  For AIO return -ENOSPC on short write

 linux-aio.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

-- 
1.7.4

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

end of thread, other threads:[~2011-03-01 20:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22 10:17 [Qemu-devel] [PATCH] For AIO return -ENOSPC on short write Jes.Sorensen
2011-02-22 10:18 ` Jes.Sorensen
2011-02-22 11:44   ` [Qemu-devel] " Kevin Wolf
2011-02-22 11:45     ` Jes Sorensen
2011-02-22 13:56       ` Avi Kivity
2011-02-22 15:02   ` [Qemu-devel] " Stefan Hajnoczi
2011-02-22 15:11     ` Kevin Wolf
2011-02-22 15:16       ` Stefan Hajnoczi
2011-02-22 16:59         ` [Qemu-devel] " Paolo Bonzini
2011-03-01 20:19           ` Christoph Hellwig

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).