Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 41) sorted by relevance

12

/fs/
Dxattr.c686 #define for_each_xattr_handler(handlers, handler) \ argument
687 for ((handler) = *(handlers)++; \
688 (handler) != NULL; \
689 (handler) = *(handlers)++)
697 const struct xattr_handler *handler; in xattr_resolve_name() local
702 for_each_xattr_handler(handlers, handler) { in xattr_resolve_name()
703 const char *n = strcmp_prefix(*name, handler->prefix); in xattr_resolve_name()
709 return handler; in xattr_resolve_name()
718 const struct xattr_handler *handler; in generic_getxattr() local
720 handler = xattr_resolve_name(dentry->d_sb->s_xattr, &name); in generic_getxattr()
[all …]
Dposix_acl.c799 posix_acl_xattr_get(const struct xattr_handler *handler, in posix_acl_xattr_get() argument
813 acl = get_acl(d_backing_inode(dentry), handler->flags); in posix_acl_xattr_get()
848 posix_acl_xattr_set(const struct xattr_handler *handler, in posix_acl_xattr_set() argument
864 ret = set_posix_acl(inode, handler->flags, acl); in posix_acl_xattr_set()
870 posix_acl_xattr_list(const struct xattr_handler *handler, in posix_acl_xattr_list() argument
874 const char *xname = handler->prefix; in posix_acl_xattr_list()
/fs/btrfs/
Dprops.c107 const struct prop_handler *handler; in __btrfs_set_prop() local
113 handler = find_prop_handler(name, NULL); in __btrfs_set_prop()
114 if (!handler) in __btrfs_set_prop()
118 ret = __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
123 ret = handler->apply(inode, NULL, 0); in __btrfs_set_prop()
129 ret = handler->validate(value, value_len); in __btrfs_set_prop()
132 ret = __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
136 ret = handler->apply(inode, value, value_len); in __btrfs_set_prop()
138 __btrfs_setxattr(trans, inode, handler->xattr_name, in __btrfs_set_prop()
210 const struct prop_handler *handler; in iterate_object_props() local
[all …]
/fs/squashfs/
Dxattr.c60 const struct xattr_handler *handler; in squashfs_listxattr() local
69 handler = squashfs_xattr_handler(le16_to_cpu(entry.type)); in squashfs_listxattr()
70 if (handler) in squashfs_listxattr()
71 prefix_size = handler->list(handler, d, buffer, rest, in squashfs_listxattr()
215 static size_t squashfs_xattr_handler_list(const struct xattr_handler *handler, in squashfs_xattr_handler_list() argument
220 int len = strlen(handler->prefix); in squashfs_xattr_handler_list()
223 memcpy(list, handler->prefix, len); in squashfs_xattr_handler_list()
227 static int squashfs_xattr_handler_get(const struct xattr_handler *handler, in squashfs_xattr_handler_get() argument
234 return squashfs_xattr_get(d_inode(d), handler->flags, name, in squashfs_xattr_handler_get()
251 static size_t squashfs_trusted_xattr_handler_list(const struct xattr_handler *handler, in squashfs_trusted_xattr_handler_list() argument
[all …]
/fs/f2fs/
Dxattr.c28 static size_t f2fs_xattr_generic_list(const struct xattr_handler *handler, in f2fs_xattr_generic_list() argument
35 switch (handler->flags) { in f2fs_xattr_generic_list()
50 prefix_len = strlen(handler->prefix); in f2fs_xattr_generic_list()
53 memcpy(list, handler->prefix, prefix_len); in f2fs_xattr_generic_list()
60 static int f2fs_xattr_generic_get(const struct xattr_handler *handler, in f2fs_xattr_generic_get() argument
66 switch (handler->flags) { in f2fs_xattr_generic_get()
82 return f2fs_getxattr(d_inode(dentry), handler->flags, name, in f2fs_xattr_generic_get()
86 static int f2fs_xattr_generic_set(const struct xattr_handler *handler, in f2fs_xattr_generic_set() argument
92 switch (handler->flags) { in f2fs_xattr_generic_set()
109 return f2fs_setxattr(d_inode(dentry), handler->flags, name, in f2fs_xattr_generic_set()
[all …]
/fs/reiserfs/
Dxattr_user.c10 user_get(const struct xattr_handler *handler, struct dentry *dentry, in user_get() argument
16 xattr_full_name(handler, name), in user_get()
21 user_set(const struct xattr_handler *handler, struct dentry *dentry, in user_set() argument
27 xattr_full_name(handler, name), in user_set()
31 static size_t user_list(const struct xattr_handler *handler, in user_list() argument
Dxattr_trusted.c11 trusted_get(const struct xattr_handler *handler, struct dentry *dentry, in trusted_get() argument
18 xattr_full_name(handler, name), in trusted_get()
23 trusted_set(const struct xattr_handler *handler, struct dentry *dentry, in trusted_set() argument
30 xattr_full_name(handler, name), in trusted_set()
34 static size_t trusted_list(const struct xattr_handler *handler, in trusted_list() argument
Dxattr_security.c12 security_get(const struct xattr_handler *handler, struct dentry *dentry, in security_get() argument
19 xattr_full_name(handler, name), in security_get()
24 security_set(const struct xattr_handler *handler, struct dentry *dentry, in security_set() argument
31 xattr_full_name(handler, name), in security_set()
35 static size_t security_list(const struct xattr_handler *handler, in security_list() argument
Dxattr.c757 #define for_each_xattr_handler(handlers, handler) \ argument
758 for ((handler) = *(handlers)++; \
759 (handler) != NULL; \
760 (handler) = *(handlers)++)
798 const struct xattr_handler *handler; in listxattr_filler() local
800 handler = find_xattr_handler_prefix(b->dentry->d_sb->s_xattr, in listxattr_filler()
802 if (!handler) /* Unsupported xattr name */ in listxattr_filler()
805 size = handler->list(handler, b->dentry, in listxattr_filler()
813 size = handler->list(handler, b->dentry, in listxattr_filler()
/fs/9p/
Dacl.c215 static int v9fs_xattr_get_acl(const struct xattr_handler *handler, in v9fs_xattr_get_acl() argument
231 return v9fs_xattr_get(dentry, handler->prefix, buffer, size); in v9fs_xattr_get_acl()
233 acl = v9fs_get_cached_acl(d_inode(dentry), handler->flags); in v9fs_xattr_get_acl()
244 static int v9fs_xattr_set_acl(const struct xattr_handler *handler, in v9fs_xattr_set_acl() argument
262 return v9fs_xattr_set(dentry, handler->prefix, value, size, in v9fs_xattr_set_acl()
282 switch (handler->flags) { in v9fs_xattr_set_acl()
318 retval = v9fs_xattr_set(dentry, handler->prefix, value, size, flags); in v9fs_xattr_set_acl()
320 set_cached_acl(inode, handler->flags, acl); in v9fs_xattr_set_acl()
Dxattr.c142 static int v9fs_xattr_handler_get(const struct xattr_handler *handler, in v9fs_xattr_handler_get() argument
146 const char *full_name = xattr_full_name(handler, name); in v9fs_xattr_handler_get()
153 static int v9fs_xattr_handler_set(const struct xattr_handler *handler, in v9fs_xattr_handler_set() argument
157 const char *full_name = xattr_full_name(handler, name); in v9fs_xattr_handler_set()
/fs/jffs2/
Dxattr_trusted.c19 static int jffs2_trusted_getxattr(const struct xattr_handler *handler, in jffs2_trusted_getxattr() argument
29 static int jffs2_trusted_setxattr(const struct xattr_handler *handler, in jffs2_trusted_setxattr() argument
39 static size_t jffs2_trusted_listxattr(const struct xattr_handler *handler, in jffs2_trusted_listxattr() argument
Dxattr_user.c19 static int jffs2_user_getxattr(const struct xattr_handler *handler, in jffs2_user_getxattr() argument
29 static int jffs2_user_setxattr(const struct xattr_handler *handler, in jffs2_user_setxattr() argument
39 static size_t jffs2_user_listxattr(const struct xattr_handler *handler, in jffs2_user_listxattr() argument
Dsecurity.c51 static int jffs2_security_getxattr(const struct xattr_handler *handler, in jffs2_security_getxattr() argument
62 static int jffs2_security_setxattr(const struct xattr_handler *handler, in jffs2_security_setxattr() argument
73 static size_t jffs2_security_listxattr(const struct xattr_handler *handler, in jffs2_security_listxattr() argument
/fs/ext4/
Dxattr_trusted.c16 ext4_xattr_trusted_list(const struct xattr_handler *handler, in ext4_xattr_trusted_list() argument
35 ext4_xattr_trusted_get(const struct xattr_handler *handler, in ext4_xattr_trusted_get() argument
46 ext4_xattr_trusted_set(const struct xattr_handler *handler, in ext4_xattr_trusted_set() argument
Dxattr_user.c15 ext4_xattr_user_list(const struct xattr_handler *handler, in ext4_xattr_user_list() argument
34 ext4_xattr_user_get(const struct xattr_handler *handler, in ext4_xattr_user_get() argument
47 ext4_xattr_user_set(const struct xattr_handler *handler, in ext4_xattr_user_set() argument
Dxattr_security.c15 ext4_xattr_security_list(const struct xattr_handler *handler, in ext4_xattr_security_list() argument
32 ext4_xattr_security_get(const struct xattr_handler *handler, in ext4_xattr_security_get() argument
43 ext4_xattr_security_set(const struct xattr_handler *handler, in ext4_xattr_security_set() argument
/fs/ext2/
Dxattr_trusted.c12 ext2_xattr_trusted_list(const struct xattr_handler *handler, in ext2_xattr_trusted_list() argument
31 ext2_xattr_trusted_get(const struct xattr_handler *handler, in ext2_xattr_trusted_get() argument
42 ext2_xattr_trusted_set(const struct xattr_handler *handler, in ext2_xattr_trusted_set() argument
Dxattr_user.c14 ext2_xattr_user_list(const struct xattr_handler *handler, in ext2_xattr_user_list() argument
33 ext2_xattr_user_get(const struct xattr_handler *handler, in ext2_xattr_user_get() argument
46 ext2_xattr_user_set(const struct xattr_handler *handler, in ext2_xattr_user_set() argument
Dxattr_security.c11 ext2_xattr_security_list(const struct xattr_handler *handler, in ext2_xattr_security_list() argument
27 ext2_xattr_security_get(const struct xattr_handler *handler, in ext2_xattr_security_get() argument
38 ext2_xattr_security_set(const struct xattr_handler *handler, in ext2_xattr_security_set() argument
Dxattr.c129 const struct xattr_handler *handler = NULL; in ext2_xattr_handler() local
132 handler = ext2_xattr_handler_map[name_index]; in ext2_xattr_handler()
133 return handler; in ext2_xattr_handler()
292 const struct xattr_handler *handler = in ext2_xattr_list() local
295 if (handler) { in ext2_xattr_list()
296 size_t size = handler->list(handler, dentry, buffer, in ext2_xattr_list()
/fs/xfs/
Dxfs_xattr.c35 xfs_xattr_get(const struct xattr_handler *handler, struct dentry *dentry, in xfs_xattr_get() argument
38 int xflags = handler->flags; in xfs_xattr_get()
80 xfs_xattr_set(const struct xattr_handler *handler, struct dentry *dentry, in xfs_xattr_set() argument
83 int xflags = handler->flags; in xfs_xattr_set()
/fs/hfsplus/
Dxattr_user.c14 static int hfsplus_user_getxattr(const struct xattr_handler *handler, in hfsplus_user_getxattr() argument
23 static int hfsplus_user_setxattr(const struct xattr_handler *handler, in hfsplus_user_setxattr() argument
Dxattr_trusted.c14 static int hfsplus_trusted_getxattr(const struct xattr_handler *handler, in hfsplus_trusted_getxattr() argument
23 static int hfsplus_trusted_setxattr(const struct xattr_handler *handler, in hfsplus_trusted_setxattr() argument
Dxattr_security.c16 static int hfsplus_security_getxattr(const struct xattr_handler *handler, in hfsplus_security_getxattr() argument
25 static int hfsplus_security_setxattr(const struct xattr_handler *handler, in hfsplus_security_setxattr() argument

12