summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf2017-02-20 18:10:05 +0100
committerKevin Wolf2017-02-28 20:47:50 +0100
commit6cdbceb12cf955398df48eda94a45ca41e956c78 (patch)
treee05156a6f9381ae98cdf8f7aaca0024b45e1bca6 /include/block
parentstream: Use real permissions in streaming block job (diff)
downloadqemu-6cdbceb12cf955398df48eda94a45ca41e956c78.tar.gz
qemu-6cdbceb12cf955398df48eda94a45ca41e956c78.tar.xz
qemu-6cdbceb12cf955398df48eda94a45ca41e956c78.zip
mirror: Add filter-node-name to blockdev-mirror
Management tools need to be able to know about every node in the graph and need a way to address them. Changing the graph structure was okay because libvirt doesn't really manage the node level yet, but future libvirt versions need to deal with both new and old version of qemu. This new option to blockdev-mirror allows the client to set a node-name for the automatically inserted filter driver, and at the same time serves as a witness for a future libvirt that this version of qemu does automatically insert a filter driver. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Acked-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block_int.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index a5c704bb5e..563b30c3ee 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -824,6 +824,9 @@ void commit_active_start(const char *job_id, BlockDriverState *bs,
* @on_source_error: The action to take upon error reading from the source.
* @on_target_error: The action to take upon error writing to the target.
* @unmap: Whether to unmap target where source sectors only contain zeroes.
+ * @filter_node_name: The node name that should be assigned to the filter
+ * driver that the mirror job inserts into the graph above @bs. NULL means that
+ * a node name should be autogenerated.
* @errp: Error object.
*
* Start a mirroring operation on @bs. Clusters that are allocated
@@ -837,7 +840,7 @@ void mirror_start(const char *job_id, BlockDriverState *bs,
MirrorSyncMode mode, BlockMirrorBackingMode backing_mode,
BlockdevOnError on_source_error,
BlockdevOnError on_target_error,
- bool unmap, Error **errp);
+ bool unmap, const char *filter_node_name, Error **errp);
/*
* backup_job_create: