]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2-refcount.c
qcow2: Check snapshot L1 tables in qcow2_check_metadata_overlap()
authorAlberto Garcia <berto@igalia.com>
Tue, 6 Mar 2018 16:14:09 +0000 (18:14 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commitc7a9d81d7061a7fb3b5b5726a6f139444e1ad5e6
tree44b21981894d20caf3d27c5ce3d2e22fd0dde866
parentc9a442e45094e693da45f0e3d03746d68e4460ec
qcow2: Check snapshot L1 tables in qcow2_check_metadata_overlap()

The inactive-l2 overlap check iterates uses the L1 tables from all
snapshots, but it does not validate them first.

We now have a function to take care of this, so let's use it.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c
tests/qemu-iotests/080
tests/qemu-iotests/080.out