⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Filesystem

Trait Filesystem 

Source
pub trait Filesystem: Send + Sync {
    // Required methods
    fn root(&self) -> Arc<dyn VfsNode>;
    fn name(&self) -> &str;
    fn is_readonly(&self) -> bool;
    fn sync(&self) -> Result<(), KernelError>;
}
Expand description

Filesystem trait

Required Methods§

Source

fn root(&self) -> Arc<dyn VfsNode>

Get the root node of the filesystem

Source

fn name(&self) -> &str

Get filesystem name

Source

fn is_readonly(&self) -> bool

Check if filesystem is read-only

Source

fn sync(&self) -> Result<(), KernelError>

Sync filesystem to disk

Implementors§