| /lxc/src/python-lxc/lxc/ |
| H A D | __init__.py | 149 def __init__(self, name, config_path=None): 154 if config_path: 155 _lxc.Container.__init__(self, name, config_path) 235 def clone(self, newname, config_path=None, flags=0, bdevtype=None, 246 if config_path: 247 args['config_path'] = config_path 254 return Container(newname, config_path=config_path) 421 as_object=False, config_path [all...] |
| /lxc/src/tests/ |
| H A D | cgpath.c | 68 cgrelpath = lxc_cmd_get_cgroup_path(c->name, c->config_path, "freezer"); 80 c->name, c->config_path); 87 ret = lxc_cgroup_set("memory.soft_limit_in_bytes", "512M", c->name, c->config_path); 93 c->name, c->config_path); 105 c->name, c->config_path);
|
| /lxc/templates/ |
| H A D | lxc-centos.in | 362 touch ${config_path}/tmp_root_pass 363 chmod 600 ${config_path}/tmp_root_pass 364 echo ${root_password} > ${config_path}/tmp_root_pass 365 echo "Storing root password in '${config_path}/tmp_root_pass'" 586 mkdir -p $config_path 588 grep -q "^lxc.rootfs" $config_path/config 2>/dev/null || echo " 590 " >> $config_path/config 595 mv $config_path/config $config_path/config.def 610 echo ${LINE} >> $config_path/confi [all...] |
| H A D | lxc-openmandriva.in | 228 mkdir -p $config_path 229 grep -q "^lxc.rootfs" $config_path/config 2>/dev/null || echo "lxc.rootfs = $rootfs_path" >> $config_path/config 230 cat <<EOF >> $config_path/config 248 cat <<EOF >> $config_path/config 253 cat <<EOF >> $config_path/config 258 cat <<EOF >> $config_path/config 263 cat <<EOF >> $config_path/config 267 cat <<EOF >> $config_path/config 436 config_path [all...] |
| H A D | lxc-fedora.in | 297 touch ${config_path}/tmp_root_pass 298 chmod 600 ${config_path}/tmp_root_pass 299 echo ${root_password} > ${config_path}/tmp_root_pass 300 echo "Storing root password in '${config_path}/tmp_root_pass'" 1083 mkdir -p $config_path 1085 grep -q "^lxc.rootfs" $config_path/config 2>/dev/null || echo " 1087 " >> $config_path/config 1094 mv $config_path/config $config_path/config.def 1109 echo "${LINE}" >> $config_path/confi [all...] |
| H A D | lxc-altlinux.in | 267 mkdir -p $config_path 268 grep -q "^lxc.rootfs" $config_path/config 2>/dev/null || echo "lxc.rootfs = $rootfs_path" >> $config_path/config 269 cat <<EOF >> $config_path/config 286 cat <<EOF >> $config_path/config 291 cat <<EOF >> $config_path/config 296 cat <<EOF >> $config_path/config 301 cat <<EOF >> $config_path/config 305 cat <<EOF >> $config_path/config 460 config_path [all...] |
| H A D | lxc-archlinux.in | 124 local nttys=$(cat "${config_path}/config" ${shared_config} ${common_config} | grep "^lxc.tty" | head -n1 | cut -d= -f2 | tr -d "[:blank:]") 125 local devttydir=$(cat "${config_path}/config" ${shared_config} ${common_config} | grep "^lxc.devttydir" | head -n1 | cut -d= -f2 | tr -d "[:blank:]") 149 mkdir -p "${config_path}" 150 local config="${config_path}/config" 270 config_path="${path}" 285 rm -rf "${config_path}" 298 rm -rf "${config_path}" "${path}" 305 rm -rf "${config_path}" "${path}" 332 stored in ${config_path}/config. Please refer to https://wiki.archlinux.org for
|
| /lxc/src/lxc/ |
| H A D | lxccontainer.c | 133 int len = strlen(c->config_path) + strlen(c->name) + 10; 138 ret = snprintf(path, len, "%s/%s/partial", c->config_path, c->name); 170 int len = strlen(c->config_path) + strlen(c->name) + 10; 175 ret = snprintf(path, len, "%s/%s/partial", c->config_path, c->name); 200 int len = strlen(c->config_path) + strlen(c->name) + 10; 205 ret = snprintf(path, len, "%s/%s/partial", c->config_path, c->name); 259 free(c->config_path); 260 c->config_path = NULL; 428 s = lxc_getstate(c->name, c->config_path); 437 s = lxc_getstate(c->name, c->config_path); [all...] |
| H A D | criu.c | 278 path = lxc_cmd_get_cgroup_path(opts->c->name, opts->c->config_path, controllers[0]); 382 opts->c->config_path, 799 handler = lxc_init(c->name, c->lxc_conf, c->config_path); 848 if (do_rootfs_setup(c->lxc_conf, c->name, c->config_path) < 0) 974 ret = snprintf(title, sizeof(title), "[lxc monitor] %s %s", c->config_path, c->name);
|
| H A D | console.c | 653 return lxc_cmd_console(c->name, ttynum, masterfd, c->config_path); 676 ttyfd = lxc_cmd_console(c->name, &ttynum, &masterfd, c->config_path); 699 ts->winch_proxy_lxcpath = c->config_path;
|
| H A D | lxccontainer.h | 119 char *config_path; member in struct:lxc_container
|
| /lxc/src/lxc/tools/ |
| H A D | lxc_destroy.c | 153 int ret = snprintf(path, MAXPATHLEN, "%s/%s/lxc_snapshots", c->config_path, c->name); 163 ret = snprintf(path, MAXPATHLEN, "%s/%s/snaps", c->config_path, c->name); 211 ret = snprintf(path, MAXPATHLEN, "%s/%s/lxc_snapshots", c->config_path, c->name); 263 ret = snprintf(path, MAXPATHLEN, "%s/%s/snaps", c->config_path, c->name);
|
| /lxc/src/python-lxc/ |
| H A D | lxc.c | 379 char* config_path = NULL; local 383 static char *kwlist[] = {"active", "defined", "config_path", NULL}; 388 &config_path, &vargs)) 402 list_count = list_all_containers(config_path, &names, NULL); 404 list_count = list_active_containers(config_path, &names, NULL); 406 list_count = list_defined_containers(config_path, &names, NULL); 445 static char *kwlist[] = {"name", "config_path", NULL}; 448 char *config_path = NULL; local 456 config_path = PyBytes_AS_STRING(fs_config_path); 457 assert(config_path ! 736 char *config_path = NULL; local [all...] |
| /lxc/src/lua-lxc/ |
| H A D | core.c | 284 const char *config_path; local 286 config_path = c->get_config_path(c); 287 lua_pushstring(L, config_path); 294 const char *config_path = luaL_checkstring(L, 2); local 296 lua_pushboolean(L, !!c->set_config_path(c, config_path));
|
| /lxc/src/lxc/bdev/ |
| H A D | bdev.c | 307 const char *oldpath = c0->config_path;
|