[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PULL 1/5] raw-win32: Fix write request error handling
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PULL 1/5] raw-win32: Fix write request error handling |
Date: |
Fri, 2 Oct 2015 14:50:54 +0200 |
aio_worker() wrote the return code to the wrong variable.
Signed-off-by: Kevin Wolf <address@hidden>
Tested-by: Guangmu Zhu <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
block/raw-win32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/raw-win32.c b/block/raw-win32.c
index 68f2338..b562c94 100644
--- a/block/raw-win32.c
+++ b/block/raw-win32.c
@@ -119,9 +119,9 @@ static int aio_worker(void *arg)
case QEMU_AIO_WRITE:
count = handle_aiocb_rw(aiocb);
if (count == aiocb->aio_nbytes) {
- count = 0;
+ ret = 0;
} else {
- count = -EINVAL;
+ ret = -EINVAL;
}
break;
case QEMU_AIO_FLUSH:
--
1.8.3.1
- [Qemu-block] [PULL 0/5] Block layer patches, Kevin Wolf, 2015/10/08
- [Qemu-block] [PULL 5/5] block/raw-posix: Open file descriptor O_RDWR to work around glibc posix_fallocate emulation issue., Kevin Wolf, 2015/10/08
- [Qemu-block] [PULL 3/5] iotests: Fix test 128 for password-less sudo, Kevin Wolf, 2015/10/08
- [Qemu-block] [PULL 2/5] tests: Fix test 049 fallout from improved HMP error messages, Kevin Wolf, 2015/10/08
- Re: [Qemu-block] [Qemu-devel] [PULL 0/5] Block layer patches, Peter Maydell, 2015/10/08
- [Qemu-block] [PULL 1/5] raw-win32: Fix write request error handling,
Kevin Wolf <=
- [Qemu-block] [PULL 4/5] block: disable I/O limits at the beginning of bdrv_close(), Kevin Wolf, 2015/10/08