]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainAttachDiskGeneric: Implement hotplug of <transient> disk
authorPeter Krempa <pkrempa@redhat.com>
Thu, 13 May 2021 11:05:27 +0000 (13:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 May 2021 18:38:08 +0000 (20:38 +0200)
commit2e94002d2ace4e4a6dbfc13a84fdab28f22c5c4a
treecf1f7f52c77373e9efe4844fa91fc4a9cac5d8be
parent34c3291139cf41c4a7c9b4a2cf5540a9f3a101aa
qemuDomainAttachDiskGeneric: Implement hotplug of <transient> disk

Add code which creates the transient overlay after hotplugging the disk
backend before attaching the disk frontend.

The state of the topmost image is modified to be already read-only to
prevent the need to open the image in read-write mode.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_hotplug.c