diff options
author | Reda Sallahi <fullmanet@gmail.com> | 2016-07-07 10:42:49 +0200 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2016-07-13 13:41:39 +0200 |
commit | 524089bce43fd1cd3daaca979872451efa2cf7c6 (patch) | |
tree | 3101cfa7b9f5457ffdc6bfc2da4b8a5905d02b90 /blockdev.c | |
parent | f14a39ccb922ee123741ae2cf70a10eef9a650fc (diff) | |
download | qemu-524089bce43fd1cd3daaca979872451efa2cf7c6.zip qemu-524089bce43fd1cd3daaca979872451efa2cf7c6.tar.gz qemu-524089bce43fd1cd3daaca979872451efa2cf7c6.tar.bz2 |
vmdk: fix metadata write regression
Commit "cdeaf1f vmdk: add bdrv_co_write_zeroes" causes a regression on
writes. It writes metadata after every write instead of doing it only once
for each cluster.
vmdk_pwritev() writes metadata whenever m_data is set as valid so this patch
sets m_data as valid only when we have a new cluster which hasn't been
allocated before or a zero grain.
Signed-off-by: Reda Sallahi <fullmanet@gmail.com>
Message-id: 20160707084249.29084-1-fullmanet@gmail.com
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions