From: Stefan Hajnoczi Date: Thu, 7 Feb 2013 16:15:05 +0000 (+0100) Subject: qcow2: support compressed clusters in BlockFragInfo X-Git-Tag: v1.5.0-rc0~571^2~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4db35162ea54d84c29074adfcff470ee2687e7b9;p=users%2Fdwmw2%2Fqemu.git qcow2: support compressed clusters in BlockFragInfo Signed-off-by: Stefan Hajnoczi --- 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