diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-02-20 18:10:05 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-02-28 20:47:50 +0100 |
commit | 0db832f42e445398b2815cd740e9cd915e7dd644 (patch) | |
tree | 1467fce4fb54cca14c499e128c69c71122026eb3 /qemu-img.c | |
parent | 6cdbceb12cf955398df48eda94a45ca41e956c78 (diff) | |
download | qemu-0db832f42e445398b2815cd740e9cd915e7dd644.zip qemu-0db832f42e445398b2815cd740e9cd915e7dd644.tar.gz qemu-0db832f42e445398b2815cd740e9cd915e7dd644.tar.bz2 |
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>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -958,8 +958,8 @@ static int img_commit(int argc, char **argv) aio_context = bdrv_get_aio_context(bs); aio_context_acquire(aio_context); commit_active_start("commit", bs, base_bs, BLOCK_JOB_DEFAULT, 0, - BLOCKDEV_ON_ERROR_REPORT, common_block_job_cb, &cbi, - &local_err, false); + BLOCKDEV_ON_ERROR_REPORT, NULL, common_block_job_cb, + &cbi, &local_err, false); aio_context_release(aio_context); if (local_err) { goto done; |