Lines Matching refs:size
37 size_t size);
57 size_t size) in ceph_vxattrcb_layout() argument
92 if (size >= total_len) { in ceph_vxattrcb_layout()
120 int ceph_fmt_xattr(char *val, size_t size, const char *fmt, ...) in ceph_fmt_xattr() argument
127 ret = vsnprintf(buf, size ? sizeof(buf) : 0, fmt, args); in ceph_fmt_xattr()
131 if (size && ret + 1 > sizeof(buf)) { in ceph_fmt_xattr()
136 if (ret <= size) in ceph_fmt_xattr()
142 char *val, size_t size) in ceph_vxattrcb_layout_stripe_unit() argument
144 return ceph_fmt_xattr(val, size, "%u", ci->i_layout.stripe_unit); in ceph_vxattrcb_layout_stripe_unit()
148 char *val, size_t size) in ceph_vxattrcb_layout_stripe_count() argument
150 return ceph_fmt_xattr(val, size, "%u", ci->i_layout.stripe_count); in ceph_vxattrcb_layout_stripe_count()
154 char *val, size_t size) in ceph_vxattrcb_layout_object_size() argument
156 return ceph_fmt_xattr(val, size, "%u", ci->i_layout.object_size); in ceph_vxattrcb_layout_object_size()
160 char *val, size_t size) in ceph_vxattrcb_layout_pool() argument
172 if (ret <= size) in ceph_vxattrcb_layout_pool()
175 ret = ceph_fmt_xattr(val, size, "%lld", pool); in ceph_vxattrcb_layout_pool()
182 char *val, size_t size) in ceph_vxattrcb_layout_pool_namespace() argument
189 if (ret <= size) in ceph_vxattrcb_layout_pool_namespace()
199 size_t size) in ceph_vxattrcb_dir_entries() argument
201 return ceph_fmt_xattr(val, size, "%lld", ci->i_files + ci->i_subdirs); in ceph_vxattrcb_dir_entries()
205 size_t size) in ceph_vxattrcb_dir_files() argument
207 return ceph_fmt_xattr(val, size, "%lld", ci->i_files); in ceph_vxattrcb_dir_files()
211 size_t size) in ceph_vxattrcb_dir_subdirs() argument
213 return ceph_fmt_xattr(val, size, "%lld", ci->i_subdirs); in ceph_vxattrcb_dir_subdirs()
217 size_t size) in ceph_vxattrcb_dir_rentries() argument
219 return ceph_fmt_xattr(val, size, "%lld", in ceph_vxattrcb_dir_rentries()
224 size_t size) in ceph_vxattrcb_dir_rfiles() argument
226 return ceph_fmt_xattr(val, size, "%lld", ci->i_rfiles); in ceph_vxattrcb_dir_rfiles()
230 size_t size) in ceph_vxattrcb_dir_rsubdirs() argument
232 return ceph_fmt_xattr(val, size, "%lld", ci->i_rsubdirs); in ceph_vxattrcb_dir_rsubdirs()
236 size_t size) in ceph_vxattrcb_dir_rbytes() argument
238 return ceph_fmt_xattr(val, size, "%lld", ci->i_rbytes); in ceph_vxattrcb_dir_rbytes()
242 size_t size) in ceph_vxattrcb_dir_rctime() argument
244 return ceph_fmt_xattr(val, size, "%lld.%09ld", ci->i_rctime.tv_sec, in ceph_vxattrcb_dir_rctime()
255 size_t size) in ceph_vxattrcb_dir_pin() argument
257 return ceph_fmt_xattr(val, size, "%d", (int)ci->i_dir_pin); in ceph_vxattrcb_dir_pin()
275 size_t size) in ceph_vxattrcb_quota() argument
277 return ceph_fmt_xattr(val, size, "max_bytes=%llu max_files=%llu", in ceph_vxattrcb_quota()
282 char *val, size_t size) in ceph_vxattrcb_quota_max_bytes() argument
284 return ceph_fmt_xattr(val, size, "%llu", ci->i_max_bytes); in ceph_vxattrcb_quota_max_bytes()
288 char *val, size_t size) in ceph_vxattrcb_quota_max_files() argument
290 return ceph_fmt_xattr(val, size, "%llu", ci->i_max_files); in ceph_vxattrcb_quota_max_files()
300 size_t size) in ceph_vxattrcb_snap_btime() argument
302 return ceph_fmt_xattr(val, size, "%lld.%09ld", ci->i_snap_btime.tv_sec, in ceph_vxattrcb_snap_btime()
752 int size = 4 + ci->i_xattrs.count*(4 + 4) + in __get_required_blob_size() local
760 size += 4 + 4 + name_size + val_size; in __get_required_blob_size()
762 return size; in __get_required_blob_size()
834 size_t size) in __ceph_getxattr() argument
853 err = vxattr->getxattr_cb(ci, value, size); in __ceph_getxattr()
854 if (size && size < err) in __ceph_getxattr()
895 if (size && size < xattr->val_len) in __ceph_getxattr()
899 if (size == 0) in __ceph_getxattr()
913 ssize_t ceph_listxattr(struct dentry *dentry, char *names, size_t size) in ceph_listxattr() argument
917 bool len_only = (size == 0); in ceph_listxattr()
941 if (namelen > size) { in ceph_listxattr()
946 size -= namelen; in ceph_listxattr()
955 const char *value, size_t size, int flags) in ceph_sync_setxattr() argument
965 if (size > 0) { in ceph_sync_setxattr()
971 err = ceph_pagelist_append(pagelist, value, size); in ceph_sync_setxattr()
981 dout("setxattr value=%.*s\n", (int)size, value); in ceph_sync_setxattr()
1020 const void *value, size_t size, int flags) in __ceph_setxattr() argument
1031 int val_len = size; in __ceph_setxattr()
1145 err = ceph_sync_setxattr(inode, name, value, size, flags); in __ceph_setxattr()
1166 const char *name, void *value, size_t size, in ceph_get_xattr_handler() argument
1171 return __ceph_getxattr(inode, name, value, size); in ceph_get_xattr_handler()
1177 size_t size, int flags) in ceph_set_xattr_handler() argument
1181 return __ceph_setxattr(inode, name, value, size, flags); in ceph_set_xattr_handler()