Substituted to the original ch7 code.
This commit is contained in:
parent
4fdd55e2e8
commit
57f7debbc6
50 changed files with 2786 additions and 128 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