Go to the documentation of this file.
9 #include <linux/xattr.h>
12 #define EXT4_XATTR_MAGIC 0xEA020000
15 #define EXT4_XATTR_REFCOUNT_MAX 1024
18 #define EXT4_XATTR_INDEX_USER 1
19 #define EXT4_XATTR_INDEX_POSIX_ACL_ACCESS 2
20 #define EXT4_XATTR_INDEX_POSIX_ACL_DEFAULT 3
21 #define EXT4_XATTR_INDEX_TRUSTED 4
22 #define EXT4_XATTR_INDEX_LUSTRE 5
23 #define EXT4_XATTR_INDEX_SECURITY 6
49 #define EXT4_XATTR_PAD_BITS 2
50 #define EXT4_XATTR_PAD (1<<EXT4_XATTR_PAD_BITS)
51 #define EXT4_XATTR_ROUND (EXT4_XATTR_PAD-1)
52 #define EXT4_XATTR_LEN(name_len) \
53 (((name_len) + EXT4_XATTR_ROUND + \
54 sizeof(struct ext4_xattr_entry)) & ~EXT4_XATTR_ROUND)
55 #define EXT4_XATTR_NEXT(entry) \
56 ((struct ext4_xattr_entry *)( \
57 (char *)(entry) + EXT4_XATTR_LEN((entry)->e_name_len)))
58 #define EXT4_XATTR_SIZE(size) \
59 (((size) + EXT4_XATTR_ROUND) & ~EXT4_XATTR_ROUND)
61 #define IHDR(inode, raw_inode) \
62 ((struct ext4_xattr_ibody_header *) \
63 ((void *)raw_inode + \
64 EXT4_GOOD_OLD_INODE_SIZE + \
65 EXT4_I(inode)->i_extra_isize))
66 #define IFIRST(hdr) ((struct ext4_xattr_entry *)((hdr)+1))
68 # ifdef CONFIG_EXT4_FS_XATTR
144 #define ext4_xattr_handlers NULL
148 #ifdef CONFIG_EXT4_FS_SECURITY
150 struct inode *dir,
const struct qstr *
qstr);
153 struct inode *dir,
const struct qstr *
qstr)