Skip to content

Commit

Permalink
qcow2: support compressed clusters in BlockFragInfo
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  • Loading branch information
stefanhaRH authored and kevmw committed Feb 22, 2013
1 parent e6439d7 commit 4db3516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/qcow2-refcount.c
Expand Up @@ -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
Expand Down

0 comments on commit 4db3516

Please sign in to comment.