On 09/05/2014 08:07 AM, Max Reitz wrote: > Offsets taken from the L1, L2 and refcount tables are generally assumed > to be correctly aligned. However, this cannot be guaranteed if the image > has been written to by something different than qemu, thus check all > offsets taken from these tables for correct cluster alignment. > > Signed-off-by: Max Reitz <mre...@redhat.com> > --- > block/qcow2-cluster.c | 43 ++++++++++++++++++++++++++++++++++++++++--- > block/qcow2-refcount.c | 44 ++++++++++++++++++++++++++++++++++++++++++-- > 2 files changed, 82 insertions(+), 5 deletions(-) >
Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature