qcow2: Update handle_copied() to support L2 slices
commitcde917662a71bea9a42ae00c23235384df654804
authorAlberto Garcia <berto@igalia.com>
Mon, 5 Feb 2018 14:33:22 +0000 (5 16:33 +0200)
committerMax Reitz <mreitz@redhat.com>
Tue, 13 Feb 2018 15:59:59 +0000 (13 16:59 +0100)
treebdad4b198950a10c8d0982e02ed57bedeeb13850
parenta002c0b09d3c48484225b268d0d3df8615d7f56c
qcow2: Update handle_copied() to support L2 slices

handle_copied() 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: 541ac001a7d6b86bab2392554bee53c2b312148c.1517840877.git.berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2-cluster.c