]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2: Prepare qcow2_co_block_status() for data file
authorKevin Wolf <kwolf@redhat.com>
Wed, 27 Feb 2019 12:22:56 +0000 (13:22 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 Mar 2019 11:26:45 +0000 (12:26 +0100)
commit37be14036b1a7ae066f76d3296bbd37b0c697637
tree2ff2be43bce66ac98a692709dab8bfa287823146
parent77e023ff79222191e8cc3d377504da8f19926837
qcow2: Prepare qcow2_co_block_status() for data file

Offset 0 cannot be assumed to mean an unallocated cluster any more.
Instead, the cluster type needs to be checked.

*file must refer to the data file instead of the image file if a valid
offset is returned from qcow2_co_block_status().

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