]> git.proxmox.com Git - qemu.git/commit
gluster: Return bdrv_has_zero_init = 0
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Jun 2013 07:41:57 +0000 (09:41 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 12 Aug 2013 20:26:48 +0000 (15:26 -0500)
commiteedc9f46cfae88428e31e809e396eacc5d800a4f
tree4ea06a601784794339977215c8d146c067eced5a
parent90ce84993a1590074ce9b866ca389bb40b4f13b7
gluster: Return bdrv_has_zero_init = 0

GlusterFS volumes can be backed by block devices, in which case
bdrv_create() doesn't make sure that the image is zeroed out. It is
currently not possibly to detect whether a given image is backed by a
file or a block device, and incorrectly assuming that it is zeroed
corrupts images during qemu-img convert, so let's err on the side of
caution and always return 0.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 8ab6feec2c7500faafd9a4571fb40d03dd360a64)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/gluster.c