[7178] a couple of qemu-io fixes (Christoph Hellwig)
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 <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/qemu-io.c
Modified: trunk/qemu-io.c
===================================================================
qemu-io.c +2 -2
@@ -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;