]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Replace QCOW2_CLUSTER_* with QCOW2_SUBCLUSTER_*
authorAlberto Garcia <berto@igalia.com>
Fri, 10 Jul 2020 16:13:00 +0000 (18:13 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 25 Aug 2020 06:33:20 +0000 (08:33 +0200)
commit10dabdc5966759f8c6d9bba5ca80f4ec621f4636
tree440dac2a6f554e7b351b9abf6c75c63884be5c9f
parentca4a0bb81b5259e326a30b758959911459d2a266
qcow2: Replace QCOW2_CLUSTER_* with QCOW2_SUBCLUSTER_*

In order to support extended L2 entries some functions of the qcow2
driver need to start dealing with subclusters instead of clusters.

qcow2_get_host_offset() is modified to return the subcluster type
instead of the cluster type, and all callers are updated to replace
all values of QCow2ClusterType with their QCow2SubclusterType
equivalents.

This patch only changes the data types, there are no semantic changes.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <f6c29737c295f32cbee74c903c30b01820363b34.1594396418.git.berto@igalia.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c
block/qcow2.c
block/qcow2.h