pub struct FastFileSystem(pub Arc<FastFileSystemInner>);Expand description
A reference-counted wrapper around FastFileSystemInner.
This structure provides access to a Fast File System instance
while ensuring safe concurrent access through an [Arc].
Tuple Fields§
§0: Arc<FastFileSystemInner>Implementations§
Source§impl FastFileSystem
impl FastFileSystem
Sourcepub const ROOT_INODE_NUMBER: InodeNumber
pub const ROOT_INODE_NUMBER: InodeNumber
The inode number of the root directory (/).
Sourcepub fn from_disk(
disk: Disk,
debug_journal: bool,
disable_journal: bool,
) -> Result<Self, KernelError>
pub fn from_disk( disk: Disk, debug_journal: bool, disable_journal: bool, ) -> Result<Self, KernelError>
Loads a Fast File System from a given disk.
This function attempts to read the superblock from the disk.
If the disk contains a valid FFS superblock, it returns an
initialized FastFileSystem instance; otherwise, it returns None.
§Parameters
disk: The disk device containing the filesystem.
§Returns
Some(Self): If the filesystem is successfully loaded.None: If the disk does not contain a valid Fast File System.
Sourcepub fn get_inode(&self, ino: InodeNumber) -> Result<TrackedInode, KernelError>
pub fn get_inode(&self, ino: InodeNumber) -> Result<TrackedInode, KernelError>
Retrieves an in-memory representation of the inode identified by ino.
This function looks up the inode in the Fast File System and returns a
TrackedInode.
Trait Implementations§
Source§impl Clone for FastFileSystem
impl Clone for FastFileSystem
Source§fn clone(&self) -> FastFileSystem
fn clone(&self) -> FastFileSystem
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FileSystem for FastFileSystem
impl FileSystem for FastFileSystem
Auto Trait Implementations§
impl Freeze for FastFileSystem
impl !RefUnwindSafe for FastFileSystem
impl Send for FastFileSystem
impl Sync for FastFileSystem
impl Unpin for FastFileSystem
impl !UnwindSafe for FastFileSystem
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)