From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51479) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4S7c-00036c-LA for qemu-devel@nongnu.org; Thu, 23 Aug 2012 03:46:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4S7X-0007qV-0V for qemu-devel@nongnu.org; Thu, 23 Aug 2012 03:46:32 -0400 Received: from paradis.irqsave.net ([109.190.18.76]:37140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4RwF-0004pJ-7d for qemu-devel@nongnu.org; Thu, 23 Aug 2012 03:34:47 -0400 Date: Thu, 23 Aug 2012 09:34:40 +0200 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20120823073440.GA2330@irqsave.net> References: <1345639535-8822-1-git-send-email-benoit@irqsave.net> <1345639535-8822-2-git-send-email-benoit@irqsave.net> <5034E6A2.7060900@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <5034E6A2.7060900@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V4 1/2] qapi: Add SnapshotInfo and ImageInfo. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: aliguori@us.ibm.com, =?iso-8859-1?Q?Beno=EEt?= Canet , stefanha@linux.vnet.ibm.com, qemu-devel@nongnu.org, pbonzini@redhat.com, xiawenc@linux.vnet.ibm.com > > +## > > +# @ImageInfo: > > +# > > +# Information about a QEMU image file > > +# > > +# @filename: name of the image file > > +# > > +# @format: format of the image file > > +# > > +# @virtual-size: maximum capacity in bytes of the image > > +# > > +# @actual-size: #optional actual size on disk in bytes of the image >=20 > That seems backwards - with a raw file, don't you know the actual size, > but have no idea what it can further grow to? Try the current qemy-img info on a raw file you will be surprised of the = results. This field also can have an "unavailable" value. example result with unpatched qemu-img: benoit@Laure:~/qemu$ qemu-img info truc1.raw=20 image: truc1.raw file format: raw virtual size: 1.0G (1073741824 bytes) disk size: 776M disk size is actual-size. Beno=EEt