Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvCaP-0003of-6T for qemu-devel@nongnu.org; Sat, 18 Apr 2009 11:36:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvCaO-0003oJ-IE for qemu-devel@nongnu.org; Sat, 18 Apr 2009 11:36:08 -0400 Received: from [199.232.76.173] (port=45673 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvCaO-0003oD-Ee for qemu-devel@nongnu.org; Sat, 18 Apr 2009 11:36:08 -0400 Received: from savannah.gnu.org ([199.232.41.3]:40155 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LvCaO-0005C9-42 for qemu-devel@nongnu.org; Sat, 18 Apr 2009 11:36:08 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LvCaN-0006iW-MJ for qemu-devel@nongnu.org; Sat, 18 Apr 2009 15:36:07 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LvCaN-0006iI-Dr for qemu-devel@nongnu.org; Sat, 18 Apr 2009 15:36:07 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Sat, 18 Apr 2009 15:36:07 +0000 Subject: [Qemu-devel] [7178] a couple of qemu-io fixes (Christoph Hellwig) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 Signed-off-by: Anthony Liguori 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;