]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainNamespaceTeardownHostdev: Unlink paths in one go
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 21 Jul 2020 13:08:13 +0000 (15:08 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 3 Aug 2020 17:59:17 +0000 (19:59 +0200)
commit0983833ed95185575dccc183cd85982ffe995e6e
tree9ccfcb56b5abb0286f0fb2304e66fe1472ae2ae4
parentf7feac4ba8dcce3a97e45e416b1bf5f2b416e25b
qemuDomainNamespaceTeardownHostdev: Unlink paths in one go

In my attempt to deduplicate the code, we can use
qemuDomainSetupHostdev() to obtain the list of paths to unlink
and then pass it to qemuDomainNamespaceUnlinkPaths() to unlink
them in a single fork.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_namespace.c