pub struct FsCapabilities {Show 13 fields
pub read_only: bool,
pub case_sensitive: bool,
pub case_preserving: bool,
pub max_filename_len: usize,
pub max_path_len: usize,
pub supports_symlinks: bool,
pub supports_hardlinks: bool,
pub supports_sparse_files: bool,
pub max_file_size: u64,
pub supports_xattr: bool,
pub supports_acl: bool,
pub supports_nanoseconds: bool,
pub supports_crtime: bool,
}Expand description
Filesystem capabilities.
These flags describe what features a filesystem supports. The VFS layer uses this information to:
- Reject unsupported operations early
- Adapt behavior (e.g., case sensitivity)
- Provide accurate information to applications
Fields§
§read_only: boolFilesystem is read-only (no write operations allowed)
case_sensitive: boolFilesystem is case-sensitive (Linux default)
case_preserving: boolFilesystem preserves case even if not case-sensitive
max_filename_len: usizeMaximum filename length in bytes
max_path_len: usizeMaximum full path length in bytes
supports_symlinks: boolSupports symbolic links
supports_hardlinks: boolSupports hard links
supports_sparse_files: boolSupports sparse files (holes in files)
max_file_size: u64Maximum file size in bytes
supports_xattr: boolSupports extended attributes (xattr)
supports_acl: boolSupports POSIX ACLs
supports_nanoseconds: boolSupports sub-second timestamp precision
supports_crtime: boolSupports creation/birth time (crtime)
Implementations§
Source§impl FsCapabilities
impl FsCapabilities
Sourcepub const fn read_only_linux() -> Self
pub const fn read_only_linux() -> Self
Create capabilities for a typical read-only Linux filesystem.
Sourcepub const fn writable_linux() -> Self
pub const fn writable_linux() -> Self
Create capabilities for a writable Linux filesystem.
Trait Implementations§
Source§impl Clone for FsCapabilities
impl Clone for FsCapabilities
Source§fn clone(&self) -> FsCapabilities
fn clone(&self) -> FsCapabilities
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 FsCapabilities
impl Debug for FsCapabilities
Auto Trait Implementations§
impl Freeze for FsCapabilities
impl RefUnwindSafe for FsCapabilities
impl Send for FsCapabilities
impl Sync for FsCapabilities
impl Unpin for FsCapabilities
impl UnsafeUnpin for FsCapabilities
impl UnwindSafe for FsCapabilities
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