pub struct DeviceExtent {
pub chunk_tree: u64,
pub chunk_objectid: u64,
pub chunk_offset: u64,
pub length: u64,
pub chunk_tree_uuid: Uuid,
}Expand description
Device extent, mapping a physical range on a device to a chunk.
Key: (devid, DEV_EXTENT, physical_offset). The inverse of a chunk
stripe: given a device and physical offset, find the owning chunk.
Fields§
§chunk_tree: u64Objectid of the chunk tree (always 3).
chunk_objectid: u64Objectid of the owning chunk.
chunk_offset: u64Logical offset of the owning chunk.
length: u64Length of this device extent in bytes.
chunk_tree_uuid: UuidUUID of the chunk tree.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceExtent
impl Clone for DeviceExtent
Source§fn clone(&self) -> DeviceExtent
fn clone(&self) -> DeviceExtent
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 moreAuto Trait Implementations§
impl Freeze for DeviceExtent
impl RefUnwindSafe for DeviceExtent
impl Send for DeviceExtent
impl Sync for DeviceExtent
impl Unpin for DeviceExtent
impl UnsafeUnpin for DeviceExtent
impl UnwindSafe for DeviceExtent
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