pub struct Capabilities {Show 15 fields
pub atomic_writes: AtomicBool,
pub atomic_min_bytes: AtomicU32,
pub atomic_max_bytes: AtomicU32,
pub uncached_io: AtomicBool,
pub exchange_range: AtomicBool,
pub reflink: AtomicBool,
pub seek_hole: AtomicBool,
pub btrfs_subvol: AtomicBool,
pub btrfs_quotas: AtomicBool,
pub f2fs_atomic_legacy: AtomicBool,
pub is_nfs: AtomicBool,
pub dio_mem_align: AtomicU32,
pub dio_offset_align: AtomicU32,
pub dm_stack: Option<DmStackInfo>,
pub container: Option<ContainerInfo>,
}Expand description
Filesystem and hardware capabilities detected by probe_capabilities
Fields§
§atomic_writes: AtomicBoolHardware supports RWF_ATOMIC writes
atomic_min_bytes: AtomicU32Minimum atomic write unit in bytes
atomic_max_bytes: AtomicU32Maximum atomic write unit in bytes
uncached_io: AtomicBoolKernel supports RWF_UNCACHED (bypass page cache)
exchange_range: AtomicBoolFilesystem supports RENAME_EXCHANGE or atomic exchange ioctl
reflink: AtomicBoolFilesystem supports FICLONE (CoW reflink)
seek_hole: AtomicBoolFilesystem supports SEEK_HOLE/SEEK_DATA for sparse file mapping
btrfs_subvol: AtomicBoolBtrfs subvolume operations available
btrfs_quotas: AtomicBoolBtrfs qgroups (quota groups) detected
f2fs_atomic_legacy: AtomicBoolF2FS legacy atomic write ioctl available
is_nfs: AtomicBoolFilesystem is NFS (magic 0x6969)
dio_mem_align: AtomicU32STATX_DIOALIGN: memory alignment required for O_DIRECT
dio_offset_align: AtomicU32STATX_DIOALIGN: file offset alignment required for O_DIRECT
dm_stack: Option<DmStackInfo>Device-mapper stack layers beneath this filesystem
container: Option<ContainerInfo>Container runtime environment, if any
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnsafeUnpin for Capabilities
impl UnwindSafe for Capabilities
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
§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.