Re: [Qemu-devel] [RFC V3 06/24] qcow2: Add qcow2_dedup and related functions.

2012-12-11 Thread Stefan Hajnoczi
On Mon, Nov 26, 2012 at 02:05:05PM +0100, Benoît Canet wrote: > +/* > + * Compute the hash of a given cluster > + * > + * @data: a buffer containing the cluster data > + * @ret: a HASH_LENGTH long dynamically allocated array containing the hash > + */ > +static uint8_t *qcow2_compute_cluster_hash(

[Qemu-devel] [RFC V3 06/24] qcow2: Add qcow2_dedup and related functions.

2012-11-26 Thread Benoît Canet
Signed-off-by: Benoit Canet --- block/qcow2-dedup.c | 312 +++ block/qcow2.h | 13 +++ 2 files changed, 325 insertions(+) diff --git a/block/qcow2-dedup.c b/block/qcow2-dedup.c index e4e6108..a7c7202 100644 --- a/block/qcow2-dedup.c +++ b/