Searched refs:type (Results 1 - 25 of 40) sorted by relevance

12

/lxc/src/tests/
H A Dlist.c25 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 Daf_unix.h28 extern int lxc_abstract_unix_open(const char *path, int type, int flags);
H A Dlxclock.h41 short type; //!< Lock type member in struct:lxc_lock
50 } u; //!< Container for lock type elements
H A Dmonitor.h40 lxc_msg_type_t type; member in struct:lxc_msg
H A Dlxclock.c170 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 Dnetwork.h141 extern const char *lxc_net_type_to_str(int type);
H A Daf_unix.c37 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 Dstate.c174 switch (msg.type) {
H A Dconfile.c149 { "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 Dbdev.h67 /* 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 Dbdev.c205 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 Dlxcdir.c112 if (strcmp(bdev->type, "dir"))
129 if (strcmp(bdev->type, "dir"))
H A Dlxcbtrfs.h139 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 Dlxcrbd.c108 ERROR("Error creating filesystem type %s on %s", fstype,
160 if (strcmp(bdev->type, "rbd"))
176 if (strcmp(bdev->type, "rbd"))
H A Dlxczfs.c88 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 Dlxcaufs.c64 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 Dlxcloop.c170 if (strcmp(bdev->type, "loop"))
194 if (strcmp(bdev->type, "loop"))
231 ERROR("Error creating filesystem type %s on %s", fstype,
H A Dlxclvm.c164 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 Dlxcbtrfs.c197 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 Dlxcnbd.c120 if (strcmp(bdev->type, "nbd"))
155 if (strcmp(bdev->type, "nbd"))
/lxc/src/lxc/cgroups/
H A Dcgroup.h59 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 Dcgfsng.c753 /* 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 Dcgroup.c160 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 Dlxc_copy.c121 -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 Dlxc_info.c153 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);

Completed in 203 milliseconds

12