summary refs log tree commit diff stats
path: root/scripts/qapi/introspect.py
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-04-30 15:30:03 +0200
committerKevin Wolf <kwolf@redhat.com>2020-05-08 13:26:35 +0200
commit2821c1cc0f8cbfcc332387e83be746af6f27cb4f (patch)
tree8718cb3217caee3ec65fae3fc6ee98300aede534 /scripts/qapi/introspect.py
parent4dc20e6465eccd2466a449d3fb49539f5d9f53dd (diff)
downloadfocaccia-qemu-2821c1cc0f8cbfcc332387e83be746af6f27cb4f.tar.gz
focaccia-qemu-2821c1cc0f8cbfcc332387e83be746af6f27cb4f.zip
vmdk: Fix zero cluster allocation
m_data must contain valid data even for zero clusters when no cluster
was allocated in the image file. Without this, zero writes segfault with
images that have zeroed_grain=on.

For zero writes, we don't want to allocate a cluster in the image file
even in compressed files.

Fixes: 524089bce43fd1cd3daaca979872451efa2cf7c6
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200430133007.170335-3-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions