pub struct DeviceAllocation {
pub devid: u64,
pub flags: BlockGroupFlags,
pub bytes: u64,
}Expand description
Physical allocation of one block-group profile on one device, as read from the chunk tree.
bytes is the sum of stripe_len over all chunk stripes that land on
devid and share the same flags. This is the physical space the device
contributes to that profile, not the logical (usable) space.
Fields§
§devid: u64btrfs device ID.
flags: BlockGroupFlagsCombined block-group type and profile flags, e.g.
BlockGroupFlags::DATA | BlockGroupFlags::RAID1.
bytes: u64Physical bytes allocated on this device for chunks with these flags.
Trait Implementations§
Source§impl Clone for DeviceAllocation
impl Clone for DeviceAllocation
Source§fn clone(&self) -> DeviceAllocation
fn clone(&self) -> DeviceAllocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceAllocation
impl Debug for DeviceAllocation
Source§impl PartialEq for DeviceAllocation
impl PartialEq for DeviceAllocation
impl Eq for DeviceAllocation
impl StructuralPartialEq for DeviceAllocation
Auto Trait Implementations§
impl Freeze for DeviceAllocation
impl RefUnwindSafe for DeviceAllocation
impl Send for DeviceAllocation
impl Sync for DeviceAllocation
impl Unpin for DeviceAllocation
impl UnsafeUnpin for DeviceAllocation
impl UnwindSafe for DeviceAllocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more