/lxc/src/lxc/bdev/ |
H A D | lxcdir.h | 30 /* defined in bdev.h */ 31 struct bdev; 40 * Functions associated with a dir bdev struct. 42 int dir_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 45 int dir_create(struct bdev *bdev, const char *dest, const char *n, 47 int dir_destroy(struct bdev *orig); 49 int dir_mount(struct bdev *bdev); [all...] |
H A D | lxcloop.h | 30 /* defined in bdev.h */ 31 struct bdev; 40 * functions associated with a loop bdev struct 42 int loop_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 45 int loop_create(struct bdev *bdev, const char *dest, const char *n, 47 int loop_destroy(struct bdev *orig); 49 int loop_mount(struct bdev *bdev); [all...] |
H A D | lxcrbd.h | 30 /* defined in bdev.h */ 31 struct bdev; 40 * Functions associated with an rdb bdev struct. 42 int rbd_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 45 int rbd_create(struct bdev *bdev, const char *dest, const char *n, 47 int rbd_destroy(struct bdev *orig); 49 int rbd_mount(struct bdev *bdev); [all...] |
H A D | lxclvm.h | 30 /* defined in bdev.h */ 31 struct bdev; 40 * Functions associated with an lvm bdev struct. 43 int lvm_mount(struct bdev *bdev); 44 int lvm_umount(struct bdev *bdev); 49 int lvm_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 52 int lvm_destroy(struct bdev *ori [all...] |
H A D | lxcnbd.h | 31 /* defined in bdev.h */ 32 struct bdev; 41 * Functions associated with an nbd bdev struct. 43 int nbd_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 46 int nbd_create(struct bdev *bdev, const char *dest, const char *n, 48 int nbd_destroy(struct bdev *orig); 50 int nbd_mount(struct bdev *bdev); [all...] |
H A D | lxczfs.h | 31 /* defined in bdev.h */ 32 struct bdev; 41 * Functions associated with an zfs bdev struct. 45 int zfs_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 48 int zfs_create(struct bdev *bdev, const char *dest, const char *n, 55 int zfs_destroy(struct bdev *orig); 58 int zfs_mount(struct bdev *bdev); [all...] |
H A D | lxcdir.c | 28 #include "bdev.h" 38 int dir_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 65 int dir_create(struct bdev *bdev, const char *dest, const char *n, argument 69 bdev->src = strdup(specs->dir); 71 bdev->src = strdup(dest); 72 bdev->dest = strdup(dest); 73 if (!bdev->src || !bdev 106 dir_mount(struct bdev *bdev) argument 127 dir_umount(struct bdev *bdev) argument [all...] |
H A D | bdev.h | 64 struct bdev; 67 /* detect whether path is of this bdev type */ 70 int (*mount)(struct bdev *bdev); 71 int (*umount)(struct bdev *bdev); 72 int (*destroy)(struct bdev *bdev); 73 int (*create)(struct bdev *bdev, cons 90 struct bdev { struct [all...] |
H A D | lxcrbd.c | 32 #include "bdev.h" 38 int rbd_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 46 int rbd_create(struct bdev *bdev, const char *dest, const char *n, argument 60 rbdpool = lxc_global_config_value("lxc.bdev.rbd.rbdpool"); 67 bdev->src = malloc(len); 68 if (!bdev->src) 71 ret = snprintf(bdev->src, len, "/dev/rbd/%s/%s", rbdpool, rbdname); 107 if (do_mkfs(bdev 158 rbd_mount(struct bdev *bdev) argument 174 rbd_umount(struct bdev *bdev) argument [all...] |
H A D | lxcaufs.h | 36 /* defined in bdev.h */ 37 struct bdev; 49 * Functions associated with an aufs bdev struct. 51 int aufs_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 54 int aufs_create(struct bdev *bdev, const char *dest, const char *n, 56 int aufs_destroy(struct bdev *orig); 58 int aufs_mount(struct bdev *bdev); [all...] |
H A D | lxcoverlay.h | 38 /* defined in bdev.h */ 39 struct bdev; 51 * Functions associated with an overlay bdev struct. 53 int ovl_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 56 int ovl_create(struct bdev *bdev, const char *dest, const char *n, 58 int ovl_destroy(struct bdev *orig); 60 int ovl_mount(struct bdev *bdev); [all...] |
H A D | lxcloop.c | 33 #include "bdev.h" 46 int loop_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 105 int loop_create(struct bdev *bdev, const char *dest, const char *n, argument 127 bdev->src = malloc(len + 5); 128 if (!bdev->src) 130 ret = snprintf(bdev->src, len + 5, "loop:%s", srcdev); 142 if (!(bdev->dest = strdup(dest))) 145 if (mkdir_p(bdev 165 loop_mount(struct bdev *bdev) argument 190 loop_umount(struct bdev *bdev) argument [all...] |
H A D | lxcrsync.h | 31 struct bdev *orig; 32 struct bdev *new;
|
H A D | lxcnbd.c | 34 #include "bdev.h" 90 int nbd_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 97 int nbd_create(struct bdev *bdev, const char *dest, const char *n, argument 103 int nbd_destroy(struct bdev *orig) 115 int nbd_mount(struct bdev *bdev) argument 120 if (strcmp(bdev->type, "nbd")) 122 if (!bdev 151 nbd_umount(struct bdev *bdev) argument [all...] |
H A D | lxczfs.c | 32 #include "bdev.h" 86 int zfs_mount(struct bdev *bdev) argument 88 if (strcmp(bdev->type, "zfs")) 91 if (!bdev->src || !bdev->dest) 96 if (parse_mntopts(bdev->mntopts, &mntflags, &mntdata) < 0) { 101 int ret = mount(bdev->src, bdev->dest, "bind", MS_BIND | MS_REC | mntflags, mntdata); 107 int zfs_umount(struct bdev *bde argument 263 zfs_create(struct bdev *bdev, const char *dest, const char *n, struct bdev_specs *specs) argument [all...] |
H A D | lxclvm.c | 35 #include "bdev.h" 162 int lvm_mount(struct bdev *bdev) argument 164 if (strcmp(bdev->type, "lvm")) 166 if (!bdev->src || !bdev->dest) 170 return mount_unknown_fs(bdev->src, bdev->dest, bdev->mntopts); 173 int lvm_umount(struct bdev *bde argument 375 lvm_create(struct bdev *bdev, const char *dest, const char *n, struct bdev_specs *specs) argument [all...] |
H A D | lxcaufs.c | 31 #include "bdev.h" 43 int aufs_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 174 int aufs_create(struct bdev *bdev, const char *dest, const char *n, argument 183 if (!(bdev->dest = strdup(dest))) { 199 bdev->src = malloc(newlen); 200 if (!bdev->src) { 204 ret = snprintf(bdev->src, newlen, "aufs:%s:%s", dest, delta); 208 if (mkdir_p(bdev 236 aufs_mount(struct bdev *bdev) argument 308 aufs_umount(struct bdev *bdev) argument [all...] |
H A D | bdev.c | 26 * should change. bdev should be a directory with per-bdev file. Things which 49 #include "bdev.h" 74 lxc_log_define(bdev, lxc); 205 static struct bdev *bdev_get(const char *type); 206 static struct bdev *do_bdev_create(const char *dest, const char *type, 210 static bool unpriv_snap_allowed(struct bdev *b, const char *t, bool snap, 281 struct bdev *bdev = bdev_init(conf, NULL, NULL, NULL); local 284 if (!bdev) 466 struct bdev *bdev; local 536 struct bdev *bdev; local 579 bdev_put(struct bdev *bdev) argument 590 blk_getsize(struct bdev *bdev, uint64_t *size) argument 621 detect_fs(struct bdev *bdev, char *type, int len) argument 811 struct bdev *bdev = bdev_get(type); local 827 struct bdev *bdev; local [all...] |
H A D | lxcoverlay.c | 30 #include "bdev.h" 49 static int ovl_do_rsync(struct bdev *orig, struct bdev *new, 57 int ovl_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 244 int ovl_create(struct bdev *bdev, const char *dest, const char *n, argument 253 if (!(bdev->dest = strdup(dest))) { 269 bdev->src = malloc(newlen); 270 if (!bdev 314 ovl_mount(struct bdev *bdev) argument 441 ovl_umount(struct bdev *bdev) argument [all...] |
H A D | lxcbtrfs.c | 38 #include "bdev.h" 191 int btrfs_mount(struct bdev *bdev) argument 197 if (strcmp(bdev->type, "btrfs")) 199 if (!bdev->src || !bdev->dest) 202 if (parse_mntopts(bdev->mntopts, &mntflags, &mntdata) < 0) { 207 ret = mount(bdev->src, bdev->dest, "bind", MS_BIND | MS_REC | mntflags, mntdata); 212 int btrfs_umount(struct bdev *bde argument 741 btrfs_create(struct bdev *bdev, const char *dest, const char *n, struct bdev_specs *specs) argument [all...] |
H A D | lxcbtrfs.h | 369 /* defined in bdev.h */ 370 struct bdev; 391 * Functions associated with a btrfs bdev struct. 393 int btrfs_clonepaths(struct bdev *orig, struct bdev *new, const char *oldname, 397 int btrfs_create(struct bdev *bdev, const char *dest, const char *n, 399 int btrfs_destroy(struct bdev *orig); 401 int btrfs_mount(struct bdev *bdev); [all...] |
H A D | lxcrsync.c | 35 #include "bdev.h" 96 struct bdev *orig = data->orig,
|
/lxc/doc/ |
H A D | lxc.system.conf | 2 lxc.bdev.lvm.vg = lxc 5 lxc.bdev.lvm.thin_pool = lxc 8 lxc.bdev.zfs.root = lxc
|
/lxc/src/lxc/ |
H A D | lxccontainer.c | 42 #include "bdev.h" 1013 * it returns a mounted bdev on success, NULL on error. 1015 static struct bdev *do_bdev_create(struct lxc_container *c, const char *type, 1020 struct bdev *bdev; local 1038 bdev = bdev_create(dest, type, c->name, specs); 1039 if (!bdev) { 1044 do_lxcapi_set_config_item(c, "lxc.rootfs", bdev->src); 1045 do_lxcapi_set_config_item(c, "lxc.rootfs.backend", bdev->type); 1051 if (chown_mapped_root(bdev 1086 struct bdev *bdev = NULL; local 1512 struct bdev *bdev = NULL; local 2856 struct bdev *bdev; local 2931 struct bdev *bdev; local 3249 struct bdev *bdev; local 3598 struct bdev *bdev; local [all...] |
H A D | conf.c | 76 #include "bdev.h" 1180 struct bdev *bdev; local 1198 /* First try mounting rootfs using a bdev. */ 1199 bdev = bdev_init(conf, rootfs->path, rootfs->mount, rootfs->options); 1200 if (bdev && !bdev->ops->mount(bdev)) { 1201 bdev_put(bdev); 1207 if (bdev) [all...] |