From: Jes Sorensen <jes.soren...@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