]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainBuildNamespace: Try harder to remove temp directories
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Oct 2019 19:01:29 +0000 (21:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Mar 2020 13:31:13 +0000 (14:31 +0100)
commitca2edd678d762381de2453bb4a310205a06fc50a
treef5bf0f8fe851241e7da3b4b6f78a0746c7702c09
parent6bc746d66d126bd609ca1fc4ac16e096da00f5e0
qemuDomainBuildNamespace: Try harder to remove temp directories

If building namespace fails somewhere in the middle (that is some
files exists under devMountsSavePath[i]), then plain rmdir() is
not enough to remove dir. Umount the temp location and use
virFileDeleteTree() to remove the directory.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Pavel Mores <pmores@redhat.com>
src/qemu/qemu_domain.c