| /lxc/src/tests/ |
| H A D | list.c | 25 static void test_list_func(const char *lxcpath, const char *type, argument 33 printf("%-10s Counting containers\n", type); 35 printf("%-10s Counted %d containers\n", type, n); 36 printf("%-10s Get container struct only\n", type); 42 printf("%-10s Got container struct %s\n", type, c->name); 50 printf("%-10s Get names only\n", type); 55 printf("%-10s Got container name %s\n", type, names[i]); 63 printf("%-10s Get names and containers\n", type); 69 printf("%-10s Got container struct %s, name %s\n", type, c->name, names[i]);
|
| /lxc/src/lxc/ |
| H A D | af_unix.h | 28 extern int lxc_abstract_unix_open(const char *path, int type, int flags);
|
| H A D | lxclock.h | 41 short type; //!< Lock type member in struct:lxc_lock 50 } u; //!< Container for lock type elements
|
| H A D | monitor.h | 40 lxc_msg_type_t type; member in struct:lxc_msg
|
| H A D | lxclock.c | 170 l->type = LXC_LOCK_ANON_SEM; 179 l->type = LXC_LOCK_FLOCK; 197 switch(l->type) { 255 switch(l->type) { 295 switch(l->type) {
|
| H A D | network.h | 141 extern const char *lxc_net_type_to_str(int type);
|
| H A D | af_unix.c | 37 int lxc_abstract_unix_open(const char *path, int type, int flags) argument 46 fd = socket(PF_UNIX, type, 0); 75 if (type == SOCK_STREAM && listen(fd, 100)) {
|
| H A D | state.c | 174 switch (msg.type) {
|
| H A D | confile.c | 149 { "lxc.network.type", config_network_type }, 440 netdev->type = LXC_NET_VETH; 442 netdev->type = LXC_NET_MACVLAN; 446 netdev->type = LXC_NET_VLAN; 448 netdev->type = LXC_NET_PHYS; 450 netdev->type = LXC_NET_EMPTY; 452 netdev->type = LXC_NET_NONE; 454 ERROR("invalid network type %s", value); 524 strprint(retv, inlen, "type\n"); 527 if (netdev->type ! 1510 char type; local [all...] |
| /lxc/src/lxc/bdev/ |
| H A D | bdev.h | 67 /* detect whether path is of this bdev type */ 92 const char *type; member in struct:bdev 108 * type this should be. The dst and data are optional, and will be used 124 struct bdev *bdev_create(const char *dest, const char *type, 136 int detect_fs(struct bdev *bdev, char *type, int len); 149 bool is_valid_bdev_type(const char *type);
|
| H A D | bdev.c | 205 static struct bdev *bdev_get(const char *type); 206 static struct bdev *do_bdev_create(const char *dest, const char *type, 321 ERROR("failed to detect blockdev type for %s", src); 360 if (!bdevtype && !keepbdevtype && snap && strcmp(orig->type , "dir") == 0) 364 ERROR("Unsupported snapshot type for unprivileged users"); 370 if (bdevtype && strcmp(orig->type, "dir") == 0 && 374 } else if (snap && strcmp(orig->type, "lvm") == 0 && 379 new = bdev_get(bdevtype ? bdevtype : orig->type); 381 ERROR("no such block device type: %s", bdevtype ? bdevtype : orig->type); 463 bdev_create(const char *dest, const char *type, const char *cname, struct bdev_specs *specs) argument 621 detect_fs(struct bdev *bdev, char *type, int len) argument 807 do_bdev_create(const char *dest, const char *type, const char *cname, struct bdev_specs *specs) argument 824 bdev_get(const char *type) argument 975 is_valid_bdev_type(const char *type) argument [all...] |
| H A D | lxcdir.c | 112 if (strcmp(bdev->type, "dir")) 129 if (strcmp(bdev->type, "dir"))
|
| H A D | lxcbtrfs.h | 139 u8 type; member in struct:btrfs_disk_key 148 u8 type; member in struct:btrfs_dir_item 195 __u32 type; member in struct:btrfs_ioctl_search_header 203 * the type field is expanded to 32 bits for alignment 352 #define BTRFS_SETGET_STACK_FUNCS(name, type, member, bits) \ 353 static inline u##bits btrfs_##name(type *s) \ 357 static inline void btrfs_set_##name(type *s, u##bits val) \
|
| H A D | lxcrbd.c | 108 ERROR("Error creating filesystem type %s on %s", fstype, 160 if (strcmp(bdev->type, "rbd")) 176 if (strcmp(bdev->type, "rbd"))
|
| H A D | lxczfs.c | 88 if (strcmp(bdev->type, "zfs")) 109 if (strcmp(bdev->type, "zfs")) 213 if (snap && strcmp(orig->type, "zfs")) { 214 ERROR("zfs snapshot from %s backing store is not supported", orig->type);
|
| H A D | lxcaufs.c | 64 if (strcmp(orig->type, "dir") == 0) { 102 } else if (strcmp(orig->type, "aufs") == 0) { 159 orig->type); 245 if (strcmp(bdev->type, "aufs")) 310 if (strcmp(bdev->type, "aufs"))
|
| H A D | lxcloop.c | 170 if (strcmp(bdev->type, "loop")) 194 if (strcmp(bdev->type, "loop")) 231 ERROR("Error creating filesystem type %s on %s", fstype,
|
| H A D | lxclvm.c | 164 if (strcmp(bdev->type, "lvm")) 175 if (strcmp(bdev->type, "lvm")) 289 if (strcmp(orig->type, "lvm")) { 294 orig->type); 352 ERROR("Error creating filesystem type %s on %s", fstype, 420 ERROR("Error creating filesystem type %s on %s", fstype,
|
| H A D | lxcbtrfs.c | 197 if (strcmp(bdev->type, "btrfs")) 214 if (strcmp(bdev->type, "btrfs")) 368 if (strcmp(orig->type, "btrfs")) { 372 orig->type); 669 if (sh.objectid != root_id && sh.type == BTRFS_ROOT_BACKREF_KEY) { 694 sk->min_type = sh.type;
|
| H A D | lxcnbd.c | 120 if (strcmp(bdev->type, "nbd")) 155 if (strcmp(bdev->type, "nbd"))
|
| /lxc/src/lxc/cgroups/ |
| H A D | cgroup.h | 59 bool (*mount_cgroup)(void *hdata, const char *root, int type); 66 extern bool cgroup_mount(const char *root, struct lxc_handler *handler, int type);
|
| H A D | cgfsng.c | 753 /* Return true if the fs type is fuse.lxcfs */ 1520 static int mount_cgroup_full(int type, struct hierarchy *h, char *dest, argument 1523 if (type < LXC_AUTO_CGROUP_FULL_RO || type > LXC_AUTO_CGROUP_FULL_MIXED) 1530 if (type != LXC_AUTO_CGROUP_FULL_RW) { 1540 if (type != LXC_AUTO_CGROUP_FULL_MIXED) 1555 static bool cg_mount_needs_subdirs(int type) argument 1557 if (type >= LXC_AUTO_CGROUP_FULL_RO) 1568 do_secondstage_mounts_if_needed(int type, struct hierarchy *h, argument 1572 if (type 1600 cgfsng_mount(void *hdata, const char *root, int type) argument [all...] |
| H A D | cgroup.c | 160 bool cgroup_mount(const char *root, struct lxc_handler *handler, int type) argument 163 return ops->mount_cgroup(handler->cgroup_data, root, type);
|
| /lxc/src/lxc/tools/ |
| H A D | lxc_copy.c | 121 -B, --backingstorage=TYPE backingstorage type for the container\n\ 136 enum mnttype type); 154 static int parse_aufs_mnt(char *mntstring, enum mnttype type); 155 static int parse_bind_mnt(char *mntstring, enum mnttype type); 156 static int parse_ovl_mnt(char *mntstring, enum mnttype type); 238 static struct mnts *add_mnt(struct mnts **mnts, unsigned int *num, enum mnttype type) argument 250 *m = (struct mnts) {.mnt_type = type}; 611 static int parse_aufs_mnt(char *mntstring, enum mnttype type) argument 618 m = add_mnt(&mnt_table, &mnt_table_size, type); 654 static int parse_bind_mnt(char *mntstring, enum mnttype type) argument 735 parse_ovl_mnt(char *mntstring, enum mnttype type) argument [all...] |
| H A D | lxc_info.c | 153 char *ifname, *type; local 158 sprintf(buf, "lxc.network.%d.type", netnr); 159 type = c->get_running_config_item(c, buf); 160 if (!type) 163 if (!strcmp(type, "veth")) { 168 free(type);
|