]> git.proxmox.com Git - qemu.git/commit - block/vmdk.c
VMDK: bugfix, align offset to cluster in get_whole_cluster
authorFam Zheng <famcool@gmail.com>
Tue, 12 Jul 2011 11:56:29 +0000 (19:56 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 19 Jul 2011 13:39:06 +0000 (15:39 +0200)
commit0e69c543946957fe8450ebb13874bb1ef280d55b
tree0c477bf0bcbbfb10c6681ced70f34570312c7c38
parentb3976d3c8b895e8929d133b80ef5e373b60cf357
VMDK: bugfix, align offset to cluster in get_whole_cluster

In get_whole_cluster, the offset is not aligned to cluster when reading
from backing_hd. When the first write to child is not at the cluster
boundary, wrong address data from parent is copied to child.

Signed-off-by: Fam Zheng <famcool@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c