Searched refs:dest (Results 1 - 25 of 35) sorted by relevance

12

/lxc/src/lxc/bdev/
H A Dlxcdir.c49 if (!orig->dest || !orig->src)
59 if ((new->dest = strdup(new->src)) == NULL)
65 int dir_create(struct bdev *bdev, const char *dest, const char *n, argument
71 bdev->src = strdup(dest);
72 bdev->dest = strdup(dest);
73 if (!bdev->src || !bdev->dest) {
82 if (mkdir_p(bdev->dest, 0755) < 0) {
83 ERROR("Error creating %s", bdev->dest);
114 if (!bdev->src || !bdev->dest)
[all...]
H A Dlxcrsync.h37 char *dest; member in struct:rsync_data_char
40 int do_rsync(const char *src, const char *dest);
H A Dlxcloop.c60 if (!orig->dest || !orig->src)
76 new->dest = malloc(len);
77 if (!new->dest)
79 ret = snprintf(new->dest, len, "%s/%s/rootfs", lxcpath, cname);
105 int loop_create(struct bdev *bdev, const char *dest, const char *n, argument
116 // dest is passed in as $lxcpath / $lxcname / rootfs
119 len = strlen(dest) + 2;
122 ret = snprintf(srcdev, len, "%s", dest);
142 if (!(bdev->dest = strdup(dest)))
[all...]
H A Dlxcrsync.c43 int do_rsync(const char *src, const char *dest) argument
64 execlp("rsync", "rsync", "-aHXS", "--delete", s, dest, (char *)NULL);
80 if (do_rsync(data->src, data->dest) < 0) {
81 ERROR("rsyncing %s to %s", data->src, data->dest);
112 ERROR("failed mounting %s onto %s", orig->src, orig->dest);
116 ERROR("failed mounting %s onto %s", new->src, new->dest);
129 if (do_rsync(orig->dest, new->dest) < 0) {
H A Dlxcaufs.c52 if (!orig->src || !orig->dest)
55 new->dest = dir_new_path(orig->dest, oldname, cname, oldpath, lxcpath);
56 if (!new->dest)
58 if (mkdir_p(new->dest, 0755) < 0)
61 if (am_unpriv() && chown_mapped_root(new->dest, conf) < 0)
62 WARN("Failed to update ownership of %s", new->dest);
70 lastslash = strrchr(new->dest, '/');
76 lastslashidx = lastslash - new->dest;
81 strncpy(delta, new->dest, lastslashid
174 aufs_create(struct bdev *bdev, const char *dest, const char *n, struct bdev_specs *specs) argument
[all...]
H A Dlxcrbd.c46 int rbd_create(struct bdev *bdev, const char *dest, const char *n, argument
112 if (!(bdev->dest = strdup(dest)))
115 if (mkdir_p(bdev->dest, 0755) < 0 && errno != EEXIST) {
116 ERROR("Error creating %s", bdev->dest);
162 if (!bdev->src || !bdev->dest)
171 return mount_unknown_fs(bdev->src, bdev->dest, bdev->mntopts);
178 if (!bdev->src || !bdev->dest)
180 return umount(bdev->dest);
H A Dlxcoverlay.c66 if (!orig->src || !orig->dest)
69 new->dest = dir_new_path(orig->dest, oldname, cname, oldpath, lxcpath);
70 if (!new->dest)
72 if (mkdir_p(new->dest, 0755) < 0)
75 if (am_unpriv() && chown_mapped_root(new->dest, conf) < 0)
76 WARN("Failed to update ownership of %s", new->dest);
89 lastslash = strrchr(new->dest, '/');
95 lastslashidx = lastslash - new->dest;
100 strncpy(delta, new->dest, lastslashid
244 ovl_create(struct bdev *bdev, const char *dest, const char *n, struct bdev_specs *specs) argument
[all...]
H A Dlxcdir.h45 int dir_create(struct bdev *bdev, const char *dest, const char *n,
H A Dlxcloop.h45 int loop_create(struct bdev *bdev, const char *dest, const char *n,
H A Dlxcrbd.h45 int rbd_create(struct bdev *bdev, const char *dest, const char *n,
H A Dlxczfs.c91 if (!bdev->src || !bdev->dest)
101 int ret = mount(bdev->src, bdev->dest, "bind", MS_BIND | MS_REC | mntflags, mntdata);
112 if (!bdev->src || !bdev->dest)
115 return umount(bdev->dest);
210 if (!orig->src || !orig->dest)
227 if ((new->dest = strdup(new->src)) == NULL)
263 int zfs_create(struct bdev *bdev, const char *dest, const char *n, argument
276 if (!(bdev->dest = strdup(dest))) {
280 if (!(bdev->src = strdup(bdev->dest))) {
[all...]
H A Dlxclvm.c166 if (!bdev->src || !bdev->dest)
170 return mount_unknown_fs(bdev->src, bdev->dest, bdev->mntopts);
177 if (!bdev->src || !bdev->dest)
179 return umount(bdev->dest);
286 if (!orig->src || !orig->dest)
317 new->dest = malloc(len);
318 if (!new->dest)
320 ret = snprintf(new->dest, len, "%s/%s/rootfs", lxcpath, cname);
323 if (mkdir_p(new->dest, 0755) < 0)
375 int lvm_create(struct bdev *bdev, const char *dest, cons argument
[all...]
H A Dbdev.h69 // mount requires src and dest to be set.
73 int (*create)(struct bdev *bdev, const char *dest, const char *n,
85 * 'lxc.rootfs' value, dest will be mount dir (i.e. $libdir/lxc) When clone
86 * or create is doing so, then dest will be $lxcpath/$lxcname/rootfs, since
94 char *dest; member in struct:bdev
124 struct bdev *bdev_create(const char *dest, const char *type,
H A Dlxclvm.h53 int lvm_create(struct bdev *bdev, const char *dest, const char *n,
H A Dlxcnbd.h46 int nbd_create(struct bdev *bdev, const char *dest, const char *n,
H A Dlxczfs.h48 int zfs_create(struct bdev *bdev, const char *dest, const char *n,
H A Dbdev.c206 static struct bdev *do_bdev_create(const char *dest, const char *type,
209 static char *linkderef(char *path, char *dest);
325 if (!orig->dest) {
331 orig->dest = malloc(len);
332 if (!orig->dest) {
337 ret = snprintf(orig->dest, len, "%s/%s/rootfs", oldpath, oldname);
343 ret = stat(orig->dest, &sb);
345 if (mkdir_p(orig->dest, 0755) < 0)
346 WARN("Error creating '%s', continuing.", orig->dest);
393 WARN("Failed to update ownership of %s", new->dest);
463 bdev_create(const char *dest, const char *type, const char *cname, struct bdev_specs *specs) argument
807 do_bdev_create(const char *dest, const char *type, const char *cname, struct bdev_specs *specs) argument
923 linkderef(char *path, char *dest) argument
[all...]
H A Dlxcbtrfs.c199 if (!bdev->src || !bdev->dest)
207 ret = mount(bdev->src, bdev->dest, "bind", MS_BIND | MS_REC | mntflags, mntdata);
216 if (!bdev->src || !bdev->dest)
218 return umount(bdev->dest);
357 return btrfs_snapshot(arg->src, arg->dest);
365 if (!orig->dest || !orig->src)
389 if ((new->dest = strdup(new->src)) == NULL)
398 return btrfs_snapshot(orig->dest, new->dest);
399 sdata.dest
741 btrfs_create(struct bdev *bdev, const char *dest, const char *n, struct bdev_specs *specs) argument
[all...]
H A Dlxcaufs.h54 int aufs_create(struct bdev *bdev, const char *dest, const char *n,
H A Dlxcoverlay.h56 int ovl_create(struct bdev *bdev, const char *dest, const char *n,
/lxc/src/lxc/tools/
H A Dlxc-start-ephemeral.in87 parser.add_argument("--lxcpath", "-P", dest="lxcpath", metavar="PATH",
169 dest = lxc.Container(os.path.basename(dest_path), args.lxcpath)
170 dest.load_config(orig.config_file_name)
171 dest.set_config_item("lxc.utsname", dest.name)
172 dest.set_config_item("lxc.rootfs", os.path.join(dest_path, "rootfs"))
174 for nic in dest.network:
182 dest.set_config_item("lxc.mount", os.path.join(dest_path, "fstab"))
184 with open(dest.get_config_item("lxc.mount"), "w+") as dest_fd:
188 dest
[all...]
H A Dlxc_copy.c64 char *dest; member in struct:mnts
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\
315 2 * strlen(m->src) + strlen(m->dest) + strlen(m->upper) +
323 m->src, m->dest, m->upper, m->src, m->workdir);
328 2 * strlen(m->src) + strlen(m->dest) + strlen(m->upper) +
336 m->src, m->dest, m->src, m->upper, m->workdir);
342 strlen(m->src) + strlen(m->dest) + strlen(m->options) + 1;
349 m->src, m->dest, m->options,
513 free(n->dest);
632 m->dest
[all...]
/lxc/src/lxc/
H A Dlxclock.c102 char *dest; local
118 if ((dest = malloc(len)) == NULL) {
123 ret = snprintf(dest, len, "%s/lxc/lock/%s", rundir, p);
125 free(dest);
129 ret = mkdir_p(dest, 0755);
131 free(dest);
136 ret = snprintf(dest, len, "%s/lxc/lock/%s/.%s", rundir, p, n);
139 free(dest);
142 return dest;
H A Dnetwork.h100 extern int lxc_ipv4_dest_add(int ifindex, struct in_addr *dest);
101 extern int lxc_ipv6_dest_add(int ifindex, struct in6_addr *dest);
/lxc/templates/
H A Dlxc-alpine.in176 local dest="$1"
179 mkdir -p "$dest"
180 cd "$dest"
194 local dest="$1"
198 mkdir -p "$dest"
207 | tar -xz -C "$dest" sbin/ # --extract --gzip --directory
209 [ -f "$dest/sbin/apk.static" ] || die 2 'apk.static not found'
211 local keyname=$(echo "$dest"/sbin/apk.static.*.pub | sed 's/.*\.SIGN\.RSA\.//')
214 -signature "$dest/sbin/apk.static.SIGN.RSA.$keyname" \
215 "$dest/sbi
[all...]

Completed in 985 milliseconds

12