]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: store complete agent filesystem information
authorJonathon Jongsma <jjongsma@redhat.com>
Fri, 10 Jan 2020 23:32:11 +0000 (17:32 -0600)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 16 Jan 2020 15:35:46 +0000 (16:35 +0100)
commitbdb8a800b4920cf9184fd2fd117b17c67ba74dfb
treeb69300106c030ae91da60ea802f0544025e883e4
parente888c0f66752bb6516d63a612c20f565cbf9c0ca
qemu: store complete agent filesystem information

In an effort to avoid holding both an agent and normal job at the same
time, we shouldn't access the vm definition from within qemu_agent.c
(i.e. while the agent job is being held). In preparation, we need to
store the full filesystem disk information in qemuAgentDiskInfo.  In a
following commit, we can pass this information back to the caller and
the caller can search the vm definition to match the filsystem disk to
an alias.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_agent.c