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§
Sourcefn is_readonly(&self) -> bool
fn is_readonly(&self) -> bool
Check if filesystem is read-only
Sourcefn sync(&self) -> Result<(), KernelError>
fn sync(&self) -> Result<(), KernelError>
Sync filesystem to disk