Received: from eggs.gnu.org ([2001:4830:134:3::10]:45405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr5hu-0003lH-Kr for qemu-devel@nongnu.org; Thu, 12 Dec 2013 07:49:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vr5ho-0007pp-7l for qemu-devel@nongnu.org; Thu, 12 Dec 2013 07:49:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:13157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vr5hn-0007pe-T2 for qemu-devel@nongnu.org; Thu, 12 Dec 2013 07:49:28 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rBCCnRL2025875 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 12 Dec 2013 07:49:27 -0500 From: Markus Armbruster References: <1386836626-6436-1-git-send-email-famz@redhat.com> <1386836626-6436-2-git-send-email-famz@redhat.com> Date: Thu, 12 Dec 2013 13:49:24 +0100 In-Reply-To: <1386836626-6436-2-git-send-email-famz@redhat.com> (Fam Zheng's message of "Thu, 12 Dec 2013 16:23:37 +0800") Message-ID: <87k3facjzf.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v7 01/10] qapi: Add BlockOperationType enum List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, qemu-devel@nongnu.org, rjones@redhat.com, imain@redhat.com, stefanha@redhat.com, pbonzini@redhat.com Fam Zheng writes: > This adds the enum of all the operations that can be taken on a block > device. All operations? All blockable operations? Something else? > Signed-off-by: Fam Zheng > --- > qapi-schema.json | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 49 insertions(+) > > diff --git a/qapi-schema.json b/qapi-schema.json > index d6f8615..ef4d6af 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -1440,6 +1440,55 @@ > 'data': ['commit', 'stream', 'mirror', 'backup'] } > > ## > +# @BlockOperationType > +# Type of a block operation. (since 1.8) (since 2.0) > +# > +# @backup-source: As a backup source. See the 'drive-backup' command. > +# > +# @backup-target: As a backup target. See the 'drive-backup' command. > +# > +# @change: See the 'change' command. > +# > +# @commit: See the 'block-commit' command. > +# > +# @dataplane: The virtio-blk dataplane feature. > +# > +# @drive-del: See the 'drive_del' HMP command. > +# > +# @eject: See the 'eject' command. > +# > +# @external-snapshot: See the 'blockdev-snapshot-sync' command. > +# > +# @internal-snapshot: See the 'blockdev-snapshot-internal-sync' command. > +# > +# @internal-snapshot-delete: See the 'blockdev-snapshot-delete-internal-sync' command. > +# > +# @mirror: See the 'drive-mirror' command. > +# > +# @resize: See the 'block-resize' command. > +# > +# @stream: See the 'block-stream' command. > +# > +# Since: 1.8 Likewise. > +## > +{ 'enum': 'BlockOpType', > + 'data': [ > + 'backup-source', > + 'backup-target', > + 'change', > + 'commit', > + 'dataplane', > + 'drive-del', > + 'eject', > + 'external-snapshot', > + 'internal-snapshot', > + 'internal-snapshot-delete', > + 'mirror', > + 'resize', > + 'stream' > +] } > + > +## > # @BlockJobInfo: > # > # Information about a long-running block device operation.