qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] For AIO return -ENOSPC on short write


From: Jes . Sorensen
Subject: [Qemu-devel] [PATCH] For AIO return -ENOSPC on short write
Date: Tue, 22 Feb 2011 11:17:59 +0100

From: Jes Sorensen <address@hidden>

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]