a couple of qemu-io fixes
PATCH 1/1 a couple of qemu-io fixes
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]>
qemu-io.c +2 -2
@@ -172,7 +172,7 @@ static int do_aio_writev(QEMUIOVector *qwhile (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;
Anthony Liguori
AppliedQuoted 10 lines · Christoph Hellwig
Fix two stupid bugs that I forgot to push out:
-
qiov->sizealready is in bytes, no need to shift it
- actually use the supplied patter in the writev commandSigned-off-by Christoph Hellwig <[email protected]>
Applied. Thanks.
Signature · 3 lines
Regards, Anthony Liguori