pub struct FileExtentInfo {
pub total_bytes: u64,
pub shared_bytes: u64,
pub shared_extents: Vec<(u64, u64)>,
}Expand description
Summary of the physical extent usage of a single file.
Fields§
§total_bytes: u64Sum of the lengths of all non-inline, non-delalloc extents.
Bytes covered by extents flagged FIEMAP_EXTENT_SHARED.
Physical (start, end_exclusive) ranges of every shared extent.
Callers that need to compute a “set shared” total across multiple files should collect these ranges, sort, and merge overlaps.
Trait Implementations§
Source§impl Clone for FileExtentInfo
impl Clone for FileExtentInfo
Source§fn clone(&self) -> FileExtentInfo
fn clone(&self) -> FileExtentInfo
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 FileExtentInfo
impl Debug for FileExtentInfo
Source§impl Default for FileExtentInfo
impl Default for FileExtentInfo
Source§fn default() -> FileExtentInfo
fn default() -> FileExtentInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileExtentInfo
impl RefUnwindSafe for FileExtentInfo
impl Send for FileExtentInfo
impl Sync for FileExtentInfo
impl Unpin for FileExtentInfo
impl UnsafeUnpin for FileExtentInfo
impl UnwindSafe for FileExtentInfo
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