use crate::UuidBytes;
use static_assertions::const_assert_eq;
use zerocopy::little_endian::{U32 as U32LE, U64 as U64LE};
use zerocopy_derive::*;
#[derive(Copy, Clone, Debug, Hash, IntoBytes, FromBytes, Unaligned, KnownLayout, Immutable)]
#[repr(C, packed)]
pub struct DevItem {
pub devid: U64LE,
pub total_bytes: U64LE,
pub bytes_used: U64LE,
pub io_align: U32LE,
pub io_width: U32LE,
pub sector_size: U32LE,
pub dev_type: U64LE,
pub generation: U64LE,
pub start_offset: U64LE,
pub dev_group: U32LE,
pub seek_speed: u8,
pub bandwith: u8,
pub uuid: UuidBytes,
pub fsid: UuidBytes,
}
const_assert_eq!(core::mem::size_of::<DevItem>(), 98);