]> git.proxmox.com Git - mirror_qemu.git/commit - block/vdi.c
vdi: Fix .bdrv_has_zero_init()
authorMax Reitz <mreitz@redhat.com>
Wed, 24 Jul 2019 17:12:35 +0000 (19:12 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 19 Aug 2019 15:13:26 +0000 (17:13 +0200)
commit0a28bf2826ca027f0d993388f118b0bdbfca73a9
tree5a4819543d89ac1af2c7635334a20d9005993902
parent38841dcd27a41e2d8916b7cf4f508a5663f453ff
vdi: Fix .bdrv_has_zero_init()

Static VDI images cannot guarantee to be zero-initialized.  If the image
has been statically allocated, forward the call to the underlying
storage node.

Reported-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Stefano Garzarella <sgarzare@redhat.com>
Tested-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20190724171239.8764-8-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/vdi.c