create & open efs.
This commit is contained in:
parent
15bc00732c
commit
ed9ca7f62d
10 changed files with 420 additions and 0 deletions
6
easy-fs/src/block_dev.rs
Normal file
6
easy-fs/src/block_dev.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
use core::any::Any;
|
||||
|
||||
pub trait BlockDevice : Send + Sync + Any {
|
||||
fn read_block(&self, block_id: usize, buf: &mut [u8]);
|
||||
fn write_block(&self, block_id: usize, buf: &[u8]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue