Received: from eggs.gnu.org ([2001:4830:134:3::10]:50718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbgds-0006JA-Au for qemu-devel@nongnu.org; Wed, 30 Oct 2013 21:01:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbgdm-0007FZ-A9 for qemu-devel@nongnu.org; Wed, 30 Oct 2013 21:01:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbgdm-0007FV-2O for qemu-devel@nongnu.org; Wed, 30 Oct 2013 21:01:38 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9V11aZS018183 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 30 Oct 2013 21:01:37 -0400 Date: Thu, 31 Oct 2013 09:01:34 +0800 From: Fam Zheng Message-ID: <20131031010134.GA27423@T430s.nay.redhat.com> References: <1382065965-30163-1-git-send-email-famz@redhat.com> <1382065965-30163-3-git-send-email-famz@redhat.com> <20131030172714.GP2807@dhcp-200-207.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131030172714.GP2807@dhcp-200-207.str.redhat.com> Subject: Re: [Qemu-devel] [PATCH v4 2/2] vmdk: Implment bdrv_get_specific_info Reply-To: famz@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org, stefanha@redhat.com On Wed, 10/30 18:27, Kevin Wolf wrote: > Am 18.10.2013 um 05:12 hat Fam Zheng geschrieben: > > Implement .bdrv_get_specific_info to return the extent information. > > > > Signed-off-by: Fam Zheng > > --- > > block/vmdk.c | 64 +++++++++++++++++++++++++++++++++++++++++++++- > > qapi-schema.json | 24 ++++++++++++++++- > > tests/qemu-iotests/059 | 2 +- > > tests/qemu-iotests/059.out | 5 ++-- > > 4 files changed, 89 insertions(+), 6 deletions(-) > > > > diff --git a/block/vmdk.c b/block/vmdk.c > > index 5a9f278..d7fe54a 100644 > > --- a/block/vmdk.c > > +++ b/block/vmdk.c > > @@ -106,17 +106,20 @@ typedef struct VmdkExtent { > > uint32_t l2_cache_counts[L2_CACHE_SIZE]; > > > > int64_t cluster_sectors; > > + char *type; > > } VmdkExtent; > > > > typedef struct BDRVVmdkState { > > CoMutex lock; > > uint64_t desc_offset; > > bool cid_updated; > > + uint32_t cid; > > Is it intentional that this field is never written to, i.e. we always > return cid == 0? Not intended, I wanted to dump the real cid, thanks for catching that. Will fix. Fam