[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/12] qcow2: fix the byte endian convertion
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PATCH 02/12] qcow2: fix the byte endian convertion |
Date: |
Mon, 4 Jun 2012 13:13:19 +0200 |
From: Zhi Yong Wu <address@hidden>
Signed-off-by: Zhi Yong Wu <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
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
- [Qemu-devel] [PULL 00/12] Block patches, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 01/12] qcow2: remove a line of unnecessary code, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 02/12] qcow2: fix the byte endian convertion,
Kevin Wolf <=
- [Qemu-devel] [PATCH 06/12] stream: move rate limiting to a separate header file, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 05/12] stream: move is_allocated_above to block.c, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 10/12] qcow2: Support for fixing refcount inconsistencies, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 08/12] qemu-img check -r for repairing images, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 09/12] qemu-img check: Print fixed clusters and recheck, Kevin Wolf, 2012/06/04
- [Qemu-devel] [PATCH 07/12] Un-inline fdctrl_init_isa(), Kevin Wolf, 2012/06/04