VMDK could have big cluster_size for monolithicFlat. It implements .bdrv_get_info now, a 32 bit field is likely to overflow.
Signed-off-by: Fam Zheng <f...@redhat.com> --- include/block/block.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/block/block.h b/include/block/block.h index 826b5da..3eb4e54 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -14,7 +14,7 @@ typedef struct BlockJob BlockJob; typedef struct BlockDriverInfo { /* in bytes, 0 if irrelevant */ - int cluster_size; + int64_t cluster_size; /* offset at which the VM state can be saved (0 if not possible) */ int64_t vm_state_offset; bool is_dirty; -- 1.8.5.4