xref: /linux/fs/bcachefs/xattr_format.h (revision 906fd46a65383cd639e5eec72a047efc33045d86)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_XATTR_FORMAT_H
3 #define _BCACHEFS_XATTR_FORMAT_H
4 
5 #define KEY_TYPE_XATTR_INDEX_USER		0
6 #define KEY_TYPE_XATTR_INDEX_POSIX_ACL_ACCESS	1
7 #define KEY_TYPE_XATTR_INDEX_POSIX_ACL_DEFAULT	2
8 #define KEY_TYPE_XATTR_INDEX_TRUSTED		3
9 #define KEY_TYPE_XATTR_INDEX_SECURITY	        4
10 
11 struct bch_xattr {
12 	struct bch_val		v;
13 	__u8			x_type;
14 	__u8			x_name_len;
15 	__le16			x_val_len;
16 	__u8			x_name[];
17 } __packed __aligned(8);
18 
19 #endif /* _BCACHEFS_XATTR_FORMAT_H */
20