From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbVEE-0004H6-6C for qemu-devel@nongnu.org; Mon, 04 Jun 2012 07:13:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SbVE8-0005yI-1e for qemu-devel@nongnu.org; Mon, 04 Jun 2012 07:13:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SbVE7-0005y3-Pf for qemu-devel@nongnu.org; Mon, 04 Jun 2012 07:13:35 -0400 From: Kevin Wolf Date: Mon, 4 Jun 2012 13:13:19 +0200 Message-Id: <1338808409-19501-3-git-send-email-kwolf@redhat.com> In-Reply-To: <1338808409-19501-1-git-send-email-kwolf@redhat.com> References: <1338808409-19501-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 02/12] qcow2: fix the byte endian convertion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 812c93c..443c021 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -367,7 +367,7 @@ static int alloc_refcount_block(BlockDriverState *bs, } for(i = 0; i < table_size; i++) { - cpu_to_be64s(&new_table[i]); + be64_to_cpus(&new_table[i]); } /* Hook up the new refcount table in the qcow2 header */ -- 1.7.6.5