]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Initialize proper element in qemuDomainPrepareStorageSourceBlockdev
authorPeter Krempa <pkrempa@redhat.com>
Tue, 9 Oct 2018 08:55:00 +0000 (10:55 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 5 Dec 2018 16:53:26 +0000 (17:53 +0100)
commit58da6e3c267922f0c723c97476dc4087baf5efe0
tree085c981c12068611521bdaefbfb25ae54bccfc98
parentb0ae508344062380e22f5f9306bf221ff38fc510
qemu: domain: Initialize proper element in qemuDomainPrepareStorageSourceBlockdev

We are preparing a certain disk source passed in as '@src' so the
individual functions should use that rather than disk->src which
corresponds to the top level element of the chain only.

Without this change TLS and persistent reservations would not work for
backing images of a chain when using -blockdev.

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