From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD41h-0005IS-Jh for qemu-devel@nongnu.org; Mon, 10 Feb 2014 22:28:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WD41b-0001wh-Kr for qemu-devel@nongnu.org; Mon, 10 Feb 2014 22:28:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:10320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WD41b-0001wc-Ct for qemu-devel@nongnu.org; Mon, 10 Feb 2014 22:28:43 -0500 From: Fam Zheng Date: Tue, 11 Feb 2014 11:28:37 +0800 Message-Id: <1392089319-25307-4-git-send-email-famz@redhat.com> In-Reply-To: <1392089319-25307-1-git-send-email-famz@redhat.com> References: <1392089319-25307-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 3/5] block: Change BlockDriverInfo.cluster_size to 64 bits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, jcody@redhat.com, gentoo.integer@gmail.com, stefanha@redhat.com 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 --- 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