]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_namespace: Move umount() call into #fdef __linux__
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 5 Jan 2023 15:23:58 +0000 (16:23 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 5 Jan 2023 15:46:55 +0000 (16:46 +0100)
commit6cd2b4e101cc0b60c6db83f763a08daea67ad6eb
tree7a5a452c53c6dd2a589a4caf1b1df9e621853957
parent8f95ef95d62234b7147e068afdfd27cdd2ac7535
qemu_namespace: Move umount() call into #fdef __linux__

In a recent commit I've introduced an umount() call. But the
function where the call lives is compiled on all OSes, not just
Linux. But umount() is Linux specific. Other OSes have unmount
(FreeBSD), or maybe something else. But since namespaces are
Linux specific, we can wrap the call in #ifdef __linux__ and not
care about other OSes.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_namespace.c