From 76dc9e0c8f369f1695e5413de2e28d69108476bb Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Fri, 16 Mar 2012 14:09:08 +0100 Subject: qcow2: Ignore reserved bits in refcount table entries Signed-off-by: Kevin Wolf --- block/qcow2.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'block/qcow2.h') diff --git a/block/qcow2.h b/block/qcow2.h index a22d7fafbe..291309a9e7 100644 --- a/block/qcow2.h +++ b/block/qcow2.h @@ -175,6 +175,8 @@ enum { #define L2E_OFFSET_MASK 0x00ffffffffffff00ULL #define L2E_COMPRESSED_OFFSET_SIZE_MASK 0x3fffffffffffffffULL +#define REFT_OFFSET_MASK 0xffffffffffffff00ULL + static inline int size_to_clusters(BDRVQcowState *s, int64_t size) { return (size + (s->cluster_size - 1)) >> s->cluster_bits; -- cgit v1.2.3