Searched defs:size (Results 1 - 16 of 16) sorted by relevance

/lxc/src/lxc/
H A Drtnl.c63 extern struct rtnlmsg *rtnlmsg_alloc(size_t size) argument
65 /* size_t len = NLMSG_LENGTH(NLMSG_ALIGN(sizeof(struct rtnlmsghdr))) + size; */
H A Dgenl.c141 extern struct genlmsg *genlmsg_alloc(size_t size) argument
143 size_t len = NLMSG_LENGTH(GENL_HDRLEN) + size;
H A Daf_unix.c136 int lxc_abstract_unix_send_fd(int fd, int sendfd, void *data, size_t size) argument
159 iov.iov_len = data ? size : sizeof(buf);
166 int lxc_abstract_unix_recv_fd(int fd, int *recvfd, void *data, size_t size) argument
181 iov.iov_len = data ? size : sizeof(buf);
205 int lxc_abstract_unix_send_credential(int fd, void *data, size_t size) argument
231 iov.iov_len = data ? size : sizeof(buf);
238 int lxc_abstract_unix_rcv_credential(int fd, void *data, size_t size) argument
254 iov.iov_len = data ? size : sizeof(buf);
H A Dlxclock.c55 size_t size; local
59 size = backtrace(array, MAX_STACKDEPTH);
60 strings = backtrace_symbols(array, size);
63 fprintf(stderr, "\tObtained %zd stack frames.\n", size);
65 for (i = 0; i < size; i++)
H A Dlxcutmp.c154 int size, ret, length; local
165 if (ioctl(fd, FIONREAD, &size) < 0) {
166 SYSERROR("cannot determine the size of this notification");
170 if (read(fd, buffer, size) < size) {
H A Dnl.c70 const void *data, size_t size)
72 return nla_put(nlmsg, attr, data, size);
110 extern struct nlmsg *nlmsg_alloc(size_t size) argument
113 size_t len = NLMSG_HDRLEN + NLMSG_ALIGN(size);
151 extern struct nlmsg *nlmsg_alloc_reserve(size_t size) argument
155 nlmsg = nlmsg_alloc(size);
69 nla_put_buffer(struct nlmsg *nlmsg, int attr, const void *data, size_t size) argument
H A Dattach.c137 int size; local
145 size = sprintf(command, "changeprofile %s", lsm_label);
146 if (size < 0) {
151 if (write(lsm_labelfd, command, size + 1) < 0) {
H A Dutils.c392 SYSERROR("Error telling size of template");
430 /* first determine size of argument list, we don't want to reallocate
2074 int lxc_setgroups(int size, gid_t list[]) argument
2076 if (setgroups(size, list) < 0) {
H A Dconf.c424 size_t size = 0; local
430 size += strlen(argsin[i]) + 1;
432 size += strlen(hook) + 1;
434 size += strlen(script);
435 size += strlen(name);
436 size += strlen(section);
437 size += 3;
439 if (size > INT_MAX)
442 buffer = alloca(size);
449 snprintf(buffer, size, "
474 size_t size = 0; local
[all...]
H A Dlxccontainer.c1756 static char** get_from_array(char ***names, char *cname, int size) argument
1758 return (char **)bsearch(&cname, *names, size, sizeof(char *), (int (*)(const void *, const void *))string_cmp);
1762 static bool array_contains(char ***names, char *cname, int size) { argument
1763 if(get_from_array(names, cname, size) != NULL)
1768 static bool remove_from_array(char ***names, char *cname, int size) argument
1770 char **result = get_from_array(names, cname, size);
3969 struct migrate_opts *opts, unsigned int size)
3978 if (size > sizeof(*opts)) {
3983 end = (void *)opts + size;
3995 if (size < sizeo
3968 do_lxcapi_migrate(struct lxc_container *c, unsigned int cmd, struct migrate_opts *opts, unsigned int size) argument
[all...]
/lxc/src/lxc/bdev/
H A Dlxcloop.c40 static int do_loop_create(const char *path, uint64_t size, const char *fstype);
51 uint64_t size = newsize; local
88 if (!newsize && blk_getsize(orig, &size) < 0) {
89 ERROR("Error getting size of %s", orig->src);
100 size = DEFAULT_FS_SIZE;
102 return do_loop_create(srcdev, size, fstype);
206 static int do_loop_create(const char *path, uint64_t size, const char *fstype) argument
213 if (lseek(fd, size, SEEK_SET) < 0) {
214 SYSERROR("Error seeking to set new loop file size");
H A Dlxcrbd.c50 uint64_t size; local
76 size = specs->fssize;
77 if (!size)
78 size = DEFAULT_FS_SIZE;
81 ret = snprintf(sz, 24, "%"PRIu64, size / 1024 / 1024 );
88 execlp("rbd", "rbd", "create" , "--pool", rbdpool, rbdname, "--size", sz, (char *)NULL);
H A Dlxclvm.c57 * yet exist. This function will attempt to create /dev/$vg/$lv of size
58 * $size. If thinpool is specified, we'll check for it's existence and if
64 static int do_lvm_create(const char *path, uint64_t size, argument
78 ret = snprintf(sz, 24, "%"PRIu64"b", size);
231 int lvm_snapshot(const char *orig, const char *path, uint64_t size) argument
244 ret = snprintf(sz, 24, "%"PRIu64"b", size);
260 // cannot specify a size that's different from the original size.
283 uint64_t size = newsize; local
327 if (!newsize && blk_getsize(orig, &size) <
[all...]
H A Dbdev.c588 * return block size of dev->src in units of bytes
590 int blk_getsize(struct bdev *bdev, uint64_t *size) argument
602 ret = ioctl(fd, BLKGETSIZE64, size); // size of device in bytes
H A Dlxcbtrfs.h97 unsigned long long size; member in struct:btrfs_ioctl_vol_args_v2::__anon2::__anon3
224 __le64 size; member in struct:btrfs_inode_item
/lxc/src/lxc/tools/
H A Dlxc_ls.c92 static void ls_field_width(const struct ls *l, const size_t size,
94 static void ls_free(struct ls *l, size_t size);
95 static void ls_free_arr(char **arr, size_t size);
96 static int ls_get(struct ls **m, size_t *size, const struct lxc_arguments *args,
113 size_t *size; member in struct:wrapargs
134 static struct ls *ls_new(struct ls **ls, size_t *size);
140 size_t size, const char *fancy_fmt);
152 size_t size);
280 static void ls_free(struct ls *l, size_t size) argument
284 for (i = 0, m = l; i < size;
317 ls_free_arr(char **arr, size_t size) argument
325 ls_get(struct ls **m, size_t *size, const struct lxc_arguments *args, const char *basepath, const char *parent, unsigned int lvl, char **lockpath, size_t len_lockpath, char **grps_must, size_t grps_must_len) argument
735 ls_new(struct ls **ls, size_t *size) argument
752 ls_print_names(struct ls *l, struct lengths *lht, size_t size, size_t termwidth, bool list) argument
780 ls_print_fancy_format(struct ls *l, struct lengths *lht, size_t size, const char *fancy_fmt) argument
873 ls_print_table(struct ls *l, struct lengths *lht, size_t size) argument
1187 ls_field_width(const struct ls *l, const size_t size, struct lengths *lht) argument
[all...]

Completed in 4876 milliseconds