Linux 6.13-rc4
[linux.git] / fs / bcachefs / xattr_format.h
blobc7916011ef34d3b51c3925a5f6524e4f28f2638f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_XATTR_FORMAT_H
3 #define _BCACHEFS_XATTR_FORMAT_H
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
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[] __counted_by(x_name_len);
17 } __packed __aligned(8);
19 #endif /* _BCACHEFS_XATTR_FORMAT_H */