From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57960) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfY7I-00048s-2L for qemu-devel@nongnu.org; Fri, 15 Jun 2012 11:07:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfY7D-000507-6i for qemu-devel@nongnu.org; Fri, 15 Jun 2012 11:07:15 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:47190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfY7C-0004gs-Tb for qemu-devel@nongnu.org; Fri, 15 Jun 2012 11:07:11 -0400 Received: by mail-pb0-f45.google.com with SMTP id ro12so5648793pbb.4 for ; Fri, 15 Jun 2012 08:07:10 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 15 Jun 2012 17:05:41 +0200 Message-Id: <1339772759-31004-19-git-send-email-pbonzini@redhat.com> In-Reply-To: <1339772759-31004-1-git-send-email-pbonzini@redhat.com> References: <1339772759-31004-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [RFC PATCH 18/36] block: make device optional in BlockInfo List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@linux.vnet.ibm.com, lcapitulino@redhat.com Targets of a mirroring operation will not have a device. Once we have -blockdev or equivalent, "detached" block devices and non-anonymous backing files also will not have a device. Signed-off-by: Paolo Bonzini --- qapi-schema.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 3c99dbb..93205af 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -437,7 +437,8 @@ # Block device information. This structure describes a virtual device and # the backing device associated with it. # -# @device: The device name associated with the virtual device. +# @device: #optional The device name associated with the virtual device. +# Always included in the output of query-block. # # @type: This field is returned only for compatibility reasons, it should # not be used (always returns 'unknown') @@ -459,7 +460,7 @@ # Since: 0.14.0 ## { 'type': 'BlockInfo', - 'data': {'device': 'str', 'type': 'str', 'removable': 'bool', + 'data': {'*device': 'str', 'type': 'str', 'removable': 'bool', 'locked': 'bool', '*inserted': 'BlockDeviceInfo', '*tray_open': 'bool', '*io-status': 'BlockDeviceIoStatus'} } -- 1.7.10.2