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 15 /* 16 * XXX: targets should be 16 bits - fix this if we ever do a stripe_v2 17 * 18 * we can manage with this because this only needs to point to a 19 * disk label, not a target: 20 */ 21 __u8 disk_label; 22 23 struct bch_extent_ptr ptrs[]; 24 } __packed __aligned(8); 25 26 #endif /* _BCACHEFS_EC_FORMAT_H */ 27