]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainGetPreservedMounts: Prune nested mount points
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 12 Jun 2017 14:28:03 +0000 (16:28 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Jun 2017 12:38:23 +0000 (14:38 +0200)
commitcdd9205dfffa3aaed935446a41f0d2dd1357c268
tree38be0685d75ab7ff2046d7ca3e55e4b49ea7d638
parent6ab3e2f6c4c665efdddb313ac9ecd80bf9c67670
qemuDomainGetPreservedMounts: Prune nested mount points

https://bugzilla.redhat.com/show_bug.cgi?id=1431112

There can be nested mount points. For instance /dev/shm/blah can
be a mount point and /dev/shm too. It doesn't make much sense to
return the former path because callers preserve the latter (and
with that the former too). Therefore prune nested mount points.

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