xattr.c (bf61c8840efe60fd8f91446860b63338fb424158) | xattr.c (64e178a7118b1cf7648391755e44dcc209091003) |
---|---|
1/* 2 * linux/fs/ext2/xattr.c 3 * 4 * Copyright (C) 2001-2003 Andreas Gruenbacher <agruen@suse.de> 5 * 6 * Fix by Harrison Xing <harrison@mountainviewdata.com>. 7 * Extended attributes for symlinks and special files added per 8 * suggestion of Luka Renko <luka.renko@hermes.si>. --- 89 unchanged lines hidden (view full) --- 98static void ext2_xattr_rehash(struct ext2_xattr_header *, 99 struct ext2_xattr_entry *); 100 101static struct mb_cache *ext2_xattr_cache; 102 103static const struct xattr_handler *ext2_xattr_handler_map[] = { 104 [EXT2_XATTR_INDEX_USER] = &ext2_xattr_user_handler, 105#ifdef CONFIG_EXT2_FS_POSIX_ACL | 1/* 2 * linux/fs/ext2/xattr.c 3 * 4 * Copyright (C) 2001-2003 Andreas Gruenbacher <agruen@suse.de> 5 * 6 * Fix by Harrison Xing <harrison@mountainviewdata.com>. 7 * Extended attributes for symlinks and special files added per 8 * suggestion of Luka Renko <luka.renko@hermes.si>. --- 89 unchanged lines hidden (view full) --- 98static void ext2_xattr_rehash(struct ext2_xattr_header *, 99 struct ext2_xattr_entry *); 100 101static struct mb_cache *ext2_xattr_cache; 102 103static const struct xattr_handler *ext2_xattr_handler_map[] = { 104 [EXT2_XATTR_INDEX_USER] = &ext2_xattr_user_handler, 105#ifdef CONFIG_EXT2_FS_POSIX_ACL |
106 [EXT2_XATTR_INDEX_POSIX_ACL_ACCESS] = &ext2_xattr_acl_access_handler, 107 [EXT2_XATTR_INDEX_POSIX_ACL_DEFAULT] = &ext2_xattr_acl_default_handler, | 106 [EXT2_XATTR_INDEX_POSIX_ACL_ACCESS] = &posix_acl_access_xattr_handler, 107 [EXT2_XATTR_INDEX_POSIX_ACL_DEFAULT] = &posix_acl_default_xattr_handler, |
108#endif 109 [EXT2_XATTR_INDEX_TRUSTED] = &ext2_xattr_trusted_handler, 110#ifdef CONFIG_EXT2_FS_SECURITY 111 [EXT2_XATTR_INDEX_SECURITY] = &ext2_xattr_security_handler, 112#endif 113}; 114 115const struct xattr_handler *ext2_xattr_handlers[] = { 116 &ext2_xattr_user_handler, 117 &ext2_xattr_trusted_handler, 118#ifdef CONFIG_EXT2_FS_POSIX_ACL | 108#endif 109 [EXT2_XATTR_INDEX_TRUSTED] = &ext2_xattr_trusted_handler, 110#ifdef CONFIG_EXT2_FS_SECURITY 111 [EXT2_XATTR_INDEX_SECURITY] = &ext2_xattr_security_handler, 112#endif 113}; 114 115const struct xattr_handler *ext2_xattr_handlers[] = { 116 &ext2_xattr_user_handler, 117 &ext2_xattr_trusted_handler, 118#ifdef CONFIG_EXT2_FS_POSIX_ACL |
119 &ext2_xattr_acl_access_handler, 120 &ext2_xattr_acl_default_handler, | 119 &posix_acl_access_xattr_handler, 120 &posix_acl_default_xattr_handler, |
121#endif 122#ifdef CONFIG_EXT2_FS_SECURITY 123 &ext2_xattr_security_handler, 124#endif 125 NULL 126}; 127 128static inline const struct xattr_handler * --- 901 unchanged lines hidden --- | 121#endif 122#ifdef CONFIG_EXT2_FS_SECURITY 123 &ext2_xattr_security_handler, 124#endif 125 NULL 126}; 127 128static inline const struct xattr_handler * --- 901 unchanged lines hidden --- |