create & open efs.

This commit is contained in:
Yifan Wu 2020-12-18 15:56:11 +08:00
parent 15bc00732c
commit ed9ca7f62d
10 changed files with 420 additions and 0 deletions

6
easy-fs/src/block_dev.rs Normal file
View 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]);
}