brintos

brintos / linux-shallow public Read only

0
0
Text · 565 B · 64ef52e Raw
27 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2#ifndef _BCACHEFS_EC_FORMAT_H3#define _BCACHEFS_EC_FORMAT_H4 5struct 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_v217	 *18	 * we can manage with this because this only needs to point to a19	 * 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