]> git.ipfire.org Git - thirdparty/libvirt.git/commit
backup: qemu: Add helper API for looking up node name
authorEric Blake <eblake@redhat.com>
Mon, 22 Jul 2019 16:22:05 +0000 (11:22 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 29 Jul 2019 13:15:11 +0000 (08:15 -0500)
commite3a4b8f461a204d531f9c04c3f196e07ae1a6c8e
tree7f50ae7c8623dc8d871b609a1202d068eeb6401a
parent5f4e079650361e1e762d40404d3c978dfe732beb
backup: qemu: Add helper API for looking up node name

Qemu bitmap operations require knowing the node name associated with
the format layer (the qcow2 file); as upcoming patches will be
grabbing that information frequently, make a helper function to access
it.

Another potential benefit of this function is that we have a single
place where we could insert a QMP node-name scraping call if we don't
currently know the node name, when -blockdev is not supported;
however, the goal is that we hopefully don't ever have to do that
because we instead scrape node names only at the point where they
change.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h