Skip to content

Commit cdf9ebf

Browse files
Vladimir Sementsov-OgievskiyXanClic
authored andcommitted
block/vhdx: drop unallocated_blocks_are_zero
vhdx doesn't have .bdrv_co_block_status handler, so DATA|ALLOCATED is always assumed for it in bdrv_co_block_status(). unallocated_blocks_are_zero is useless (it doesn't affect the only user of the field: bdrv_co_block_status()), drop it. Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> Reviewed-by: Eric Blake <[email protected]> Message-Id: <[email protected]> Signed-off-by: Max Reitz <[email protected]>
1 parent ac91856 commit cdf9ebf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

block/vhdx.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,9 +1164,6 @@ static int vhdx_get_info(BlockDriverState *bs, BlockDriverInfo *bdi)
11641164

11651165
bdi->cluster_size = s->block_size;
11661166

1167-
bdi->unallocated_blocks_are_zero =
1168-
(s->params.data_bits & VHDX_PARAMS_HAS_PARENT) == 0;
1169-
11701167
return 0;
11711168
}
11721169

0 commit comments

Comments
 (0)