Searched refs:bdevtype (Results 1 - 10 of 10) sorted by relevance

/lxc/src/lxc/tools/
H A Dlxc_create.c73 case 'B': args->bdevtype = arg; break;
176 if (strcmp(a->bdevtype, "best") != 0) {
178 if (strcmp(a->bdevtype, "lvm") != 0 &&
179 strcmp(a->bdevtype, "loop") != 0 &&
180 strcmp(a->bdevtype, "rbd") != 0) {
185 if (strcmp(a->bdevtype, "lvm") != 0) {
191 if (strcmp(a->bdevtype, "rbd") != 0) {
197 if (strcmp(a->bdevtype, "zfs") != 0) {
234 if (!my_args.bdevtype)
235 my_args.bdevtype
[all...]
H A Dlxc_clone.c118 char *bdevtype = NULL, *lxcpath = NULL, *newpath = NULL, *fstype = NULL; local
135 case 'B': bdevtype = optarg; break;
203 c2 = c1->clone(c1, new, newpath, flags, bdevtype, NULL, newsize,
H A Dlxc_copy.c142 int flags, char *bdevtype, uint64_t fssize, enum task task,
363 int flags, char *bdevtype, uint64_t fssize, enum task task,
368 clone = c->clone(c, newname, newpath, flags, bdevtype, NULL, fssize,
409 arg->bdevtype, NULL, arg->fssize, args);
498 my_args.bdevtype, my_args.fssize, my_args.task,
592 args->bdevtype = arg;
362 do_clone(struct lxc_container *c, char *newname, char *newpath, int flags, char *bdevtype, uint64_t fssize, enum task task, char **args) argument
/lxc/src/python-lxc/lxc/
H A D__init__.py208 def create(self, template=None, flags=0, args=(), bdevtype=None):
231 if bdevtype:
232 template_args['bdevtype'] = bdevtype
235 def clone(self, newname, config_path=None, flags=0, bdevtype=None,
248 if bdevtype:
249 args['bdevtype'] = bdevtype
/lxc/src/lxc/bdev/
H A Dbdev.c296 const char *lxcpath, const char *bdevtype, int flags,
354 if (maybe_snap && keepbdevtype && !bdevtype && !orig->ops->can_snapshot)
360 if (!bdevtype && !keepbdevtype && snap && strcmp(orig->type , "dir") == 0)
361 bdevtype = "overlayfs";
363 if (am_unpriv() && !unpriv_snap_allowed(orig, bdevtype, snap, maybe_snap)) {
370 if (bdevtype && strcmp(orig->type, "dir") == 0 &&
371 (strcmp(bdevtype, "aufs") == 0 ||
372 strcmp(bdevtype, "overlayfs") == 0)) {
379 new = bdev_get(bdevtype ? bdevtype
295 bdev_copy(struct lxc_container *c0, const char *cname, const char *lxcpath, const char *bdevtype, int flags, const char *bdevdata, uint64_t newsize, int *needs_rdep) argument
[all...]
H A Dbdev.h121 const char *lxcpath, const char *bdevtype,
/lxc/src/lxc/
H A Darguments.h88 char *bdevtype, *configfile, *template; member in struct:lxc_arguments
H A Dlxccontainer.h310 * \param bdevtype Backing store type to use (if \c NULL, \c dir will be used).
320 bool (*create)(struct lxc_container *c, const char *t, const char *bdevtype,
330 * \param bdevtype Backing store type to use (if \c NULL, \c dir will be used).
343 bool (*createl)(struct lxc_container *c, const char *t, const char *bdevtype,
550 * \param bdevtype Optionally force the cloned bdevtype to a specified plugin.
564 * LXC_CLONE_SNAPSHOT then use the native \p bdevtype if possible,
568 const char *lxcpath, int flags, const char *bdevtype,
H A Dlxccontainer.c1418 * @bdevtype: backing store type to use. If NULL, dir will be used.
1426 const char *bdevtype, struct bdev_specs *specs, int flags,
1514 if (!(bdev = do_bdev_create(c, bdevtype, specs))) {
1516 bdevtype ? bdevtype : "(none)", c->name);
1566 const char *bdevtype, struct bdev_specs *specs, int flags,
1571 ret = do_lxcapi_create(c, t, bdevtype, specs, flags, argv);
1634 const char *bdevtype, struct bdev_specs *specs, int flags, ...)
1657 bret = do_lxcapi_create(c, t, bdevtype, specs, flags, args);
3058 const char *bdevtype, cons
1425 do_lxcapi_create(struct lxc_container *c, const char *t, const char *bdevtype, struct bdev_specs *specs, int flags, char *const argv[]) argument
1565 lxcapi_create(struct lxc_container *c, const char *t, const char *bdevtype, struct bdev_specs *specs, int flags, char *const argv[]) argument
1633 lxcapi_createl(struct lxc_container *c, const char *t, const char *bdevtype, struct bdev_specs *specs, int flags, ...) argument
3056 do_lxcapi_clone(struct lxc_container *c, const char *newname, const char *lxcpath, int flags, const char *bdevtype, const char *bdevdata, uint64_t newsize, char **hookargs) argument
3235 lxcapi_clone(struct lxc_container *c, const char *newname, const char *lxcpath, int flags, const char *bdevtype, const char *bdevdata, uint64_t newsize, char **hookargs) argument
[all...]
/lxc/src/python-lxc/
H A Dlxc.c738 char *bdevtype = NULL; local
748 static char *kwlist[] = {"newname", "config_path", "flags", "bdevtype",
753 &flags, &bdevtype, &bdevdata, &newsize,
776 config_path, flags, bdevtype,
840 char *bdevtype = NULL; local
842 static char *kwlist[] = {"template", "flags", "bdevtype", "args", NULL};
844 &template_name, &flags, &bdevtype, &vargs))
860 if (self->container->create(self->container, template_name, bdevtype, NULL,
1643 "clone(newname, config_path, flags, bdevtype, bdevdata, newsize, "

Completed in 305 milliseconds