]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainGetPreservedMounts: Fetch list of /dev/* mounts dynamically
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 5 Jan 2017 13:19:04 +0000 (14:19 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 5 Jan 2017 15:00:20 +0000 (16:00 +0100)
commite08ee7cd3405a3330806bd251ac9b3fcf6501908
tree4a7e4a829983db00e3d13b6c4df4fd71158a2120
parent486fd7f7008ccf7eb9de8a7df2db8567476d77a0
qemuDomainGetPreservedMounts: Fetch list of /dev/* mounts dynamically

With my namespace patches, we are spawning qemu in its own
namespace so that we can manage /dev entries ourselves. However,
some filesystems mounted under /dev needs to be preserved in
order to be shared with the parent namespace (e.g. /dev/pts).
Currently, the list of mount points to preserve is hardcoded
which ain't right - on some systems there might be less or more
items under real /dev that on our list. The solution is to parse
/proc/mounts and fetch the list from there.

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