qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC V6 26/33] qcow2: Add verification of dedup table.


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [RFC V6 26/33] qcow2: Add verification of dedup table.
Date: Fri, 8 Feb 2013 12:01:56 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Wed, Feb 06, 2013 at 01:31:59PM +0100, Benoît Canet wrote:
> Signed-off-by: Benoit Canet <address@hidden>
> ---
>  block/qcow2-refcount.c |    8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c
> index f6a80db..d7d9339 100644
> --- a/block/qcow2-refcount.c
> +++ b/block/qcow2-refcount.c
> @@ -1154,6 +1154,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;
> +        }
> +    }

I see patches later on modify the refcount checking functions to handle
dedup tables.  Please adjust the ordering of the patch series so those
patches come first.

Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]