aboutsummaryrefslogtreecommitdiff
path: root/block/qcow2-refcount.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-02-07 17:15:05 +0100
committerKevin Wolf <kwolf@redhat.com>2013-02-22 21:21:09 +0100
commit4db35162ea54d84c29074adfcff470ee2687e7b9 (patch)
tree25810b1f6aa50549e7a47df62dad75f4b32d1f6e /block/qcow2-refcount.c
parente6439d783cce2c5cdbe4f8028f0b45162b540f82 (diff)
qcow2: support compressed clusters in BlockFragInfo
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/qcow2-refcount.c')
-rw-r--r--block/qcow2-refcount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c
index 771b7b2850..55543edf77 100644
--- a/block/qcow2-refcount.c
+++ b/block/qcow2-refcount.c
@@ -968,6 +968,7 @@ static int check_refcounts_l2(BlockDriverState *bs, BdrvCheckResult *res,
if (flags & CHECK_FRAG_INFO) {
res->bfi.allocated_clusters++;
+ res->bfi.compressed_clusters++;
/* Compressed clusters are fragmented by nature. Since they
* take up sub-sector space but we only have sector granularity