aboutsummaryrefslogtreecommitdiff
path: root/block/vhdx.c
diff options
context:
space:
mode:
authorJeff Cody <jcody@redhat.com>2014-12-08 01:07:45 -0500
committerStefan Hajnoczi <stefanha@redhat.com>2014-12-12 16:35:35 +0000
commit85b712c9d5b873562c864e72f69cbf0d87d2fe40 (patch)
tree83286689f3dea81a5830d7da600b136ec5f5470f /block/vhdx.c
parent3f394472c5bca59de5cab9baafdff1984b0213a3 (diff)
block: vhdx - set .bdrv_has_zero_init to bdrv_has_zero_init_1
Now that new VHDX images will default to BAT block states of PAYLOAD_BLOCK_ZERO, we can indicate that VHDX has zero init. Signed-off-by: Jeff Cody <jcody@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 5e582703e36450b9ca939e2e5c9fa3930030f7fe.1418018421.git.jcody@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/vhdx.c')
-rw-r--r--block/vhdx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/vhdx.c b/block/vhdx.c
index 46d504c96c..06f2b1a0cb 100644
--- a/block/vhdx.c
+++ b/block/vhdx.c
@@ -1956,6 +1956,7 @@ static BlockDriver bdrv_vhdx = {
.bdrv_create = vhdx_create,
.bdrv_get_info = vhdx_get_info,
.bdrv_check = vhdx_check,
+ .bdrv_has_zero_init = bdrv_has_zero_init_1,
.create_opts = &vhdx_create_opts,
};