[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4 08/26] qcow2: Refcount overflow and qcow2_all
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v4 08/26] qcow2: Refcount overflow and qcow2_alloc_bytes() |
Date: |
Thu, 11 Dec 2014 11:12:59 +0000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Dec 03, 2014 at 02:37:28PM +0100, Max Reitz wrote:
> qcow2_alloc_bytes() may reuse a cluster multiple times, in which case
> the refcount is increased accordingly. However, if this would lead to an
> overflow the function should instead just not reuse this cluster and
> allocate a new one.
>
> Signed-off-by: Max Reitz <address@hidden>
> ---
> block/qcow2-refcount.c | 31 ++++++++++++++++++++++++++++++-
> 1 file changed, 30 insertions(+), 1 deletion(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
pgpYclCAPcm9e.pgp
Description: PGP signature
- Re: [Qemu-devel] [PATCH v4 05/26] qcow2: Use unsigned addend for update_refcount(), (continued)
[Qemu-devel] [PATCH v4 06/26] qcow2: Use 64 bits for refcount values, Max Reitz, 2014/12/03
[Qemu-devel] [PATCH v4 08/26] qcow2: Refcount overflow and qcow2_alloc_bytes(), Max Reitz, 2014/12/03
[Qemu-devel] [PATCH v4 07/26] qcow2: Respect error in qcow2_alloc_bytes(), Max Reitz, 2014/12/03
[Qemu-devel] [PATCH v4 09/26] qcow2: Helper for refcount array reallocation, Max Reitz, 2014/12/03
[Qemu-devel] [PATCH v4 10/26] qcow2: Helper function for refcount modification, Max Reitz, 2014/12/03
[Qemu-devel] [PATCH v4 11/26] qcow2: More helpers for refcount modification, Max Reitz, 2014/12/03