]> git.ipfire.org Git - thirdparty/libvirt.git/commit
LXC: hostdev: introduce lxcContainerSetupHostdevCapsMakePath
authorGao feng <gaofeng@cn.fujitsu.com>
Tue, 9 Jul 2013 10:15:11 +0000 (11:15 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Feb 2014 17:36:55 +0000 (17:36 +0000)
commit3bdb7f883ea68f08f2fcf8738020be7e594515a2
treeffcccaaddeeafdd44fd53702ea5d1f438115a204
parent419ea630296502fc7996623f568dc6d31b1673d5
LXC: hostdev: introduce lxcContainerSetupHostdevCapsMakePath

This helper function is used to create parent directory for
the hostdev which will be added to the container. If the
parent directory of this hostdev doesn't exist, the mknod of
the hostdev will fail. eg with /dev/net/tun

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
(cherry picked from commit c0d8c7c88579c612cf8a9776d276f8fd59d779f3)

Adapted to lack of VIR_STRDUP
src/lxc/lxc_container.c
src/lxc/lxc_container.h