[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] a couple of qemu-io fixes
From: |
Christoph Hellwig |
Subject: |
[Qemu-devel] [PATCH] a couple of qemu-io fixes |
Date: |
Thu, 9 Apr 2009 22:29:18 +0200 |
User-agent: |
Mutt/1.3.28i |
Fix two stupid bugs that I forgot to push out:
- qiov->size already is in bytes, no need to shift it
- actually use the supplied patter in the writev command
Signed-off-by: Christoph Hellwig <address@hidden>
Index: qemu/qemu-io.c
===================================================================
--- qemu.orig/qemu-io.c 2009-04-09 22:11:37.898444895 +0200
+++ qemu/qemu-io.c 2009-04-09 22:20:20.207637751 +0200
@@ -172,7 +172,7 @@ static int do_aio_writev(QEMUIOVector *q
while (async_ret == NOT_DONE)
qemu_aio_wait();
- *total = qiov->size >> 9;
+ *total = qiov->size;
return async_ret < 0 ? async_ret : 1;
}
@@ -668,7 +668,7 @@ writev_f(int argc, char **argv)
nr_iov = argc - optind;
qemu_iovec_init(&qiov, nr_iov);
- buf = p = qemu_io_alloc(count, 0xab);
+ buf = p = qemu_io_alloc(count, pattern);
for (i = 0; i < nr_iov; i++) {
size_t len;
- [Qemu-devel] [PATCH] a couple of qemu-io fixes,
Christoph Hellwig <=