OSDN Git Service

qcow2: Update get_cluster_table() to support L2 slices
authorAlberto Garcia <berto@igalia.com>
Mon, 5 Feb 2018 14:33:19 +0000 (16:33 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 13 Feb 2018 15:59:59 +0000 (16:59 +0100)
commitc03bfc5bba594a961ddc3c755fd4c0e45c41bae4
treebfb6578be9f4b78a4f249f85ebceee95f244cef1
parent05f9ee4689b71e726c46e7477020ac4bf4814109
qcow2: Update get_cluster_table() to support L2 slices

This patch updates get_cluster_table() to return L2 slices instead of
full L2 tables.

The code itself needs almost no changes, it only needs to call
offset_to_l2_slice_index() instead of offset_to_l2_index(). This patch
also renames all the relevant variables and the documentation.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 64cf064c0021ba315d3f3032da0f95db1b615f33.1517840877.git.berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c