Signed-off-by: Benoit Canet <ben...@irqsave.net> --- block/qcow2-refcount.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 6a6719f..34a6a04 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -1158,6 +1158,14 @@ int qcow2_check_refcounts(BlockDriverState *bs, BdrvCheckResult *res, goto fail; } + if (s->has_dedup) { + ret = check_refcounts_l1(bs, res, refcount_table, nb_clusters, + s->dedup_table_offset, s->dedup_table_size, 0); + if (ret < 0) { + goto fail; + } + } + /* snapshots */ for(i = 0; i < s->nb_snapshots; i++) { sn = s->snapshots + i; -- 1.7.10.4