From: Jeff Cody <jc...@redhat.com>

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 <jc...@redhat.com>
Reviewed-by: Max Reitz <mre...@redhat.com>
Message-id: 
5e582703e36450b9ca939e2e5c9fa3930030f7fe.1418018421.git.jc...@redhat.com
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
---
 block/vhdx.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/block/vhdx.c b/block/vhdx.c
index 46d504c..06f2b1a 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,
 };
-- 
2.1.0


Reply via email to