]> git.sesse.net Git - bcachefs-tools-debian/blob - libbcachefs/extents_types.h
Update bcachefs sources to edf5f38218 bcachefs: Refactor superblock code
[bcachefs-tools-debian] / libbcachefs / extents_types.h
1 #ifndef _BCACHEFS_EXTENTS_TYPES_H
2 #define _BCACHEFS_EXTENTS_TYPES_H
3
4 #include "bcachefs_format.h"
5
6 struct bch_extent_crc_unpacked {
7         u8                      csum_type;
8         u8                      compression_type;
9
10         u16                     compressed_size;
11         u16                     uncompressed_size;
12
13         u16                     offset;
14         u16                     live_size;
15
16         u16                     nonce;
17
18         struct bch_csum         csum;
19 };
20
21 struct extent_pick_ptr {
22         struct bch_extent_ptr           ptr;
23         struct bch_extent_crc_unpacked  crc;
24         struct bch_dev                  *ca;
25 };
26
27 #endif /* _BCACHEFS_EXTENTS_TYPES_H */