diff options
author | Alberto Garcia <berto@igalia.com> | 2018-02-05 16:33:27 +0200 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2018-02-13 17:00:00 +0100 |
commit | 83ad165be74420bc5bbf0fe4f62b6f53b1fb6004 (patch) | |
tree | 8879f737e602c34cb217686db8ee379d5e3ddf7b /block/qcow2-cluster.c | |
parent | ca62dd5c2b1897a187c841371fef88263639ce0d (diff) |
qcow2: Update qcow2_update_snapshot_refcount() to support L2 slices
qcow2_update_snapshot_refcount() increases the refcount of all
clusters of a given snapshot. In order to do that it needs to load all
its L2 tables and iterate over their entries. Since we'll be loading
L2 slices instead of full tables we need to add an extra loop that
iterates over all slices of each L2 table.
This function doesn't need any additional changes so apart from that
this patch simply updates the variable name from l2_table to l2_slice.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: 5f4db199b9637f4833b58487135124d70add8cf0.1517840877.git.berto@igalia.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/qcow2-cluster.c')
0 files changed, 0 insertions, 0 deletions