From patchwork Mon Dec 8 06:07:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Cody X-Patchwork-Id: 418580 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 559851400A0 for ; Mon, 8 Dec 2014 17:11:20 +1100 (AEDT) Received: from localhost ([::1]:60223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxrXS-0006q8-01 for incoming@patchwork.ozlabs.org; Mon, 08 Dec 2014 01:11:18 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxrUP-00023i-BS for qemu-devel@nongnu.org; Mon, 08 Dec 2014 01:08:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxrUH-0000xf-GB for qemu-devel@nongnu.org; Mon, 08 Dec 2014 01:08:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxrUH-0000xa-8O for qemu-devel@nongnu.org; Mon, 08 Dec 2014 01:08:01 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sB867wrZ023790 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Dec 2014 01:07:58 -0500 Received: from localhost (ovpn-112-44.phx2.redhat.com [10.3.112.44]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sB867u34027254 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Mon, 8 Dec 2014 01:07:57 -0500 From: Jeff Cody To: qemu-devel@nongnu.org Date: Mon, 8 Dec 2014 01:07:45 -0500 Message-Id: <5e582703e36450b9ca939e2e5c9fa3930030f7fe.1418018421.git.jcody@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, amulya.lokesha@emc.com, stefanha@redhat.com, mreitz@redhat.com Subject: [Qemu-devel] [PATCH 4/4] block: vhdx - set .bdrv_has_zero_init to bdrv_has_zero_init_1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 Reviewed-by: Max Reitz Reviewed-by: Max Reitz --- block/vhdx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/vhdx.c b/block/vhdx.c index ddefc2a..2bbb3ee 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, };