[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 14/30] qcow2: Add cluster type parameter to qcow2_get_host
From: |
Max Reitz |
Subject: |
Re: [PATCH v4 14/30] qcow2: Add cluster type parameter to qcow2_get_host_offset() |
Date: |
Wed, 8 Apr 2020 14:15:29 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
On 17.03.20 19:16, Alberto Garcia wrote:
> This function returns an integer that can be either an error code or a
> cluster type (a value from the QCow2ClusterType enum).
>
> We are going to start using subcluster types instead of cluster types
> in some functions so it's better to use the exact data types instead
> of integers for clarity and in order to detect errors more easily.
>
> This patch makes qcow2_get_host_offset() return 0 on success and
> puts the returned cluster type in a separate parameter. There are no
> semantic changes.
>
> Signed-off-by: Alberto Garcia <address@hidden>
> ---
> block/qcow2.h | 3 ++-
> block/qcow2-cluster.c | 11 +++++++----
> block/qcow2.c | 37 ++++++++++++++++++++++---------------
> 3 files changed, 31 insertions(+), 20 deletions(-)
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
- Re: [PATCH v4 14/30] qcow2: Add cluster type parameter to qcow2_get_host_offset(),
Max Reitz <=