xref: /linux/fs/bcachefs/ec_format.h (revision f728c17fc97aea7a33151d9ba64106291c62bb02)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _BCACHEFS_EC_FORMAT_H
3 #define _BCACHEFS_EC_FORMAT_H
4 
5 struct bch_stripe {
6 	struct bch_val		v;
7 	__le16			sectors;
8 	__u8			algorithm;
9 	__u8			nr_blocks;
10 	__u8			nr_redundant;
11 
12 	__u8			csum_granularity_bits;
13 	__u8			csum_type;
14 	__u8			pad;
15 
16 	struct bch_extent_ptr	ptrs[];
17 } __packed __aligned(8);
18 
19 #endif /* _BCACHEFS_EC_FORMAT_H */
20