diff options
author | Chuyan Zhang <me@zcy.moe> | 2023-11-18 02:43:01 -0800 |
---|---|---|
committer | Chuyan Zhang <me@zcy.moe> | 2023-11-18 02:43:01 -0800 |
commit | 886df6daf6bb6b922276157dba1cc099e897a9ea (patch) | |
tree | 300b135bddd8ce8631dfd3ec45a9bf3d021a24df /src/block_device | |
parent | cd0163da154367f5437ae1423bc97c450d74adf7 (diff) | |
download | myfs-886df6daf6bb6b922276157dba1cc099e897a9ea.tar.gz myfs-886df6daf6bb6b922276157dba1cc099e897a9ea.zip |
Major refactor of file hierarchy
Diffstat (limited to 'src/block_device')
-rw-r--r-- | src/block_device/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/block_device/mod.rs b/src/block_device/mod.rs index 9d52e53..c7e1362 100644 --- a/src/block_device/mod.rs +++ b/src/block_device/mod.rs @@ -1,5 +1,7 @@ -pub mod memory_disk; +/// Abstracts for block devices. +/// Currently only a mock memory disk. +pub mod memory_disk; pub const BLOCK_SIZE: usize = 4096; pub trait BlockDevice { fn read(&self, block_id: usize, buffer: &mut [u8]); |