Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 150) sorted by relevance

123456

/fs/ext2/
Dacl.c20 ext2_acl_from_disk(const void *value, size_t size) in ext2_acl_from_disk() argument
22 const char *end = (char *)value + size; in ext2_acl_from_disk()
26 if (!value) in ext2_acl_from_disk()
30 if (((ext2_acl_header *)value)->a_version != in ext2_acl_from_disk()
33 value = (char *)value + sizeof(ext2_acl_header); in ext2_acl_from_disk()
44 (ext2_acl_entry *)value; in ext2_acl_from_disk()
45 if ((char *)value + sizeof(ext2_acl_entry_short) > end) in ext2_acl_from_disk()
54 value = (char *)value + in ext2_acl_from_disk()
59 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk()
60 if ((char *)value > end) in ext2_acl_from_disk()
[all …]
/fs/ext4/
Dacl.c18 ext4_acl_from_disk(const void *value, size_t size) in ext4_acl_from_disk() argument
20 const char *end = (char *)value + size; in ext4_acl_from_disk()
24 if (!value) in ext4_acl_from_disk()
28 if (((ext4_acl_header *)value)->a_version != in ext4_acl_from_disk()
31 value = (char *)value + sizeof(ext4_acl_header); in ext4_acl_from_disk()
42 (ext4_acl_entry *)value; in ext4_acl_from_disk()
43 if ((char *)value + sizeof(ext4_acl_entry_short) > end) in ext4_acl_from_disk()
53 value = (char *)value + in ext4_acl_from_disk()
58 value = (char *)value + sizeof(ext4_acl_entry); in ext4_acl_from_disk()
59 if ((char *)value > end) in ext4_acl_from_disk()
[all …]
/fs/reiserfs/
Dxattr_acl.c65 static struct posix_acl *reiserfs_posix_acl_from_disk(const void *value, size_t size) in reiserfs_posix_acl_from_disk() argument
67 const char *end = (char *)value + size; in reiserfs_posix_acl_from_disk()
71 if (!value) in reiserfs_posix_acl_from_disk()
75 if (((reiserfs_acl_header *) value)->a_version != in reiserfs_posix_acl_from_disk()
78 value = (char *)value + sizeof(reiserfs_acl_header); in reiserfs_posix_acl_from_disk()
88 reiserfs_acl_entry *entry = (reiserfs_acl_entry *) value; in reiserfs_posix_acl_from_disk()
89 if ((char *)value + sizeof(reiserfs_acl_entry_short) > end) in reiserfs_posix_acl_from_disk()
98 value = (char *)value + in reiserfs_posix_acl_from_disk()
103 value = (char *)value + sizeof(reiserfs_acl_entry); in reiserfs_posix_acl_from_disk()
104 if ((char *)value > end) in reiserfs_posix_acl_from_disk()
[all …]
/fs/jffs2/
Dacl.c55 static struct posix_acl *jffs2_acl_from_medium(void *value, size_t size) in jffs2_acl_from_medium() argument
57 void *end = value + size; in jffs2_acl_from_medium()
58 struct jffs2_acl_header *header = value; in jffs2_acl_from_medium()
64 if (!value) in jffs2_acl_from_medium()
74 value += sizeof(struct jffs2_acl_header); in jffs2_acl_from_medium()
86 entry = value; in jffs2_acl_from_medium()
87 if (value + sizeof(struct jffs2_acl_entry_short) > end) in jffs2_acl_from_medium()
96 value += sizeof(struct jffs2_acl_entry_short); in jffs2_acl_from_medium()
100 value += sizeof(struct jffs2_acl_entry); in jffs2_acl_from_medium()
101 if (value > end) in jffs2_acl_from_medium()
[all …]
Dcompr_rtime.c47 unsigned char value; in jffs2_rtime_compress() local
49 value = data_in[pos]; in jffs2_rtime_compress()
53 backpos = positions[value]; in jffs2_rtime_compress()
54 positions[value]=pos; in jffs2_rtime_compress()
87 unsigned char value; in jffs2_rtime_decompress() local
91 value = data_in[pos++]; in jffs2_rtime_decompress()
92 cpage_out[outpos++] = value; /* first the verbatim copied byte */ in jffs2_rtime_decompress()
94 backoffs = positions[value]; in jffs2_rtime_decompress()
96 positions[value]=outpos; in jffs2_rtime_decompress()
/fs/cifs/
Dxattr.c55 const void *value, size_t size) in cifs_attrib_set() argument
58 __u32 *pattrib = (__u32 *)value; in cifs_attrib_set()
62 if ((value == NULL) || (size != sizeof(__u32))) in cifs_attrib_set()
79 const void *value, size_t size) in cifs_creation_time_set() argument
82 __u64 *pcreation_time = (__u64 *)value; in cifs_creation_time_set()
86 if ((value == NULL) || (size != sizeof(__u64))) in cifs_creation_time_set()
103 const char *name, const void *value, in cifs_xattr_set() argument
144 value, size); in cifs_xattr_set()
151 full_path, value, size); in cifs_xattr_set()
162 full_path, name, value, (__u16)size, in cifs_xattr_set()
[all …]
Dfs_context.c28 cifs_parse_smb_version(char *value, struct smb_vol *vol, bool is_smb3) in cifs_parse_smb_version() argument
32 switch (match_token(value, cifs_smb_version_tokens, args)) { in cifs_parse_smb_version()
92 cifs_dbg(VFS, "Unknown vers= option specified: %s\n", value); in cifs_parse_smb_version()
115 int cifs_parse_security_flavors(char *value, struct smb_vol *vol) in cifs_parse_security_flavors() argument
127 switch (match_token(value, cifs_secflavor_tokens, args)) { in cifs_parse_security_flavors()
164 cifs_dbg(VFS, "bad security option: %s\n", value); in cifs_parse_security_flavors()
181 cifs_parse_cache_flavor(char *value, struct smb_vol *vol) in cifs_parse_cache_flavor() argument
185 switch (match_token(value, cifs_cacheflavor_tokens, args)) { in cifs_parse_cache_flavor()
217 cifs_dbg(VFS, "bad cache= option: %s\n", value); in cifs_parse_cache_flavor()
/fs/fuse/
Dxattr.c14 int fuse_setxattr(struct inode *inode, const char *name, const void *value, in fuse_setxattr() argument
32 args.in_args[0].value = &inarg; in fuse_setxattr()
34 args.in_args[1].value = name; in fuse_setxattr()
36 args.in_args[2].value = value; in fuse_setxattr()
49 ssize_t fuse_getxattr(struct inode *inode, const char *name, void *value, in fuse_getxattr() argument
67 args.in_args[0].value = &inarg; in fuse_getxattr()
69 args.in_args[1].value = name; in fuse_getxattr()
75 args.out_args[0].value = value; in fuse_getxattr()
78 args.out_args[0].value = &outarg; in fuse_getxattr()
131 args.in_args[0].value = &inarg; in fuse_listxattr()
[all …]
Dacl.c19 void *value = NULL; in fuse_get_acl() local
35 value = kmalloc(PAGE_SIZE, GFP_KERNEL); in fuse_get_acl()
36 if (!value) in fuse_get_acl()
38 size = fuse_getxattr(inode, name, value, PAGE_SIZE); in fuse_get_acl()
40 acl = posix_acl_from_xattr(fc->user_ns, value, size); in fuse_get_acl()
49 kfree(value); in fuse_get_acl()
81 void *value; in fuse_set_acl() local
86 value = kmalloc(size, GFP_KERNEL); in fuse_set_acl()
87 if (!value) in fuse_set_acl()
90 ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); in fuse_set_acl()
[all …]
/fs/
Dxattr.c166 const void *value, size_t size, int flags) in __vfs_setxattr() argument
176 value = ""; /* empty EA, do not remove */ in __vfs_setxattr()
177 return handler->set(handler, dentry, inode, name, value, size, flags); in __vfs_setxattr()
198 const void *value, size_t size, int flags) in __vfs_setxattr_noperm() argument
208 error = __vfs_setxattr(dentry, inode, name, value, size, flags); in __vfs_setxattr_noperm()
211 security_inode_post_setxattr(dentry, name, value, in __vfs_setxattr_noperm()
224 error = security_inode_setsecurity(inode, suffix, value, in __vfs_setxattr_noperm()
248 const void *value, size_t size, int flags, in __vfs_setxattr_locked() argument
258 error = security_inode_setxattr(dentry, name, value, size, flags); in __vfs_setxattr_locked()
266 error = __vfs_setxattr_noperm(dentry, name, value, size, flags); in __vfs_setxattr_locked()
[all …]
/fs/btrfs/
Dprops.c20 int (*validate)(const char *value, size_t len);
21 int (*apply)(struct inode *inode, const char *value, size_t len);
58 int btrfs_validate_prop(const char *name, const char *value, size_t value_len) in btrfs_validate_prop() argument
72 return handler->validate(value, value_len); in btrfs_validate_prop()
76 const char *name, const char *value, size_t value_len, in btrfs_set_prop() argument
98 ret = btrfs_setxattr(trans, inode, handler->xattr_name, value, in btrfs_set_prop()
102 ret = handler->apply(inode, value, value_len); in btrfs_set_prop()
227 const char *value, in inode_prop_iterator() argument
234 ret = handler->apply(inode, value, len); in inode_prop_iterator()
255 static int prop_compression_validate(const char *value, size_t len) in prop_compression_validate() argument
[all …]
Dacl.c23 char *value = NULL; in btrfs_get_acl() local
39 value = kzalloc(size, GFP_KERNEL); in btrfs_get_acl()
40 if (!value) in btrfs_get_acl()
42 size = btrfs_getxattr(inode, name, value, size); in btrfs_get_acl()
45 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl()
50 kfree(value); in btrfs_get_acl()
60 char *value = NULL; in __btrfs_set_acl() local
84 value = kmalloc(size, GFP_KERNEL); in __btrfs_set_acl()
86 if (!value) { in __btrfs_set_acl()
91 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __btrfs_set_acl()
[all …]
/fs/orangefs/
Dacl.c17 char *key = NULL, *value = NULL; in orangefs_get_acl() local
37 value = kmalloc(ORANGEFS_MAX_XATTR_VALUELEN, GFP_KERNEL); in orangefs_get_acl()
38 if (!value) in orangefs_get_acl()
46 ret = orangefs_inode_getxattr(inode, key, value, in orangefs_get_acl()
50 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl()
60 kfree(value); in orangefs_get_acl()
68 void *value = NULL; in __orangefs_set_acl() local
92 value = kmalloc(size, GFP_KERNEL); in __orangefs_set_acl()
93 if (!value) in __orangefs_set_acl()
96 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl()
[all …]
/fs/jfs/
Dacl.c22 char *value = NULL; in jfs_get_acl() local
38 value = kmalloc(size, GFP_KERNEL); in jfs_get_acl()
39 if (!value) in jfs_get_acl()
41 size = __jfs_getxattr(inode, ea_name, value, size); in jfs_get_acl()
50 acl = posix_acl_from_xattr(&init_user_ns, value, size); in jfs_get_acl()
52 kfree(value); in jfs_get_acl()
62 char *value = NULL; in __jfs_set_acl() local
77 value = kmalloc(size, GFP_KERNEL); in __jfs_set_acl()
78 if (!value) in __jfs_set_acl()
80 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __jfs_set_acl()
[all …]
/fs/hfs/
Dattr.c23 const void *value, size_t size, int flags) in __hfs_setxattr() argument
47 memcpy(&file->UsrWds.fdType, value, 4); in __hfs_setxattr()
54 memcpy(&file->UsrWds.fdCreator, value, 4); in __hfs_setxattr()
69 void *value, size_t size) in __hfs_getxattr() argument
95 memcpy(value, &file->UsrWds.fdType, 4); in __hfs_getxattr()
103 memcpy(value, &file->UsrWds.fdCreator, 4); in __hfs_getxattr()
118 const char *name, void *value, size_t size, int flags) in hfs_xattr_get() argument
120 return __hfs_getxattr(inode, handler->flags, value, size); in hfs_xattr_get()
125 const char *name, const void *value, size_t size, in hfs_xattr_set() argument
128 if (!value) in hfs_xattr_set()
[all …]
/fs/ceph/
Dacl.c37 char *value = NULL; in ceph_get_acl() local
54 value = kzalloc(size, GFP_NOFS); in ceph_get_acl()
55 if (!value) in ceph_get_acl()
57 size = __ceph_getxattr(inode, name, value, size); in ceph_get_acl()
62 kfree(value); in ceph_get_acl()
63 value = NULL; in ceph_get_acl()
68 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl()
77 kfree(value); in ceph_get_acl()
89 char *value = NULL; in ceph_set_acl() local
122 value = kmalloc(size, GFP_NOFS); in ceph_set_acl()
[all …]
/fs/ocfs2/
Dacl.c35 static struct posix_acl *ocfs2_acl_from_xattr(const void *value, size_t size) in ocfs2_acl_from_xattr() argument
40 if (!value) in ocfs2_acl_from_xattr()
52 (struct ocfs2_acl_entry *)value; in ocfs2_acl_from_xattr()
70 value += sizeof(struct posix_acl_entry); in ocfs2_acl_from_xattr()
119 char *value = NULL; in ocfs2_get_acl_nolock() local
136 value = kmalloc(retval, GFP_NOFS); in ocfs2_get_acl_nolock()
137 if (!value) in ocfs2_get_acl_nolock()
140 "", value, retval); in ocfs2_get_acl_nolock()
144 acl = ocfs2_acl_from_xattr(value, retval); in ocfs2_get_acl_nolock()
150 kfree(value); in ocfs2_get_acl_nolock()
[all …]
/fs/kernfs/
Dinode.c292 void *value, size_t size) in kernfs_xattr_get() argument
298 return simple_xattr_get(&attrs->xattrs, name, value, size); in kernfs_xattr_get()
302 const void *value, size_t size, int flags) in kernfs_xattr_set() argument
308 return simple_xattr_set(&attrs->xattrs, name, value, size, flags, NULL); in kernfs_xattr_set()
313 const char *suffix, void *value, size_t size, in kernfs_vfs_xattr_get() argument
319 return kernfs_xattr_get(kn, name, value, size); in kernfs_vfs_xattr_get()
324 const char *suffix, const void *value, in kernfs_vfs_xattr_set() argument
330 return kernfs_xattr_set(kn, name, value, size, flags); in kernfs_vfs_xattr_set()
336 const void *value, size_t size, int flags) in kernfs_vfs_user_xattr_add() argument
353 ret = simple_xattr_set(xattrs, full_name, value, size, flags, in kernfs_vfs_user_xattr_add()
[all …]
/fs/debugfs/
Dfile.c421 struct dentry *parent, void *value, in debugfs_create_mode_unsafe() argument
428 return debugfs_create_file_unsafe(name, mode, parent, value, in debugfs_create_mode_unsafe()
432 return debugfs_create_file_unsafe(name, mode, parent, value, in debugfs_create_mode_unsafe()
435 return debugfs_create_file_unsafe(name, mode, parent, value, fops); in debugfs_create_mode_unsafe()
467 u8 *value) in debugfs_create_u8() argument
469 debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u8, in debugfs_create_u8()
503 u16 *value) in debugfs_create_u16() argument
505 debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u16, in debugfs_create_u16()
539 u32 *value) in debugfs_create_u32() argument
541 debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u32, in debugfs_create_u32()
[all …]
/fs/ntfs/
Dbitmap.c34 const s64 count, const u8 value, const bool is_rollback) in __ntfs_bitmap_set_bits_in_run() argument
47 (unsigned long long)cnt, (unsigned int)value, in __ntfs_bitmap_set_bits_in_run()
51 BUG_ON(value > 1); in __ntfs_bitmap_set_bits_in_run()
81 if (value) in __ntfs_bitmap_set_bits_in_run()
98 memset(kaddr + pos, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
122 memset(kaddr, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
138 if (value) in __ntfs_bitmap_set_bits_in_run()
161 value ? 0 : 1, true); in __ntfs_bitmap_set_bits_in_run()
/fs/f2fs/
Dacl.c46 static struct posix_acl *f2fs_acl_from_disk(const char *value, size_t size) in f2fs_acl_from_disk() argument
50 struct f2fs_acl_header *hdr = (struct f2fs_acl_header *)value; in f2fs_acl_from_disk()
52 const char *end = value + size; in f2fs_acl_from_disk()
172 void *value = NULL; in __f2fs_get_acl() local
181 value = f2fs_kmalloc(F2FS_I_SB(inode), retval, GFP_F2FS_ZERO); in __f2fs_get_acl()
182 if (!value) in __f2fs_get_acl()
184 retval = f2fs_getxattr(inode, name_index, "", value, in __f2fs_get_acl()
189 acl = f2fs_acl_from_disk(value, retval); in __f2fs_get_acl()
194 kfree(value); in __f2fs_get_acl()
229 void *value = NULL; in __f2fs_set_acl() local
[all …]
/fs/ufs/
Dutil.h58 struct ufs_super_block_third *usb3, s32 value) in ufs_set_fs_state() argument
63 usb1->fs_u0.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
68 usb3->fs_un2.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
71 usb1->fs_u1.fs_sunx86.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
74 usb3->fs_un2.fs_44.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
147 ufs_set_de_namlen(struct super_block *sb, struct ufs_dir_entry *de, u16 value) in ufs_set_de_namlen() argument
150 de->d_u.d_namlen = cpu_to_fs16(sb, value); in ufs_set_de_namlen()
152 de->d_u.d_44.d_namlen = value; /* XXX this seems wrong */ in ufs_set_de_namlen()
207 ufs_set_inode_uid(struct super_block *sb, struct ufs_inode *inode, u32 value) in ufs_set_inode_uid() argument
211 inode->ui_u3.ui_44.ui_uid = cpu_to_fs32(sb, value); in ufs_set_inode_uid()
[all …]
/fs/proc/
Droot.c53 static inline int valid_hidepid(unsigned int value) in valid_hidepid() argument
55 return (value == HIDEPID_OFF || in valid_hidepid()
56 value == HIDEPID_NO_ACCESS || in valid_hidepid()
57 value == HIDEPID_INVISIBLE || in valid_hidepid()
58 value == HIDEPID_NOT_PTRACEABLE); in valid_hidepid()
92 static int proc_parse_subset_param(struct fs_context *fc, char *value) in proc_parse_subset_param() argument
96 while (value) { in proc_parse_subset_param()
97 char *ptr = strchr(value, ','); in proc_parse_subset_param()
102 if (*value != '\0') { in proc_parse_subset_param()
103 if (!strcmp(value, "pid")) { in proc_parse_subset_param()
[all …]
/fs/9p/
Dacl.c31 void *value = NULL; in __v9fs_get_acl() local
36 value = kzalloc(size, GFP_NOFS); in __v9fs_get_acl()
37 if (!value) in __v9fs_get_acl()
39 size = v9fs_fid_xattr_get(fid, name, value, size); in __v9fs_get_acl()
41 acl = posix_acl_from_xattr(&init_user_ns, value, size); in __v9fs_get_acl()
52 kfree(value); in __v9fs_get_acl()
244 const char *name, const void *value, in v9fs_xattr_set_acl() argument
257 return v9fs_xattr_set(dentry, handler->name, value, size, in v9fs_xattr_set_acl()
264 if (value) { in v9fs_xattr_set_acl()
266 acl = posix_acl_from_xattr(&init_user_ns, value, size); in v9fs_xattr_set_acl()
[all …]
/fs/befs/
Dbtree.c113 const char *findkey, befs_off_t * value);
246 const char *key, befs_off_t * value) in befs_btree_find() argument
292 res = befs_find_key(sb, this_node, key, value); in befs_btree_find()
300 *value = 0; in befs_btree_find()
304 key, *value); in befs_btree_find()
310 *value = 0; in befs_btree_find()
331 const char *findkey, befs_off_t * value) in befs_find_key() argument
371 *value = fs64_to_cpu(sb, valarray[mid]); in befs_find_key()
382 *value = fs64_to_cpu(sb, valarray[mid + 1]); in befs_find_key()
384 *value = fs64_to_cpu(sb, valarray[mid]); in befs_find_key()
[all …]

123456