pub struct DmStackInfo {Show 14 fields
pub has_crypt: bool,
pub has_integrity: bool,
pub has_cache: bool,
pub has_thin: bool,
pub has_vdo: bool,
pub has_stratis: bool,
pub crypt_sector_size: u32,
pub integrity_tag_size: u32,
pub thin_pool_data_pct: f64,
pub thin_pool_meta_pct: f64,
pub stack_depth: u8,
pub physical_block_size: u32,
pub optimal_io_size: u32,
pub base_device: Option<String>,
}Expand description
Device-mapper stack layers detected beneath a filesystem.
Fields§
§has_crypt: booldm-crypt (LUKS) layer present
has_integrity: booldm-integrity layer present
has_cache: booldm-cache layer present
has_thin: boolLVM thin provisioning layer present
has_vdo: boolVDO (Virtual Data Optimizer) layer present
has_stratis: boolStratis storage management layer present
crypt_sector_size: u32LUKS sector size (512 for LUKS1, 4096 for LUKS2)
integrity_tag_size: u32dm-integrity tag size in bytes
thin_pool_data_pct: f64Thin pool data usage percentage
thin_pool_meta_pct: f64Thin pool metadata usage percentage
stack_depth: u8Number of device-mapper layers in the stack
physical_block_size: u32Physical block size of the base device
optimal_io_size: u32Optimal I/O size reported by the base device
base_device: Option<String>Sysfs block device name of the bottom-most device (e.g. “nvme0n1”)
Trait Implementations§
Source§impl Clone for DmStackInfo
impl Clone for DmStackInfo
Source§fn clone(&self) -> DmStackInfo
fn clone(&self) -> DmStackInfo
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 DmStackInfo
impl Debug for DmStackInfo
Auto Trait Implementations§
impl Freeze for DmStackInfo
impl RefUnwindSafe for DmStackInfo
impl Send for DmStackInfo
impl Sync for DmStackInfo
impl Unpin for DmStackInfo
impl UnsafeUnpin for DmStackInfo
impl UnwindSafe for DmStackInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.