Skip to contentSkip to conversation

a couple of qemu-io fixes

PATCH Applied Christoph Hellwig 2 participants 2 messages Apr 9, 2009 – Apr 18, 2009

lore
Share & tools
lore
#0 lore raw

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

qemu-io.c +2 -2
Index: qemu/qemu-io.c
===================================================================
@@ -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;
 
#1 lore raw
Quoted 10 lines · 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

Applied. Thanks.

Signature · 3 lines
Regards,

Anthony Liguori