vmdk: Fix partial overwrite of zero cluster
commit4823cde58eb507fcdcc0225b087343439a6cb43c
authorKevin Wolf <kwolf@redhat.com>
Thu, 30 Apr 2020 13:30:04 +0000 (30 15:30 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 May 2020 11:26:35 +0000 (8 13:26 +0200)
treec5f7a6a484cedfc898039086b4ae5f3e98d561d1
parent2821c1cc0f8cbfcc332387e83be746af6f27cb4f
vmdk: Fix partial overwrite of zero cluster

When overwriting a zero cluster, we must not perform copy-on-write from
the backing file, but from a zeroed buffer.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200430133007.170335-4-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c