[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [7178] a couple of qemu-io fixes (Christoph Hellwig)
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [7178] a couple of qemu-io fixes (Christoph Hellwig) |
Date: |
Sat, 18 Apr 2009 15:36:07 +0000 |
Revision: 7178
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7178
Author: aliguori
Date: 2009-04-18 15:36:06 +0000 (Sat, 18 Apr 2009)
Log Message:
-----------
a couple of qemu-io fixes (Christoph Hellwig)
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>
Signed-off-by: Anthony Liguori <address@hidden>
Modified Paths:
--------------
trunk/qemu-io.c
Modified: trunk/qemu-io.c
===================================================================
--- trunk/qemu-io.c 2009-04-18 15:36:02 UTC (rev 7177)
+++ trunk/qemu-io.c 2009-04-18 15:36:06 UTC (rev 7178)
@@ -172,7 +172,7 @@
while (async_ret == NOT_DONE)
qemu_aio_wait();
- *total = qiov->size >> 9;
+ *total = qiov->size;
return async_ret < 0 ? async_ret : 1;
}
@@ -634,7 +634,7 @@
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [7178] a couple of qemu-io fixes (Christoph Hellwig),
Anthony Liguori <=