Searched refs:options (Results 1 - 25 of 51) sorted by relevance

123

/lxc/src/lxc/
H A Dattach.h39 extern int lxc_attach(const char* name, const char* lxcpath, lxc_attach_exec_t exec_function, void* exec_payload, lxc_attach_options_t* options, pid_t* attached_process);
H A Dattach.c660 lxc_attach_options_t* options; member in struct:attach_clone_payload
671 /* Define default options if no options are supplied by the user. */
675 struct lxc_proc_context_info *i, lxc_attach_options_t *options)
680 if (!(options->namespaces & CLONE_NEWNS) || !(options->attach_flags & LXC_ATTACH_LSM))
727 int lxc_attach(const char* name, const char* lxcpath, lxc_attach_exec_t exec_function, void* exec_payload, lxc_attach_options_t* options, pid_t* attached_process) argument
737 if (!options)
738 options = &attach_static_default_options;
761 if (!fetch_seccomp(name, lxcpath, init_ctx, options))
674 fetch_seccomp(const char *name, const char *lxcpath, struct lxc_proc_context_info *i, lxc_attach_options_t *options) argument
1066 lxc_attach_options_t* options = payload->options; local
[all...]
H A Dinitutils.c90 static const char * const options[][2] = { local
104 static __thread const char *values[sizeof(options) / sizeof(options[0])] = { 0 };
106 static const char *values[sizeof(options) / sizeof(options[0])] = { 0 };
146 for (i = 0, ptr = options; (*ptr)[0]; ptr++, i++) {
H A Darguments.h42 const struct option* options; member in struct:lxc_arguments
154 /* option keys for long only options */
H A Darguments.c142 Common options :\n\
151 Mandatory or optional arguments to long options are also mandatory or optional\n\
152 for any corresponding short options.\n\
188 ret = build_shortopts(args->options, shortopts, sizeof(shortopts));
198 c = getopt_long(argc, argv, shortopts, args->options, &index);
213 case OPT_USAGE: print_usage(args->options, args);
239 /* Check the command options */
H A Dlxccontainer.h313 * \param flags \c LXC_CREATE_* options (currently only \ref
333 * \param flags \c LXC_CREATE_* options (currently only \ref
618 * \param options \ref lxc_attach_options_t.
625 void *exec_payload, lxc_attach_options_t *options, pid_t *attached_process);
631 * \param options See \ref attach options.
638 int (*attach_run_wait)(struct lxc_container *c, lxc_attach_options_t *options, const char *program, const char * const argv[]);
644 * \param options See \ref attach options.
651 int (*attach_run_waitl)(struct lxc_container *c, lxc_attach_options_t *options, cons
[all...]
/lxc/src/python-lxc/
H A Dlxc.c141 static void lxc_attach_free_options(lxc_attach_options_t *options);
161 lxc_attach_options_t *options = malloc(sizeof(*options)); local
163 if (!options) {
167 memcpy(options, &default_options, sizeof(*options));
173 temp_env_policy = options->env_policy;
179 kwlist, &options->attach_flags,
180 &options->namespaces,
181 &options
241 lxc_attach_free_options(lxc_attach_options_t *options) argument
659 lxc_attach_options_t *options = NULL; local
[all...]
H A Dsetup.py.in74 options={'build': {'build_base': os.path.join(builddir, 'build')}})
/lxc/src/lxc/tools/
H A Dlxc_copy.c65 char *options; member in struct:mnts
104 --name=NAME [-P lxcpath] -N newname [-p newpath] [-B backingstorage] [-s] [-K] [-M] [-L size [unit]] -- hook options\n\
105 --name=NAME [-P lxcpath] [-N newname] [-p newpath] [-B backingstorage] -e [-d] [-D] [-K] [-M] [-m {bind,aufs,overlay}=/src:/dest] -- hook options\n\
125 -- hook options arguments passed to the hook program\n\
128 .options = my_longopts,
342 strlen(m->src) + strlen(m->dest) + strlen(m->options) + 1;
349 m->src, m->dest, m->options,
514 free(n->options);
677 m->options = strdup("rw");
680 m->options
[all...]
H A Dlxc_unfreeze.c50 .options = my_longopts,
H A Dlxc_clone.c95 static struct option options[] = { variable in typeref:struct:option
130 c = getopt_long(argc, argv, "sB:L:o:n:v:KMHp:P:Rt:h", options, &option_index);
H A Dlxc_init.c45 static const struct option options[] = { variable in typeref:struct:option
63 "Common options :\n"
70 "Mandatory or optional arguments to long options are also mandatory or optional\n"
71 "for any corresponding short options.\n"
87 while ((opt = getopt_long(argc, argv, "n:l:qP:", options, NULL)) != -1) {
H A Dlxc_attach.c240 .options = my_longopts,
246 lxc_attach_options_t *options; member in struct:wrapargs
328 if (c->attach(c, get_pty_on_host_callback, wrap, wrap->options, pid) < 0)
454 .options = &attach_options
H A Dlxc_freeze.c52 .options = my_longopts,
H A Dlxc_wait.c77 .options = my_longopts,
H A Dlxc_cgroup.c61 .options = my_longopts,
H A Dlxc_console.c90 .options = my_longopts,
H A Dlxc_execute.c100 .options = my_longopts,
H A Dlxc_checkpoint.c112 Checkpoint options:\n\
114 Restore options:\n\
119 .options = my_longopts,
/lxc/src/lxc/bdev/
H A Dlxcaufs.c238 char *tmp, *options, *dup, *lower, *upper; local
276 // so add xino=/dev/shm/aufs.xino parameter to mount options.
284 options = alloca(len);
285 ret = snprintf(options, len, "br=%s=rw:%s=ro,%s,xino=%s", upper, lower, mntdata, xinopath);
289 options = alloca(len);
290 ret = snprintf(options, len, "br=%s=rw:%s=ro,xino=%s", upper, lower, xinopath);
298 ret = mount(lower, bdev->dest, "aufs", MS_MGC_VAL | mntflags, options);
300 SYSERROR("aufs: error mounting %s onto %s options %s",
301 lower, bdev->dest, options);
303 INFO("aufs: mounted %s onto %s options
[all...]
H A Dlxcoverlay.c55 const void *options);
316 char *tmp, *options, *dup, *lower, *upper; local
390 options = alloca(len);
391 ret = snprintf(options, len, "upperdir=%s,lowerdir=%s,%s", upper, lower, mntdata);
396 ret2 = snprintf(options, len2, "upperdir=%s,lowerdir=%s,workdir=%s,%s",
400 options = alloca(len);
401 ret = snprintf(options, len, "upperdir=%s,lowerdir=%s", upper, lower);
419 INFO("Overlayfs: Error mounting %s onto %s with options %s. "
425 MS_MGC_VAL | mntflags, options);
428 "options
664 ovl_remount_on_enodev(const char *lower, const char *target, const char *name, unsigned long mountflags, const void *options) argument
[all...]
H A Dbdev.h112 * other backing stores, this will allow additional options. In particular,
140 const char *options);
/lxc/hooks/
H A Dubuntu-cloud-prep24 Usage: ${0##*/} [options] root-dir
29 options marked '[ds]'
44 --options "${short_opts}" --long "${long_opts}" -- "$@" 2>/dev/null) ||
/lxc/templates/
H A Dlxc-alpine.in68 Template specific options can be passed to lxc-create after a '--' like this:
70 lxc-create --name=NAME [lxc-create-options] -- [template-options] [PKG...]
74 Template options:
407 # Parse command options.
408 options=$(getopt -o a:dFm:n:p:r:h -l arch:,debug,flush-cache,mirror:,name:,\
410 eval set -- "$options"
422 # Process command options.
475 # Validate options.
/lxc/src/tests/
H A Dconcurrent.c37 static const struct option options[] = { variable in typeref:struct:option
51 "Common options :\n"
62 "Mandatory or optional arguments to long options are also mandatory or optional\n"
63 "for any corresponding short options.\n\n");
157 while ((opt = getopt_long(argc, argv, "j:i:t:d:m:qD", options, NULL)) != -1) {

Completed in 35 milliseconds

123