]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Fix bdrv_has_zero_init() use in convert
authorMax Reitz <mreitz@redhat.com>
Wed, 24 Jul 2019 17:12:29 +0000 (19:12 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 19 Aug 2019 15:13:26 +0000 (17:13 +0200)
commit4d7c487eac1652dfe4498fe84f32900ad461d61b
tree5f990d40e76ae167306c080e8d9f7126061e17c6
parent672de729a1f93d84e7597652b1125ab5d62421d8
qemu-img: Fix bdrv_has_zero_init() use in convert

bdrv_has_zero_init() only has meaning for newly created images or image
areas.  If qemu-img convert did not create the image itself, it cannot
rely on bdrv_has_zero_init()'s result to carry any meaning.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190724171239.8764-2-mreitz@redhat.com
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c