xattr.c (38fd2c202a3d82bc12430bce5789fa2c2a406f71) xattr.c (64e178a7118b1cf7648391755e44dcc209091003)
1/*
2 * linux/fs/ext4/xattr.c
3 *
4 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
5 *
6 * Fix by Harrison Xing <harrison@mountainviewdata.com>.
7 * Ext4 code with a lot of help from Eric Jarman <ejarman@acm.org>.
8 * Extended attributes for symlinks and special files added per

--- 81 unchanged lines hidden (view full) ---

90static int ext4_xattr_list(struct dentry *dentry, char *buffer,
91 size_t buffer_size);
92
93static struct mb_cache *ext4_xattr_cache;
94
95static const struct xattr_handler *ext4_xattr_handler_map[] = {
96 [EXT4_XATTR_INDEX_USER] = &ext4_xattr_user_handler,
97#ifdef CONFIG_EXT4_FS_POSIX_ACL
1/*
2 * linux/fs/ext4/xattr.c
3 *
4 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
5 *
6 * Fix by Harrison Xing <harrison@mountainviewdata.com>.
7 * Ext4 code with a lot of help from Eric Jarman <ejarman@acm.org>.
8 * Extended attributes for symlinks and special files added per

--- 81 unchanged lines hidden (view full) ---

90static int ext4_xattr_list(struct dentry *dentry, char *buffer,
91 size_t buffer_size);
92
93static struct mb_cache *ext4_xattr_cache;
94
95static const struct xattr_handler *ext4_xattr_handler_map[] = {
96 [EXT4_XATTR_INDEX_USER] = &ext4_xattr_user_handler,
97#ifdef CONFIG_EXT4_FS_POSIX_ACL
98 [EXT4_XATTR_INDEX_POSIX_ACL_ACCESS] = &ext4_xattr_acl_access_handler,
99 [EXT4_XATTR_INDEX_POSIX_ACL_DEFAULT] = &ext4_xattr_acl_default_handler,
98 [EXT4_XATTR_INDEX_POSIX_ACL_ACCESS] = &posix_acl_access_xattr_handler,
99 [EXT4_XATTR_INDEX_POSIX_ACL_DEFAULT] = &posix_acl_default_xattr_handler,
100#endif
101 [EXT4_XATTR_INDEX_TRUSTED] = &ext4_xattr_trusted_handler,
102#ifdef CONFIG_EXT4_FS_SECURITY
103 [EXT4_XATTR_INDEX_SECURITY] = &ext4_xattr_security_handler,
104#endif
105};
106
107const struct xattr_handler *ext4_xattr_handlers[] = {
108 &ext4_xattr_user_handler,
109 &ext4_xattr_trusted_handler,
110#ifdef CONFIG_EXT4_FS_POSIX_ACL
100#endif
101 [EXT4_XATTR_INDEX_TRUSTED] = &ext4_xattr_trusted_handler,
102#ifdef CONFIG_EXT4_FS_SECURITY
103 [EXT4_XATTR_INDEX_SECURITY] = &ext4_xattr_security_handler,
104#endif
105};
106
107const struct xattr_handler *ext4_xattr_handlers[] = {
108 &ext4_xattr_user_handler,
109 &ext4_xattr_trusted_handler,
110#ifdef CONFIG_EXT4_FS_POSIX_ACL
111 &ext4_xattr_acl_access_handler,
112 &ext4_xattr_acl_default_handler,
111 &posix_acl_access_xattr_handler,
112 &posix_acl_default_xattr_handler,
113#endif
114#ifdef CONFIG_EXT4_FS_SECURITY
115 &ext4_xattr_security_handler,
116#endif
117 NULL
118};
119
120static __le32 ext4_xattr_block_csum(struct inode *inode,

--- 1574 unchanged lines hidden ---
113#endif
114#ifdef CONFIG_EXT4_FS_SECURITY
115 &ext4_xattr_security_handler,
116#endif
117 NULL
118};
119
120static __le32 ext4_xattr_block_csum(struct inode *inode,

--- 1574 unchanged lines hidden ---