From nobody Tue Feb 10 06:04:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1515700821676338.3517747947601; Thu, 11 Jan 2018 12:00:21 -0800 (PST) Received: from localhost ([::1]:38107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZj1Q-0003Id-HK for importer@patchew.org; Thu, 11 Jan 2018 15:00:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZiuG-0004sh-7O for qemu-devel@nongnu.org; Thu, 11 Jan 2018 14:53:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZiuF-00005L-Bm for qemu-devel@nongnu.org; Thu, 11 Jan 2018 14:52:56 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35153) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZiuC-0008Tp-0Q; Thu, 11 Jan 2018 14:52:52 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EE7017CBAB; Thu, 11 Jan 2018 19:52:50 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.118.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5F744171A4; Thu, 11 Jan 2018 19:52:39 +0000 (UTC) From: Kevin Wolf To: qemu-block@nongnu.org Date: Thu, 11 Jan 2018 20:52:16 +0100 Message-Id: <20180111195225.4226-2-kwolf@redhat.com> In-Reply-To: <20180111195225.4226-1-kwolf@redhat.com> References: <20180111195225.4226-1-kwolf@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 11 Jan 2018 19:52:51 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [RFC PATCH 01/10] block/qapi: Introduce BlockdevCreateOptions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, pkrempa@redhat.com, qemu-devel@nongnu.org, mreitz@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This creates a BlockdevCreateOptions union type that will contain all of the options for image creation. We'll start out with an empty struct type BlockdevCreateDummy for all drivers. Signed-off-by: Kevin Wolf --- qapi/block-core.json | 64 ++++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 64 insertions(+) diff --git a/qapi/block-core.json b/qapi/block-core.json index e94a6881b2..1749376c61 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -3320,6 +3320,70 @@ { 'command': 'blockdev-del', 'data': { 'node-name': 'str' } } =20 ## +# @BlockdevCreateDummy: +# +# FIXME To be removed. Only there to make the QAPI generator happy while w= e're +# adding driver by driver. Leaving out union branches is not allowed. +# +# Since: 2.12 +## +{ 'struct': 'BlockdevCreateDummy', 'data': {}} + +## +# @BlockdevCreateOptions: +# +# Options for creating an image format on a given node. +# +# @driver block driver to create the image format +# @node node to create the image format on +# +# Since: 2.12 +## +{ 'union': 'BlockdevCreateOptions', + 'base': { + 'driver': 'BlockdevDriver', + 'node': 'BlockdevRef' }, + 'discriminator': 'driver', + 'data': { + 'blkdebug': 'BlockdevCreateDummy', + 'blkverify': 'BlockdevCreateDummy', + 'bochs': 'BlockdevCreateDummy', + 'cloop': 'BlockdevCreateDummy', + 'dmg': 'BlockdevCreateDummy', + 'file': 'BlockdevCreateDummy', + 'ftp': 'BlockdevCreateDummy', + 'ftps': 'BlockdevCreateDummy', + 'gluster': 'BlockdevCreateDummy', + 'host_cdrom': 'BlockdevCreateDummy', + 'host_device': 'BlockdevCreateDummy', + 'http': 'BlockdevCreateDummy', + 'https': 'BlockdevCreateDummy', + 'iscsi': 'BlockdevCreateDummy', + 'luks': 'BlockdevCreateDummy', + 'nbd': 'BlockdevCreateDummy', + 'nfs': 'BlockdevCreateDummy', + 'null-aio': 'BlockdevCreateDummy', + 'null-co': 'BlockdevCreateDummy', + 'parallels': 'BlockdevCreateDummy', + 'qcow2': 'BlockdevCreateDummy', + 'qcow': 'BlockdevCreateDummy', + 'qed': 'BlockdevCreateDummy', + 'quorum': 'BlockdevCreateDummy', + 'raw': 'BlockdevCreateDummy', + 'rbd': 'BlockdevCreateDummy', + 'replication': 'BlockdevCreateDummy', + 'sheepdog': 'BlockdevCreateDummy', + 'ssh': 'BlockdevCreateDummy', + 'throttle': 'BlockdevCreateDummy', + 'vdi': 'BlockdevCreateDummy', + 'vhdx': 'BlockdevCreateDummy', + 'vmdk': 'BlockdevCreateDummy', + 'vpc': 'BlockdevCreateDummy', + 'vvfat': 'BlockdevCreateDummy', + 'vxhs': 'BlockdevCreateDummy' + } } + +## # @blockdev-open-tray: # # Opens a block device's tray. If there is a block driver state tree inser= ted as --=20 2.13.6