Home
last modified time | relevance | path

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

12345

/fs/btrfs/
Dacl.c47 char *value = NULL; in btrfs_get_acl() local
74 value = kzalloc(size, GFP_NOFS); in btrfs_get_acl()
75 if (!value) in btrfs_get_acl()
77 size = __btrfs_getxattr(inode, name, value, size); in btrfs_get_acl()
79 acl = posix_acl_from_xattr(value, size); in btrfs_get_acl()
82 kfree(value); in btrfs_get_acl()
92 void *value, size_t size) in btrfs_xattr_get_acl() argument
103 ret = posix_acl_to_xattr(acl, value, size); in btrfs_xattr_get_acl()
117 char *value = NULL; in btrfs_set_acl() local
150 value = kmalloc(size, GFP_NOFS); in btrfs_set_acl()
[all …]
Dxattr.c89 const void *value, size_t size, int flags) in __btrfs_setxattr() argument
126 if (!value) { in __btrfs_setxattr()
142 value, size, inode->i_ino); in __btrfs_setxattr()
301 int btrfs_setxattr(struct dentry *dentry, const char *name, const void *value, in btrfs_setxattr() argument
310 return generic_setxattr(dentry, name, value, size, flags); in btrfs_setxattr()
316 value = ""; /* empty EA, do not remove */ in btrfs_setxattr()
317 return __btrfs_setxattr(dentry->d_inode, name, value, size, flags); in btrfs_setxattr()
339 void *value; in btrfs_xattr_security_init() local
343 err = security_inode_init_security(inode, dir, &suffix, &value, &len); in btrfs_xattr_security_init()
357 err = __btrfs_setxattr(inode, name, value, len, 0); in btrfs_xattr_security_init()
[all …]
/fs/xfs/linux-2.6/
Dxfs_xattr.c65 const void *value, size_t size, int flags) in xfs_xattr_system_set() argument
75 if (!value) in xfs_xattr_system_set()
78 return xfs_acl_vset(inode, (void *)value, size, acl); in xfs_xattr_system_set()
95 void *value, size_t size, int xflags) in __xfs_xattr_get() argument
106 value = NULL; in __xfs_xattr_get()
109 error = -xfs_attr_get(ip, name, value, &asize, xflags); in __xfs_xattr_get()
116 __xfs_xattr_set(struct inode *inode, const char *name, const void *value, in __xfs_xattr_set() argument
130 if (!value) in __xfs_xattr_set()
132 return -xfs_attr_set(ip, name, (void *)value, size, xflags); in __xfs_xattr_set()
137 void *value, size_t size) in xfs_xattr_user_get() argument
[all …]
Dxfs_super.c145 char *value = s; in suffix_strtoul() local
147 last = strlen(value) - 1; in suffix_strtoul()
148 if (value[last] == 'K' || value[last] == 'k') { in suffix_strtoul()
150 value[last] = '\0'; in suffix_strtoul()
152 if (value[last] == 'M' || value[last] == 'm') { in suffix_strtoul()
154 value[last] = '\0'; in suffix_strtoul()
156 if (value[last] == 'G' || value[last] == 'g') { in suffix_strtoul()
158 value[last] = '\0'; in suffix_strtoul()
178 char *this_char, *value, *eov; in xfs_parseargs() local
215 if ((value = strchr(this_char, '=')) != NULL) in xfs_parseargs()
[all …]
/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()
61 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk()
62 if ((char *)value > end) in ext2_acl_from_disk()
[all …]
Dxattr_security.c40 const void *value, size_t size, int flags) in ext2_xattr_security_set() argument
45 value, size, flags); in ext2_xattr_security_set()
53 void *value; in ext2_init_security() local
56 err = security_inode_init_security(inode, dir, &name, &value, &len); in ext2_init_security()
63 name, value, len, 0); in ext2_init_security()
65 kfree(value); in ext2_init_security()
/fs/ext4/
Dacl.c21 ext4_acl_from_disk(const void *value, size_t size) in ext4_acl_from_disk() argument
23 const char *end = (char *)value + size; in ext4_acl_from_disk()
27 if (!value) in ext4_acl_from_disk()
31 if (((ext4_acl_header *)value)->a_version != in ext4_acl_from_disk()
34 value = (char *)value + sizeof(ext4_acl_header); in ext4_acl_from_disk()
45 (ext4_acl_entry *)value; in ext4_acl_from_disk()
46 if ((char *)value + sizeof(ext4_acl_entry_short) > end) in ext4_acl_from_disk()
56 value = (char *)value + in ext4_acl_from_disk()
63 value = (char *)value + sizeof(ext4_acl_entry); in ext4_acl_from_disk()
64 if ((char *)value > end) in ext4_acl_from_disk()
[all …]
Dxattr_security.c42 const void *value, size_t size, int flags) in ext4_xattr_security_set() argument
47 value, size, flags); in ext4_xattr_security_set()
55 void *value; in ext4_init_security() local
58 err = security_inode_init_security(inode, dir, &name, &value, &len); in ext4_init_security()
65 name, value, len, 0); in ext4_init_security()
67 kfree(value); in ext4_init_security()
/fs/reiserfs/
Dxattr_acl.c17 xattr_set_acl(struct inode *inode, int type, const void *value, size_t size) in xattr_set_acl() argument
27 if (value) { in xattr_set_acl()
28 acl = posix_acl_from_xattr(value, size); in xattr_set_acl()
69 static struct posix_acl *posix_acl_from_disk(const void *value, size_t size) in posix_acl_from_disk() argument
71 const char *end = (char *)value + size; in posix_acl_from_disk()
75 if (!value) in posix_acl_from_disk()
79 if (((reiserfs_acl_header *) value)->a_version != in posix_acl_from_disk()
82 value = (char *)value + sizeof(reiserfs_acl_header); in posix_acl_from_disk()
92 reiserfs_acl_entry *entry = (reiserfs_acl_entry *) value; in posix_acl_from_disk()
93 if ((char *)value + sizeof(reiserfs_acl_entry_short) > end) in posix_acl_from_disk()
[all …]
/fs/ext3/
Dacl.c21 ext3_acl_from_disk(const void *value, size_t size) in ext3_acl_from_disk() argument
23 const char *end = (char *)value + size; in ext3_acl_from_disk()
27 if (!value) in ext3_acl_from_disk()
31 if (((ext3_acl_header *)value)->a_version != in ext3_acl_from_disk()
34 value = (char *)value + sizeof(ext3_acl_header); in ext3_acl_from_disk()
45 (ext3_acl_entry *)value; in ext3_acl_from_disk()
46 if ((char *)value + sizeof(ext3_acl_entry_short) > end) in ext3_acl_from_disk()
55 value = (char *)value + in ext3_acl_from_disk()
62 value = (char *)value + sizeof(ext3_acl_entry); in ext3_acl_from_disk()
63 if ((char *)value > end) in ext3_acl_from_disk()
[all …]
Dxattr_security.c42 const void *value, size_t size, int flags) in ext3_xattr_security_set() argument
47 value, size, flags); in ext3_xattr_security_set()
55 void *value; in ext3_init_security() local
58 err = security_inode_init_security(inode, dir, &name, &value, &len); in ext3_init_security()
65 name, value, len, 0); in ext3_init_security()
67 kfree(value); in ext3_init_security()
/fs/debugfs/
Dfile.c96 struct dentry *parent, u8 *value) in debugfs_create_u8() argument
98 return debugfs_create_file(name, mode, parent, value, &fops_u8); in debugfs_create_u8()
139 struct dentry *parent, u16 *value) in debugfs_create_u16() argument
141 return debugfs_create_file(name, mode, parent, value, &fops_u16); in debugfs_create_u16()
182 struct dentry *parent, u32 *value) in debugfs_create_u32() argument
184 return debugfs_create_file(name, mode, parent, value, &fops_u32); in debugfs_create_u32()
226 struct dentry *parent, u64 *value) in debugfs_create_u64() argument
228 return debugfs_create_file(name, mode, parent, value, &fops_u64); in debugfs_create_u64()
257 struct dentry *parent, u8 *value) in debugfs_create_x8() argument
259 return debugfs_create_file(name, mode, parent, value, &fops_x8); in debugfs_create_x8()
[all …]
/fs/jffs2/
Dacl.c53 static struct posix_acl *jffs2_acl_from_medium(void *value, size_t size) in jffs2_acl_from_medium() argument
55 void *end = value + size; in jffs2_acl_from_medium()
56 struct jffs2_acl_header *header = value; in jffs2_acl_from_medium()
62 if (!value) in jffs2_acl_from_medium()
72 value += sizeof(struct jffs2_acl_header); in jffs2_acl_from_medium()
84 entry = value; in jffs2_acl_from_medium()
85 if (value + sizeof(struct jffs2_acl_entry_short) > end) in jffs2_acl_from_medium()
94 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.c44 unsigned char value; in jffs2_rtime_compress() local
46 value = data_in[pos]; in jffs2_rtime_compress()
50 backpos = positions[value]; in jffs2_rtime_compress()
51 positions[value]=pos; in jffs2_rtime_compress()
85 unsigned char value; in jffs2_rtime_decompress() local
89 value = data_in[pos++]; in jffs2_rtime_decompress()
90 cpage_out[outpos++] = value; /* first the verbatim copied byte */ in jffs2_rtime_decompress()
92 backoffs = positions[value]; in jffs2_rtime_decompress()
94 positions[value]=outpos; in jffs2_rtime_decompress()
/fs/ocfs2/
Dacl.c41 static struct posix_acl *ocfs2_acl_from_xattr(const void *value, size_t size) in ocfs2_acl_from_xattr() argument
46 if (!value) in ocfs2_acl_from_xattr()
62 (struct ocfs2_acl_entry *)value; in ocfs2_acl_from_xattr()
67 value += sizeof(struct posix_acl_entry); in ocfs2_acl_from_xattr()
103 char *value = NULL; in ocfs2_get_acl_nolock() local
123 value = kmalloc(retval, GFP_NOFS); in ocfs2_get_acl_nolock()
124 if (!value) in ocfs2_get_acl_nolock()
127 "", value, retval); in ocfs2_get_acl_nolock()
131 acl = ocfs2_acl_from_xattr(value, retval); in ocfs2_get_acl_nolock()
137 kfree(value); in ocfs2_get_acl_nolock()
[all …]
/fs/
Dxattr.c70 vfs_setxattr(struct dentry *dentry, const char *name, const void *value, in vfs_setxattr() argument
81 error = security_inode_setxattr(dentry, name, value, size, flags); in vfs_setxattr()
86 error = inode->i_op->setxattr(dentry, name, value, size, flags); in vfs_setxattr()
89 security_inode_post_setxattr(dentry, name, value, in vfs_setxattr()
95 error = security_inode_setsecurity(inode, suffix, value, in vfs_setxattr()
107 xattr_getsecurity(struct inode *inode, const char *name, void *value, in xattr_getsecurity() argument
113 if (!value || !size) { in xattr_getsecurity()
125 memcpy(value, buffer, len); in xattr_getsecurity()
134 vfs_getxattr(struct dentry *dentry, const char *name, void *value, size_t size) in vfs_getxattr() argument
150 int ret = xattr_getsecurity(inode, suffix, value, size); in vfs_getxattr()
[all …]
/fs/cifs/
Dconnect.c801 char *value; in cifs_parse_mount_options() local
852 if ((value = strchr(data, '=')) != NULL) in cifs_parse_mount_options()
853 *value++ = '\0'; in cifs_parse_mount_options()
861 if (!value) { in cifs_parse_mount_options()
865 } else if (!*value) { in cifs_parse_mount_options()
869 if (strnlen(value, 200) < 200) { in cifs_parse_mount_options()
870 vol->username = value; in cifs_parse_mount_options()
876 if (!value) { in cifs_parse_mount_options()
879 } else if (value[0] == 0) { in cifs_parse_mount_options()
884 if (value[1] != separator[0]) { in cifs_parse_mount_options()
[all …]
/fs/jfs/
Dacl.c37 char *value = NULL; in jfs_get_acl() local
58 value = kmalloc(size, GFP_KERNEL); in jfs_get_acl()
59 if (!value) in jfs_get_acl()
61 size = __jfs_getxattr(inode, ea_name, value, size); in jfs_get_acl()
71 acl = posix_acl_from_xattr(value, size); in jfs_get_acl()
75 kfree(value); in jfs_get_acl()
87 char *value = NULL; in jfs_set_acl() local
108 value = kmalloc(size, GFP_KERNEL); in jfs_set_acl()
109 if (!value) in jfs_set_acl()
111 rc = posix_acl_to_xattr(acl, value, size); in jfs_set_acl()
[all …]
Dxattr.c694 const void *value, size_t value_len) in can_set_system_xattr() argument
707 acl = posix_acl_from_xattr(value, value_len); in can_set_system_xattr()
737 acl = posix_acl_from_xattr(value, value_len); in can_set_system_xattr()
766 const void *value, size_t value_len) in can_set_xattr() argument
769 return can_set_system_xattr(inode, name, value, value_len); in can_set_xattr()
784 const void *value, size_t value_len, int flags) in __jfs_setxattr() argument
843 if (value == NULL) { in __jfs_setxattr()
848 if (value) in __jfs_setxattr()
875 if (value) { in __jfs_setxattr()
887 memcpy(&ea->name[namelen + 1], value, value_len); in __jfs_setxattr()
[all …]
/fs/ntfs/
Dbitmap.c48 const s64 count, const u8 value, const bool is_rollback) in __ntfs_bitmap_set_bits_in_run() argument
61 (unsigned long long)cnt, (unsigned int)value, in __ntfs_bitmap_set_bits_in_run()
65 BUG_ON(value > 1); in __ntfs_bitmap_set_bits_in_run()
95 if (value) in __ntfs_bitmap_set_bits_in_run()
112 memset(kaddr + pos, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
136 memset(kaddr, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run()
152 if (value) in __ntfs_bitmap_set_bits_in_run()
175 value ? 0 : 1, true); in __ntfs_bitmap_set_bits_in_run()
/fs/xfs/
Dxfs_mru_cache.c107 void *value; member
260 mru->free_func(elem->key, elem->value); in _xfs_mru_cache_clear_reap_list()
443 void *value) in xfs_mru_cache_insert() argument
462 elem->value = value; in xfs_mru_cache_insert()
487 void *value = NULL; in xfs_mru_cache_remove() local
496 value = elem->value; in xfs_mru_cache_remove()
505 return value; in xfs_mru_cache_remove()
517 void *value = xfs_mru_cache_remove(mru, key); in xfs_mru_cache_delete() local
519 if (value) in xfs_mru_cache_delete()
520 mru->free_func(key, value); in xfs_mru_cache_delete()
[all …]
/fs/ufs/
Dutil.h57 struct ufs_super_block_third *usb3, s32 value) in ufs_set_fs_state() argument
62 usb1->fs_u0.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
67 usb3->fs_un2.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
70 usb1->fs_u1.fs_sunx86.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
73 usb3->fs_un2.fs_44.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state()
146 ufs_set_de_namlen(struct super_block *sb, struct ufs_dir_entry *de, u16 value) in ufs_set_de_namlen() argument
149 de->d_u.d_namlen = cpu_to_fs16(sb, value); in ufs_set_de_namlen()
151 de->d_u.d_44.d_namlen = value; /* XXX this seems wrong */ in ufs_set_de_namlen()
206 ufs_set_inode_uid(struct super_block *sb, struct ufs_inode *inode, u32 value) in ufs_set_inode_uid() argument
210 inode->ui_u3.ui_44.ui_uid = cpu_to_fs32(sb, value); in ufs_set_inode_uid()
[all …]
/fs/befs/
Dbtree.c111 const char *findkey, befs_off_t * value);
248 const char *key, befs_off_t * value) in befs_btree_find() argument
295 res = befs_find_key(sb, this_node, key, value); in befs_btree_find()
302 *value = 0; in befs_btree_find()
306 key, *value); in befs_btree_find()
312 *value = 0; in befs_btree_find()
337 const char *findkey, befs_off_t * value) in befs_find_key() argument
348 *value = 0; in befs_find_key()
379 *value = fs64_to_cpu(sb, valarray[mid]); in befs_find_key()
388 *value = fs64_to_cpu(sb, valarray[mid + 1]); in befs_find_key()
[all …]
/fs/hfs/
Dattr.c17 const void *value, size_t size, int flags) in hfs_setxattr() argument
41 memcpy(&file->UsrWds.fdType, value, 4); in hfs_setxattr()
46 memcpy(&file->UsrWds.fdCreator, value, 4); in hfs_setxattr()
60 void *value, size_t size) in hfs_getxattr() argument
86 memcpy(value, &file->UsrWds.fdType, 4); in hfs_getxattr()
92 memcpy(value, &file->UsrWds.fdCreator, 4); in hfs_getxattr()
/fs/fuse/
Ddir.c124 req->in.args[0].value = name->name; in fuse_lookup_init()
130 req->out.args[0].value = outarg; in fuse_lookup_init()
424 req->in.args[0].value = &inarg; in fuse_create_open()
426 req->in.args[1].value = entry->d_name.name; in fuse_create_open()
432 req->out.args[0].value = &outentry; in fuse_create_open()
434 req->out.args[1].value = &outopen; in fuse_create_open()
504 req->out.args[0].value = &outarg; in create_new_entry()
566 req->in.args[0].value = &inarg; in fuse_mknod()
568 req->in.args[1].value = entry->d_name.name; in fuse_mknod()
597 req->in.args[0].value = &inarg; in fuse_mkdir()
[all …]

12345