qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v4 09/26] qcow2: Helper for refcount array reall


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v4 09/26] qcow2: Helper for refcount array reallocation
Date: Thu, 11 Dec 2014 11:26:54 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Dec 03, 2014 at 02:37:29PM +0100, Max Reitz wrote:
> Add a helper function for reallocating a refcount array, independent of
> the refcount order. The newly allocated space is zeroed and the function
> handles failed reallocations gracefully.
> 
> The helper function will always align the buffer size to a cluster
> boundary; if storing the refcounts in such an array in big endian byte
> order, this makes it possible to write parts of the array directly as
> refcount blocks into the image file.
> 
> Signed-off-by: Max Reitz <address@hidden>
> ---
>  block/qcow2-refcount.c | 137 
> +++++++++++++++++++++++++++++++------------------
>  1 file changed, 88 insertions(+), 49 deletions(-)

Reviewed-by: Stefan Hajnoczi <address@hidden>

Attachment: pgpqQwsm7rzjv.pgp
Description: PGP signature


reply via email to

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