qcow2: Update handle_alloc() to support L2 slices
commit6d99a344473b2c5e2906489e3587b952d9b84a83
authorAlberto Garcia <berto@igalia.com>
Mon, 5 Feb 2018 14:33:23 +0000 (5 16:33 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 13 Feb 2018 16:00:00 +0000 (13 17:00 +0100)
tree8a6e5cd1b8f2c7a78a8f31840001bccd7af696f2
parentcde917662a71bea9a42ae00c23235384df654804
qcow2: Update handle_alloc() to support L2 slices

handle_alloc() loads an L2 table and limits the number of checked
clusters to the amount that fits inside that table. Since we'll be
loading L2 slices instead of full tables we need to update that limit.

Apart from that, this function doesn't need any additional changes, so
this patch simply updates the variable name from l2_table to l2_slice.

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