]> git.proxmox.com Git - mirror_lxc.git/commit
python: Add add_device() function
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 22 Nov 2012 22:35:44 +0000 (17:35 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 26 Nov 2012 14:31:52 +0000 (09:31 -0500)
commit2a41cf5d682aa4ed8b75132bb224933d0b14a845
treee7f40d84842a097f9f55af6fcc8002901a0029dd
parent7858afacec2354892dcfbe2d587d2f08bbd79ca3
python: Add add_device() function

This introduces a new add_devices() call to the python API.

Parameters:
 - path => Mandatory, path to a character or block device on the host
 - destpath => Optional, alternative path inside the container

The function will allow the node in the container's devices cgroup and
then create the entry in the container.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/python-lxc/lxc/__init__.py