]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildHostdevSCSI(A|De)tachPrepare: Use virStorageSource in def for SCSI hostdevs
authorPeter Krempa <pkrempa@redhat.com>
Thu, 10 Sep 2020 06:25:37 +0000 (08:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 15 Sep 2020 13:20:23 +0000 (15:20 +0200)
commitcca2dd4890c0f7ef362ac7aa47f9fc00bd36619a
tree1c40637b07aefd23ed713bb954b2c5509fa68867
parent482c52b177750a2893e60e90905e51d31a16782b
qemuBuildHostdevSCSI(A|De)tachPrepare: Use virStorageSource in def for SCSI hostdevs

Modify the attach/detach data generators to actually use the
virStorageSourceStructure embedded in the SCSI config data rather than
creating an ad-hoc internal one.

The modification will allow us to properly store the nodename used for
the backend in the status XML rather than re-generating it all the
time.

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