Searched refs:src_path (Results 1 - 4 of 4) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc-start-ephemeral.in202 src_path = fields[0].split("/")
203 if len(src_path) > 1 and src_path[1] in ("proc", "sys"):
223 src_path = os.path.abspath(entry)
224 dst_path = "%s/rootfs/%s" % (dest_path, src_path)
225 overlay_dirs += [(src_path, dst_path)]
290 src_path, dst_path = entry.split(":")
292 src_path = entry
295 if not os.path.exists(src_path):
297 src_path)
[all...]
/lxc/src/lxc/
H A Dlxccontainer.h729 * \param src_path Full path of the device.
731 * to use \p src_path).
735 bool (*add_device_node)(struct lxc_container *c, const char *src_path, const char *dest_path);
741 * \param src_path Full path of the device.
743 * to use \p src_path).
747 bool (*remove_device_node)(struct lxc_container *c, const char *src_path, const char *dest_path);
H A Dlxccontainer.c3803 static bool add_remove_device_node(struct lxc_container *c, const char *src_path, const char *dest_path, bool add) argument
3816 /* use src_path if dest_path is NULL otherwise use dest_path */
3817 p = dest_path ? dest_path : src_path;
3854 static bool do_lxcapi_add_device_node(struct lxc_container *c, const char *src_path, const char *dest_path) argument
3860 return add_remove_device_node(c, src_path, dest_path, true);
3865 static bool do_lxcapi_remove_device_node(struct lxc_container *c, const char *src_path, const char *dest_path) argument
3871 return add_remove_device_node(c, src_path, dest_path, false);
/lxc/src/python-lxc/
H A Dlxc.c621 static char *kwlist[] = {"src_path", "dest_path", NULL};
622 char *src_path = NULL; local
633 src_path = PyBytes_AS_STRING(py_src_path);
634 assert(src_path != NULL);
642 if (self->container->add_device_node(self->container, src_path,
1215 static char *kwlist[] = {"src_path", "dest_path", NULL};
1216 char *src_path = NULL; local
1227 src_path = PyBytes_AS_STRING(py_src_path);
1228 assert(src_path != NULL);
1236 if (self->container->remove_device_node(self->container, src_path,
[all...]

Completed in 249 milliseconds