Searched defs:rootfs (Results 1 - 8 of 8) sorted by relevance

/lxc/src/lxc/bdev/
H A Dlxcaufs.c68 // if we have /var/lib/lxc/c2/rootfs, then delta will be
170 * $lxcpath/$lxcname/rootfs to have the created container, while all
180 if (len < 8 || strcmp(dest+len-7, "/rootfs") != 0)
352 int aufs_mkdir(const struct mntent *mntent, const struct lxc_rootfs *rootfs, argument
369 /* When rootfs == NULL we have a container without a rootfs. */
370 if (rootfs && rootfs->path)
371 rootfs_path = rootfs->path;
395 rootfsdir = aufs_get_rootfs(rootfs
[all...]
H A Dbdev.c265 if (!conf->rootfs.path)
267 path = conf->rootfs.path;
305 const char *src = c0->lxc_conf->rootfs.path;
310 /* if the container name doesn't show up in the rootfs path, then
314 ERROR("original rootfs path %s doesn't include container name %s",
330 len = strlen(oldpath) + strlen(oldname) + strlen("/rootfs") + 2;
337 ret = snprintf(orig->dest, len, "%s/%s/rootfs", oldpath, oldname);
339 ERROR("rootfs path too long");
458 * @dest: the mountpoint (i.e. /var/lib/lxc/$name/rootfs)
502 r = bdev_init(conf, conf->rootfs
739 mount_unknown_fs(const char *rootfs, const char *target, const char *options) argument
743 const char *rootfs; member in struct:cbarg
884 const char *rootfs; member in struct:cbarg
[all...]
H A Dlxcoverlay.c85 * /var/lib/lxc/c2/rootfs
240 * $lxcpath/$lxcname/rootfs to have the created container, while all
250 if (len < 8 || strcmp(dest + len - 7, "/rootfs") != 0)
485 int ovl_mkdir(const struct mntent *mntent, const struct lxc_rootfs *rootfs, argument
502 /* When rootfs == NULL we have a container without a rootfs. */
503 if (rootfs && rootfs->path)
504 rootfs_path = rootfs->path;
533 * containerdir nor inside the rootfs
[all...]
/lxc/src/lxc/
H A Dcriu.c446 DECLARE_ARG(opts->c->lxc_conf->rootfs.mount);
831 struct lxc_rootfs *rootfs; local
845 rootfs = &c->lxc_conf->rootfs;
851 if (mkdir(rootfs->mount, 0755) < 0 && errno != EEXIST)
859 if (mount(rootfs->path, rootfs->mount, NULL, MS_BIND, NULL) < 0) {
860 rmdir(rootfs->mount);
894 umount(rootfs->mount);
895 rmdir(rootfs
[all...]
H A Dconf.h218 * Defines a structure to store the rootfs location, the
219 * optionals pivot_root, rootfs mount paths
220 * @path : the rootfs source (directory or device)
265 * @rootfs : root directory to run the container
314 struct lxc_rootfs rootfs; member in struct:lxc_conf
355 /* set to true when rootfs has been setup */
400 extern int pin_rootfs(const char *rootfs);
H A Dutils.c1098 * I'm only checking for /. If the container rootfs or mount location
1161 * actually expect the rootfs entry to very specifically contain
1162 * " - rootfs rootfs "
1163 * IIUC, so long as we've chrooted so that rootfs is not our root,
1164 * the rootfs entry should always be skipped in mountinfo contents.
1190 if (p && strncmp(p, "- rootfs rootfs ", 16) == 0) {
1202 char *on_path(const char *cmd, const char *rootfs) { argument
1219 if (rootfs)
1255 choose_init(const char *rootfs) argument
1687 safe_mount(const char *src, const char *dest, const char *fstype, unsigned long flags, const void *data, const char *rootfs) argument
1757 lxc_mount_proc_if_needed(const char *rootfs) argument
[all...]
H A Dconf.c521 static int mount_rootfs_dir(const char *rootfs, const char *target, argument
533 ret = mount(rootfs, target, "none", MS_BIND | MS_REC | mntflags, mntdata);
539 static int lxc_mount_rootfs_file(const char *rootfs, const char *target, argument
545 loopfd = lxc_prepare_loop_dev(rootfs, path, LO_FLAGS_AUTOCLEAR);
553 DEBUG("mounted rootfs \"%s\" on loop device \"%s\" via loop device \"%s\"", rootfs, target, path);
558 static int mount_rootfs_block(const char *rootfs, const char *target, argument
561 return mount_unknown_fs(rootfs, target, options);
566 * if rootfs is a directory, then open ${rootfs}/lx
574 pin_rootfs(const char *rootfs) argument
772 mount_rootfs(const char *rootfs, const char *target, const char *options) argument
842 setup_dev_symlinks(const struct lxc_rootfs *rootfs) argument
983 setup_rootfs_pivot_root(const char *rootfs) argument
1048 mount_autodev(const char *name, const struct lxc_rootfs *rootfs, const char *lxcpath) argument
1115 lxc_fill_autodev(const struct lxc_rootfs *rootfs) argument
1181 const struct lxc_rootfs *rootfs; local
1311 setup_pivot_root(const struct lxc_rootfs *rootfs) argument
1439 lxc_setup_dev_console(const struct lxc_rootfs *rootfs, const struct lxc_console *console) argument
1497 lxc_setup_ttydir_console(const struct lxc_rootfs *rootfs, const struct lxc_console *console, char *ttydir) argument
1624 lxc_setup_console(const struct lxc_rootfs *rootfs, const struct lxc_console *console, char *ttydir) argument
1639 setup_kmsg(const struct lxc_rootfs *rootfs, const struct lxc_console *console) argument
1752 mount_entry(const char *fsname, const char *target, const char *fstype, unsigned long mountflags, const char *data, int optional, int dev, const char *rootfs) argument
1854 mount_entry_create_dir_file(const struct mntent *mntent, const char* path, const struct lxc_rootfs *rootfs, const char *lxc_name, const char *lxc_path) argument
1897 mount_entry_on_generic(struct mntent *mntent, const char* path, const struct lxc_rootfs *rootfs, const char *lxc_name, const char *lxc_path) argument
1950 mount_entry_on_absolute_rootfs(struct mntent *mntent, const struct lxc_rootfs *rootfs, const char *lxc_name, const char *lxc_path) argument
1998 mount_entry_on_relative_rootfs(struct mntent *mntent, const struct lxc_rootfs *rootfs, const char *lxc_name, const char *lxc_path) argument
2016 mount_file_entries(const struct lxc_rootfs *rootfs, FILE *file, const char *lxc_name, const char *lxc_path) argument
2049 setup_mount(const struct lxc_rootfs *rootfs, const char *fstab, const char *lxc_name, const char *lxc_path) argument
2110 setup_mount_entries(const struct lxc_rootfs *rootfs, struct lxc_list *mount, const char *lxc_name, const char *lxc_path) argument
[all...]
H A Dlxccontainer.c224 * the rootfs get moved). c->config_read(); update; c->config_write();
1023 /* rootfs.path or lxcpath/lxcname/rootfs */
1024 if (c->lxc_conf->rootfs.path && access(c->lxc_conf->rootfs.path, F_OK) == 0) {
1025 const char *rpath = c->lxc_conf->rootfs.path;
1033 ret = snprintf(dest, len, "%s/%s/rootfs", lxcpath, c->name);
1044 do_lxcapi_set_config_item(c, "lxc.rootfs", bdev->src);
1045 do_lxcapi_set_config_item(c, "lxc.rootfs.backend", bdev->type);
1047 /* if we are not root, chown the rootfs di
2838 char *rootfs = c0->lxc_conf->rootfs.path; local
[all...]

Completed in 49 milliseconds