From patchwork Wed Aug 15 14:54:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benoit Canet X-Patchwork-Id: 177685 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5EB0B2C0086 for ; Thu, 16 Aug 2012 00:55:21 +1000 (EST) Received: from localhost ([::1]:44546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1f0B-0004cc-GI for incoming@patchwork.ozlabs.org; Wed, 15 Aug 2012 10:55:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1ezT-0002kI-8S for qemu-devel@nongnu.org; Wed, 15 Aug 2012 10:54:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1ezR-0004y1-T4 for qemu-devel@nongnu.org; Wed, 15 Aug 2012 10:54:35 -0400 Received: from mail-we0-f173.google.com ([74.125.82.173]:60276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1ezR-0004xs-MZ for qemu-devel@nongnu.org; Wed, 15 Aug 2012 10:54:33 -0400 Received: by weyz53 with SMTP id z53so1045398wey.4 for ; Wed, 15 Aug 2012 07:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Xykrv1Rfs9OMNH4RsCEe81/jP4WhzzuN9LUJolI0HGw=; b=Y09youGRiRk+h5bTYtZvReYCmL2hgf7cbde3Qk4bOOKkQ01SusvPzcKEqd8VM8DMQT 3I1dXNaYwrj09L2z7kmEi9TMWRtVz46n6SHlZ42m8U84eIC6HeR/UrGX5ryrXKGCjUPo aEQEUTjhXoevIrwIr2kT98k6ZiiM98xdaBo1iOn6/Jbtw1SeyUECq82TH+t2Bu0DRXA6 MGO/D0CP5lbGRJhafLrWdfd0N99QFHmRQ+p600s6F5OEowFXMWN5aJye9PTpH2CgEeVy LRLmA0N01/Q3l0jJ0g8IsjT7Gpq7uYDxY1GQj9pPT/s0Zo8VY1osMPp4QfPHaJWV2LqX CnLg== Received: by 10.180.107.2 with SMTP id gy2mr37719856wib.2.1345042472670; Wed, 15 Aug 2012 07:54:32 -0700 (PDT) Received: from Laure.box.in.irqsave.net (paradis.irqsave.net. [109.190.18.76]) by mx.google.com with ESMTPS id fb20sm5186009wid.1.2012.08.15.07.54.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 15 Aug 2012 07:54:32 -0700 (PDT) From: "=?UTF-8?q?Beno=C3=AEt=20Canet?=" To: qemu-devel@nongnu.org Date: Wed, 15 Aug 2012 16:54:25 +0200 Message-Id: <1345042466-31743-3-git-send-email-benoit@irqsave.net> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345042466-31743-1-git-send-email-benoit@irqsave.net> References: <1345042466-31743-1-git-send-email-benoit@irqsave.net> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.173 Cc: aliguori@us.ibm.com, stefanha@linux.vnet.ibm.com, pbonzini@redhat.com, eblake@redhat.com, xiawenc@linux.vnet.ibm.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= Subject: [Qemu-devel] [PATCH 2/3] qapi: Add ImageInfo. 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 Signed-off-by: Benoit Canet --- qapi-schema.json | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 8d4df19..488da90 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -150,6 +150,39 @@ 'vm-clock-sec': 'int' } } ## +# @ImageInfo: +# +# Information about a QEMU image file +# +# @filename: name of the image file +# +# @format: format of the image file +# +# @dirty-flag: true if image is not cleanly closed +# +# @cluster-size: size of a cluster in bytes +# +# @encrypted: true if the image is encrypted +# +# @actual-size: actual size on disk in bytes of the image +# +# @virtual-size: maximum capacity in bytes of the image +# +# @backing-filename: name of the backing file +# +# @snapshots: list of VM snapshots +# +# Since: 1.3 +# +## + +{ 'type': 'ImageInfo', + 'data': {'filename': 'str', 'format': 'str', 'dirty-flag': 'bool', + 'cluster-size': 'int', 'encrypted': 'bool', + 'actual-size': 'int', 'virtual-size': 'int', + 'backing-filename': 'str', 'snapshots': ['SnapshotInfo'] } } + +## # @StatusInfo: # # Information about VCPU run state