Linux 6.13-rc4
[linux.git] / fs / bcachefs / disk_groups_format.h
blob698990bbf1d20671cb25905efb76309b30f3747b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_DISK_GROUPS_FORMAT_H
3 #define _BCACHEFS_DISK_GROUPS_FORMAT_H
5 #define BCH_SB_LABEL_SIZE 32
7 struct bch_disk_group {
8 __u8 label[BCH_SB_LABEL_SIZE];
9 __le64 flags[2];
10 } __packed __aligned(8);
12 LE64_BITMASK(BCH_GROUP_DELETED, struct bch_disk_group, flags[0], 0, 1)
13 LE64_BITMASK(BCH_GROUP_DATA_ALLOWED, struct bch_disk_group, flags[0], 1, 6)
14 LE64_BITMASK(BCH_GROUP_PARENT, struct bch_disk_group, flags[0], 6, 24)
16 struct bch_sb_field_disk_groups {
17 struct bch_sb_field field;
18 struct bch_disk_group entries[];
19 } __packed __aligned(8);
21 #endif /* _BCACHEFS_DISK_GROUPS_FORMAT_H */