From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKrtl-0003PB-1Y for qemu-devel@nongnu.org; Mon, 31 Oct 2011 09:27:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RKrtj-00047J-SV for qemu-devel@nongnu.org; Mon, 31 Oct 2011 09:27:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RKrtj-000479-I2 for qemu-devel@nongnu.org; Mon, 31 Oct 2011 09:27:31 -0400 From: Kevin Wolf Date: Mon, 31 Oct 2011 14:29:39 +0100 Message-Id: <1320067830-12093-5-git-send-email-kwolf@redhat.com> In-Reply-To: <1320067830-12093-1-git-send-email-kwolf@redhat.com> References: <1320067830-12093-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 04/55] qcow2: fix some errors and typo in qcow2.txt 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 Signed-off-by: Kevin Wolf --- docs/specs/qcow2.txt | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/specs/qcow2.txt b/docs/specs/qcow2.txt index 8fc3cb2..e792953 100644 --- a/docs/specs/qcow2.txt +++ b/docs/specs/qcow2.txt @@ -108,8 +108,8 @@ as follows: refcount_block_entries = (cluster_size / sizeof(uint16_t)) - refcount_block_index = (offset / cluster_size) % refcount_table_entries - refcount_table_index = (offset / cluster_size) / refcount_table_entries + refcount_block_index = (offset / cluster_size) % refcount_block_entries + refcount_table_index = (offset / cluster_size) / refcount_block_entries refcount_block = load_cluster(refcount_table[refcount_table_index]); return refcount_block[refcount_block_index]; @@ -211,7 +211,7 @@ switch the active L1 table, so that a different set of host clusters are exposed to the guest. When creating a snapshot, the L1 table should be copied and the refcount of all -L2 tables and clusters reachable form this L1 table must be increased, so that +L2 tables and clusters reachable from this L1 table must be increased, so that a write causes a COW and isn't visible in other snapshots. When loading a snapshot, bit 63 of all entries in the new active L1 table and -- 1.7.6.4