qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/7] qapi: add filter-node-name to block-stream


From: Eric Blake
Subject: Re: [PATCH 5/7] qapi: add filter-node-name to block-stream
Date: Mon, 20 Apr 2020 13:43:03 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 4/20/20 1:36 PM, Andrey Shinkevich wrote:
Provide the possibility to pass the 'filter-node-name' parameter to the
block-stream job as it is done for the commit block job.

Signed-off-by: Andrey Shinkevich <address@hidden>
---
  block/stream.c            | 5 +++--
  blockdev.c                | 8 +++++++-
  include/block/block_int.h | 7 ++++++-
  monitor/hmp-cmds.c        | 4 ++--
  qapi/block-core.json      | 6 ++++++
  5 files changed, 24 insertions(+), 6 deletions(-)


I haven't reviewed the mechanics of this series yet, but from the high-level UI perspective:


+++ b/qapi/block-core.json
@@ -2552,6 +2552,11 @@
  #            'stop' and 'enospc' can only be used if the block device
  #            supports io-status (see BlockInfo).  Since 1.3.
  #
+# @filter-node-name: the node name that should be assigned to the
+#                    filter driver that the stream job inserts into the graph
+#                    above @device. If this option is not given, a node name is
+#                    autogenerated. (Since: 5.0)

This should be 5.1, not 5.0.

+#
  # @auto-finalize: When false, this job will wait in a PENDING state after it 
has
  #                 finished its work, waiting for @block-job-finalize before
  #                 making any block graph changes.
@@ -2581,6 +2586,7 @@
    'data': { '*job-id': 'str', 'device': 'str', '*base': 'str',
              '*base-node': 'str', '*backing-file': 'str', '*speed': 'int',
              '*on-error': 'BlockdevOnError',
+            '*filter-node-name': 'str',
              '*auto-finalize': 'bool', '*auto-dismiss': 'bool' } }
##


--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]