Large/small file I/O test passed.

This commit is contained in:
Yifan Wu 2020-12-19 19:14:31 +08:00
parent 8713046a4a
commit 5787214ef6
6 changed files with 67 additions and 16 deletions

View file

@ -145,7 +145,7 @@ impl EasyFileSystem {
self.data_bitmap.alloc(&self.block_device).unwrap() as u32 + self.data_area_start_block
}
fn dealloc_data(&mut self, block_id: u32) {
pub fn dealloc_data(&mut self, block_id: u32) {
self.data_bitmap.dealloc(
&self.block_device,
(block_id - self.data_area_start_block) as usize