]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: improve detection of UNIX path generated by libvirt
authorPavel Hrdina <phrdina@redhat.com>
Thu, 11 May 2017 12:09:35 +0000 (14:09 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 16 May 2017 09:33:49 +0000 (11:33 +0200)
commited996604464ab1652ad8d2de3ac446f460dd2ab1
tree38834e75c329953ba9549ebf8671d1536d384db5
parent31020664e9614ad0e0057da159379d7e0cd5eb12
qemu: improve detection of UNIX path generated by libvirt

Currently we consider all UNIX paths with specific prefix as generated
by libvirt, but that's a wrong assumption.  Let's make the detection
better by actually checking whether the whole path matches one of the
paths that we generate or generated in the past.

The UNIX path isn't stored in config XML since libvirt-1.3.1.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1446980

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/qemuxml2argv-channel-unix-source-path.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-channel-unix-source-path.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c