]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Support external data file in qemu-img check
authorKevin Wolf <kwolf@redhat.com>
Wed, 27 Feb 2019 16:26:40 +0000 (17:26 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 Mar 2019 11:26:46 +0000 (12:26 +0100)
commite9f5b6deaa865e5265327de42b77553840c94880
tree085a30d0dc449a1430323ca76b3edb66c342bb00
parentaa8b34c1b21b8a977de0293cfba9fb91ed14350d
qcow2: Support external data file in qemu-img check

For external data files, data clusters must be excluded from the
refcount calculations. Instead, an implicit refcount of 1 is assumed for
the COPIED flag.

Compressed clusters and internal snapshots are incompatible with
external data files, so print an error if they are in use for images
with an external data file.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c