Re: [PATCH 2/6] qemuDomainBuildNamespace: Try harder to remove temp directories

2020-03-19 Thread Pavel Mores
On Wed, Mar 18, 2020 at 06:32:12PM +0100, Michal Privoznik wrote: > 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 di

[PATCH 2/6] qemuDomainBuildNamespace: Try harder to remove temp directories

2020-03-18 Thread Michal Privoznik
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 --- src/qemu/qemu_domain.c | 5