pub struct ChunkEntry {
pub devid: u64,
pub physical_start: u64,
pub logical_start: u64,
pub length: u64,
pub flags: BlockGroupFlags,
pub used: u64,
}Expand description
One physical chunk stripe as seen in the chunk tree, with usage data from the extent tree.
For striped profiles (RAID0, RAID10, …) each logical chunk maps to
multiple stripes on different devices; each stripe yields one ChunkEntry.
For non-striped profiles (single, DUP) there is one ChunkEntry per chunk.
Fields§
§devid: u64btrfs device ID that holds this stripe.
physical_start: u64Physical byte offset of this stripe on the device.
logical_start: u64Logical byte offset of the chunk within the filesystem address space.
length: u64Logical length of the chunk in bytes (shared across all stripes of the same chunk).
flags: BlockGroupFlagsCombined block-group type and profile flags.
used: u64Bytes currently used within this chunk, as reported by the extent tree.
0 if the block-group item could not be read.
Trait Implementations§
Source§impl Clone for ChunkEntry
impl Clone for ChunkEntry
Source§fn clone(&self) -> ChunkEntry
fn clone(&self) -> ChunkEntry
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 ChunkEntry
impl Debug for ChunkEntry
Source§impl PartialEq for ChunkEntry
impl PartialEq for ChunkEntry
impl Eq for ChunkEntry
impl StructuralPartialEq for ChunkEntry
Auto Trait Implementations§
impl Freeze for ChunkEntry
impl RefUnwindSafe for ChunkEntry
impl Send for ChunkEntry
impl Sync for ChunkEntry
impl Unpin for ChunkEntry
impl UnsafeUnpin for ChunkEntry
impl UnwindSafe for ChunkEntry
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