]> 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, 9 Jul 2013 10:15:11 +0000 (11:15 +0100)
commitc0d8c7c88579c612cf8a9776d276f8fd59d779f3
treedc41c67c7454f110e4833dbc963fc238f6932fbe
parent9a0ac6d9c21b914f887d2a1e0051b5beffa81bd7
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>
src/lxc/lxc_container.c
src/lxc/lxc_container.h