diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-11-22 13:39:50 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-12-03 15:26:49 +0100 |
commit | 95de6d7078b029b73708059a17cef20f332adcb7 (patch) | |
tree | ddb611353feed44e3458c5dbe1eea53ea2b3cc10 /block/vhdx.c | |
parent | 97b00e285119e611f500686f32f9bccffbb9126a (diff) |
block drivers: add discard/write_zeroes properties to bdrv_get_info implementation
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/vhdx.c')
-rw-r--r-- | block/vhdx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/vhdx.c b/block/vhdx.c index ed6fa53b87..67bbe103a1 100644 --- a/block/vhdx.c +++ b/block/vhdx.c @@ -1049,6 +1049,9 @@ static int vhdx_get_info(BlockDriverState *bs, BlockDriverInfo *bdi) bdi->cluster_size = s->block_size; + bdi->unallocated_blocks_are_zero = + (s->params.data_bits & VHDX_PARAMS_HAS_PARENT) == 0; + return 0; } |