Searched defs:src (Results 1 - 9 of 9) sorted by relevance

/lxc/src/lxc/bdev/
H A Dlxcrsync.h36 char *src; member in struct:rsync_data_char
40 int do_rsync(const char *src, const char *dest);
H A Dlxcrsync.c43 int do_rsync(const char *src, const char *dest) argument
56 l = strlen(src) + 2;
60 strcpy(s, src);
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);
130 ERROR("rsyncing %s to %s", orig->src, new->src);
H A Dbdev.h69 // mount requires src and dest to be set.
84 * When lxc-start (conf.c) is mounting a rootfs, then src will be the
93 char *src; member in struct:bdev
107 * Instantiate a bdev object. The src is used to determine which blockdev
111 * Optionally, src can be 'dir:/var/lib/lxc/c1' or 'lvm:/dev/lxc/c1'. For
117 struct bdev *bdev_init(struct lxc_conf *conf, const char *src, const char *dst,
H A Dlxcnbd.c50 static int nbd_get_partition(const char *src);
53 bool attach_nbd(char *src, struct lxc_conf *conf) argument
55 char *orig = alloca(strlen(src)+1), *p, path[50];
58 strcpy(orig, src);
122 if (!bdev->src || !bdev->dest)
128 partition = nbd_get_partition(bdev->src);
146 ERROR("Error mounting %s", bdev->src);
157 if (!bdev->src || !bdev->dest)
286 static int nbd_get_partition(const char *src) argument
288 char *p = strchr(src, '
[all...]
H A Dbdev.c204 static const struct bdev_type *bdev_query(struct lxc_conf *conf, const char *src);
214 char *dir_new_path(char *src, const char *oldname, const char *name, argument
220 nlen = strlen(src) + 1;
222 p = src;
223 /* if src starts with oldpath, look for oldname only after
225 if (strncmp(src, oldpath, l1) == 0) {
240 if (strncmp(src, oldpath, l1) == 0) {
242 src += l1;
245 while ((p2 = strstr(src, oldname)) != NULL) {
246 strncpy(p, src, p
305 const char *src = c0->lxc_conf->rootfs.path; local
533 bdev_init(struct lxc_conf *conf, const char *src, const char *dst, const char *mntopts) argument
857 bdev_query(struct lxc_conf *conf, const char *src) argument
[all...]
/lxc/hooks/
H A Dunmount-namespace.c40 #include <../src/config.h>
43 #include <../src/include/lxcmntent.h>
68 char *src; /* currently not used */ member in struct:mount
74 free(mnt->src);
138 new->src = strdup(ent->mnt_fsname);
141 if (!new->src || !new->dst || !new->fs)
154 free(mounts[count].src);
/lxc/src/lxc/tools/
H A Dlxc_copy.c63 char *src; 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\
120 {bind,aufs,overlay}=/src-path or {bind,aufs,overlay}=/src-path:/dst-path\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,
[all...]
/lxc/src/lxc/
H A Dutils.c1687 int safe_mount(const char *src, const char *dest, const char *fstype, argument
1692 const char *mntsrc = src;
1698 if (flags & MS_BIND && src && src[0] != '/') {
1700 srcfd = open_without_symlink(src, NULL);
1738 SYSERROR("Failed to mount %s onto %s", src, dest);
H A Dconf.c1735 * skip @nfields spaces in @src
1737 static char *get_field(char *src, int nfields) argument
1739 char *p = src;

Completed in 169 milliseconds