From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UteGC-00017u-2p for qemu-devel@nongnu.org; Mon, 01 Jul 2013 09:35:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UteG5-0005Ti-EV for qemu-devel@nongnu.org; Mon, 01 Jul 2013 09:35:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UteG5-0005TN-4y for qemu-devel@nongnu.org; Mon, 01 Jul 2013 09:35:09 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r61DZ8Sr029127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 1 Jul 2013 09:35:08 -0400 Date: Mon, 1 Jul 2013 15:14:56 +0200 From: Stefan Hajnoczi Message-ID: <20130701131456.GA20182@stefanha-thinkpad.redhat.com> References: <1372649597-8078-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1372649597-8078-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH] vmdk: Implement .bdrv_has_zero_init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Kevin Wolf , qemu-devel@nongnu.org On Mon, Jul 01, 2013 at 11:33:17AM +0800, Fam Zheng wrote: > Depending on the subformat, has_zero_init queries underlying storage for > flat extent. If it has a flat extent and its underlying storage doesn't > have zero init, return 0. Otherwise return 1. > > Aligns the operator assignments. > > Signed-off-by: Fam Zheng > --- > block/vmdk.c | 48 +++++++++++++++++++++++++++++++++--------------- > 1 file changed, 33 insertions(+), 15 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan