[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH] qcow2: Fix qcow2_get_cluster_offset() for zero
From: |
Max Reitz |
Subject: |
Re: [Qemu-block] [PATCH] qcow2: Fix qcow2_get_cluster_offset() for zero clusters |
Date: |
Wed, 4 Nov 2015 20:29:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 04.11.2015 18:16, Kevin Wolf wrote:
> When searching for contiguous zero clusters, we only need to check the
> cluster type. Before this patch, an increasing offset (L2E_OFFSET_MASK)
> was expected, so that the function never returned more than a single
> zero cluster in practice. This patch fixes it to actually return as many
> contiguous zero clusters as it can.
>
> Cc: address@hidden
> Signed-off-by: Kevin Wolf <address@hidden>
> ---
> block/qcow2-cluster.c | 15 +++++++++------
> 1 file changed, 9 insertions(+), 6 deletions(-)
Thanks, applied to my block tree:
https://github.com/XanClic/qemu/commits/block
signature.asc
Description: OpenPGP digital signature