diff options
| author | Fam Zheng | 2015-05-06 14:23:46 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2015-05-22 17:08:00 +0200 |
| commit | 5e82a31eb967db135fc4e688b134fb0972d62de3 (patch) | |
| tree | b6f4c435fd3a659d2733d7dbcd1a477c50c17067 /include/exec/exec-all.h | |
| parent | nvme: support NVME_VOLATILE_WRITE_CACHE feature (diff) | |
| download | qemu-5e82a31eb967db135fc4e688b134fb0972d62de3.tar.gz qemu-5e82a31eb967db135fc4e688b134fb0972d62de3.tar.xz qemu-5e82a31eb967db135fc4e688b134fb0972d62de3.zip | |
vmdk: Fix next_cluster_sector for compressed write
This fixes the bug introduced by commit c6ac36e (vmdk: Optimize cluster
allocation).
Sometimes, write_len could be larger than cluster size, because it
contains both data and marker. We must advance next_cluster_sector in
this case, otherwise the image gets corrupted.
Cc: qemu-stable@nongnu.org
Reported-by: Antoni Villalonga <qemu-list@friki.cat>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions
