Go to the documentation of this file.
10 #include <linux/xattr.h>
13 #define EXT2_XATTR_MAGIC 0xEA020000
16 #define EXT2_XATTR_REFCOUNT_MAX 1024
19 #define EXT2_XATTR_INDEX_USER 1
20 #define EXT2_XATTR_INDEX_POSIX_ACL_ACCESS 2
21 #define EXT2_XATTR_INDEX_POSIX_ACL_DEFAULT 3
22 #define EXT2_XATTR_INDEX_TRUSTED 4
23 #define EXT2_XATTR_INDEX_LUSTRE 5
24 #define EXT2_XATTR_INDEX_SECURITY 6
44 #define EXT2_XATTR_PAD_BITS 2
45 #define EXT2_XATTR_PAD (1<<EXT2_XATTR_PAD_BITS)
46 #define EXT2_XATTR_ROUND (EXT2_XATTR_PAD-1)
47 #define EXT2_XATTR_LEN(name_len) \
48 (((name_len) + EXT2_XATTR_ROUND + \
49 sizeof(struct ext2_xattr_entry)) & ~EXT2_XATTR_ROUND)
50 #define EXT2_XATTR_NEXT(entry) \
51 ( (struct ext2_xattr_entry *)( \
52 (char *)(entry) + EXT2_XATTR_LEN((entry)->e_name_len)) )
53 #define EXT2_XATTR_SIZE(size) \
54 (((size) + EXT2_XATTR_ROUND) & ~EXT2_XATTR_ROUND)
56 # ifdef CONFIG_EXT2_FS_XATTR
114 #define ext2_xattr_handlers NULL
118 #ifdef CONFIG_EXT2_FS_SECURITY