pub struct EasyFileSystem {
    pub block_device: Arc<dyn BlockDevice>,
    pub inode_bitmap: Bitmap,
    pub data_bitmap: Bitmap,
    /* private fields */
}
Expand description

An easy fs over a block device

Fields

block_device: Arc<dyn BlockDevice>inode_bitmap: Bitmapdata_bitmap: Bitmap

Implementations

Create a filesystem from a block device

Open a block device as a filesystem

Get the root inode of the filesystem

Get inode by id

Get data block by id

Allocate a new inode

Allocate a data block

Deallocate a data block

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.