On 03/01/2018 10:27 AM, Alberto Garcia wrote:
'qemu-img check' cannot detect if a snapshot's L1 table is corrupted.
This patch checks the table's offset and size and reports corruption
if the values are not valid.

This patch doesn't add code to fix that corruption yet, only to detect
and report it.

Signed-off-by: Alberto Garcia <be...@igalia.com>
---
  block/qcow2-refcount.c     | 14 ++++++++++++++
  tests/qemu-iotests/080     |  2 ++
  tests/qemu-iotests/080.out | 20 ++++++++++++++++++++
  3 files changed, 36 insertions(+)


Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to