[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH 1/2] qcow2: Make size_to_clusters() return int6
From: |
Max Reitz |
Subject: |
Re: [Qemu-stable] [PATCH 1/2] qcow2: Make size_to_clusters() return int64_t |
Date: |
Tue, 8 Sep 2015 22:17:00 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 08.09.2015 22:09, Max Reitz wrote:
> Sadly, some images may have more clusters than what can be represented
> using a plain int. We should be prepared for that case (in
> qcow2_check_refcounts() we actually were trying to catch that case, but
> since size_to_clusters() truncated the returned value, that check never
> did anything useful).
>
Cc: qemu-stable <address@hidden>
> Signed-off-by: Max Reitz <address@hidden>
> ---
> block/qcow2-cluster.c | 20 +++++++++++---------
> block/qcow2.h | 2 +-
> 2 files changed, 12 insertions(+), 10 deletions(-)
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-stable] [PATCH 1/2] qcow2: Make size_to_clusters() return int64_t,
Max Reitz <=