]> git.ipfire.org Git - thirdparty/lxc.git/commit
introduce lxcapi_add_device_node and lxcapi_remove_device_node to API (v3)
authorS.Çağlar Onur <caglar@10ur.org>
Wed, 13 Nov 2013 05:39:00 +0000 (00:39 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 13 Nov 2013 15:00:29 +0000 (10:00 -0500)
commita9a0ed90dd1cdadd412576a45af16419efc0e939
tree6afc46369b91f786047ba7a7b3b39473daff0405
parent28254e6380c787ffcdf4a1929fd732d0871fcda3
introduce lxcapi_add_device_node and lxcapi_remove_device_node to API (v3)

Adding block/char devices to running container is a common operation so
provide a common implementation for users to consume.

changes since v2;
* lets the user set an alternate path inside the container as Stéphane suggested

changes since v1;
* removed duplicated code

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c
src/lxc/lxccontainer.h