Received: from eggs.gnu.org ([208.118.235.92]:50799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPCD1-0001Xv-HJ for qemu-devel@nongnu.org; Mon, 08 Apr 2013 09:34:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPCCt-0004fY-Kl for qemu-devel@nongnu.org; Mon, 08 Apr 2013 09:34:07 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:62213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPCCt-0004f8-E0 for qemu-devel@nongnu.org; Mon, 08 Apr 2013 09:33:59 -0400 Received: by mail-wg0-f50.google.com with SMTP id k13so5894370wgh.29 for ; Mon, 08 Apr 2013 06:33:58 -0700 (PDT) Date: Mon, 8 Apr 2013 15:33:54 +0200 From: Stefan Hajnoczi Message-ID: <20130408133354.GB4429@stefanha-thinkpad.redhat.com> References: <1364903250-10429-1-git-send-email-xiawenc@linux.vnet.ibm.com> <1364903250-10429-12-git-send-email-xiawenc@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1364903250-10429-12-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH V11 11/17] qmp: add ImageInfo in BlockDeviceInfo used by query-block List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wenchao Xia Cc: kwolf@redhat.com, armbru@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, pbonzini@redhat.com On Tue, Apr 02, 2013 at 07:47:24PM +0800, Wenchao Xia wrote: > diff --git a/qmp-commands.hx b/qmp-commands.hx > index 6b20684..b856be7 100644 > --- a/qmp-commands.hx > +++ b/qmp-commands.hx > @@ -1703,6 +1703,47 @@ Each json-object contain the following: > - "iops": limit total I/O operations per second (json-int) > - "iops_rd": limit read operations per second (json-int) > - "iops_wr": limit write operations per second (json-int) > + - "image": the detail of the image, it is a json-object containing > + the following: > + - "filename": image file name (json-string) > + - "format": image format (json-string) > + - "virtual-size": image capacity in bytes (json-int) > + - "dirty-flag": true if image is not cleanly closed, not present > + means clean (json-bool, optional) > + - "actual-size": actual size on disk in bytes of the image, not > + present when image does not support thin > + provision (json-int, optional) > + - "cluster-size": size of a cluster in bytes, not present if image > + format does not support it (json-int, optional) > + - "encrypted": true if the image is encrypted, not present means > + false or the image format does not support > + encryption (json-bool, optional) > + - "backing_file": backing file name, not present means no backing > + file is used or the image format does not > + support backing file chain > + (json-string, optional) > + - "full-backing-filename": full path of the backing file, not > + present if it equals backing_file or no > + backing file is used > + (json-string, optional) > + - "backing-filename-format": the format of the backing file, not > + present means unknown or no backing > + file (json-string, optional) > + - "snapshots": the internal snapshot info, it is an optional list > + of json-object containing the following: > + - "id": unique snapshot id (json-string) > + - "name": snapshot name (json-string) > + - "vm-state-size": size of the VM state in bytes (json-int) > + - "date-sec": UTC date of the snapshot in seconds (json-int) > + - "date-nsec": fractional part in nanoseconds to be used with > + date-sec(json-int) > + - "vm-clock-sec": VM clock relative to boot in seconds > + (json-int) > + - "vm-clock-nsec": fractional part in nanoseconds to be used > + with vm-clock-sec (json-int) > + - "backing-image": the detail of the backing image, it is an > + optional json-object only present when a > + backing image present for this image Please don't duplicate the ImageInfo documentation from qapi-schema.json. I'm not sure how the documentation gets generated but we need to avoid this, otherwise it will quickly get out of sync. Stefan