qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] a couple of qemu-io fixes
@ 2009-04-09 20:29 Christoph Hellwig
  2009-04-18 15:40 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2009-04-09 20:29 UTC (permalink / raw)
  To: qemu-devel

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 <hch@lst.de>

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;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] a couple of qemu-io fixes
  2009-04-09 20:29 [Qemu-devel] [PATCH] a couple of qemu-io fixes Christoph Hellwig
@ 2009-04-18 15:40 ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2009-04-18 15:40 UTC (permalink / raw)
  To: qemu-devel

Christoph Hellwig wrote:
> 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 <hch@lst.de>
>
>   

Applied.  Thanks.

-- 
Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-18 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-09 20:29 [Qemu-devel] [PATCH] a couple of qemu-io fixes Christoph Hellwig
2009-04-18 15:40 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).