qcow2: Check snapshot L1 table in qcow2_snapshot_goto()
commita8475d7573c0598ba8f92f84534110218ee11e3d
authorAlberto Garcia <berto@igalia.com>
Tue, 6 Mar 2018 16:14:10 +0000 (6 18:14 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (9 15:17 +0100)
tree6eac36e365caf359d4cee2eb80b462b27e85e53c
parentc7a9d81d7061a7fb3b5b5726a6f139444e1ad5e6
qcow2: Check snapshot L1 table in qcow2_snapshot_goto()

This function copies a snapshot's L1 table into the active one without
validating it first.

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

Cc: Eric Blake <eblake@redhat.com>
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-snapshot.c
tests/qemu-iotests/080
tests/qemu-iotests/080.out