commit: Add filter-node-name to block-commit
commit0db832f42e445398b2815cd740e9cd915e7dd644
authorKevin Wolf <kwolf@redhat.com>
Mon, 20 Feb 2017 17:10:05 +0000 (20 18:10 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:47:50 +0000 (28 20:47 +0100)
tree1467fce4fb54cca14c499e128c69c71122026eb3
parent6cdbceb12cf955398df48eda94a45ca41e956c78
commit: Add filter-node-name to block-commit

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-commit 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>
Acked-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/commit.c
block/mirror.c
block/replication.c
blockdev.c
include/block/block_int.h
qapi/block-core.json
qemu-img.c