use {
crate::Stripe,
byteorder::LE,
static_assertions::const_assert_eq,
zerocopy::{AsBytes, FromBytes, Unaligned, U16, U32, U64},
};
#[derive(Copy, Clone, Debug, AsBytes, FromBytes, Unaligned)]
#[repr(C, packed)]
pub struct Chunk {
pub length: U64<LE>,
pub owner: U64<LE>,
pub stripe_len: U64<LE>,
pub r#type: U64<LE>,
pub io_align: U32<LE>,
pub io_width: U32<LE>,
pub sector_size: U32<LE>,
pub num_stripes: U16<LE>,
pub sub_stripes: U16<LE>,
pub stripe: Stripe,
}
const_assert_eq!(std::mem::size_of::<Chunk>(), 80);