diff options
author | Chuyan Zhang <me@zcy.moe> | 2023-12-02 17:37:57 -0800 |
---|---|---|
committer | Chuyan Zhang <me@zcy.moe> | 2023-12-02 17:37:57 -0800 |
commit | f5c92834f79dfdf8007daa019f401c5e51a7596f (patch) | |
tree | 19a069a86d9131fef9c271543743e50f6ae3c2eb /ayafs-core/src/block_device | |
parent | 5ad6da0370cd33230922394817cdb4d0b1e19c93 (diff) | |
download | myfs-f5c92834f79dfdf8007daa019f401c5e51a7596f.tar.gz myfs-f5c92834f79dfdf8007daa019f401c5e51a7596f.zip |
Fix read/write permissions
Diffstat (limited to 'ayafs-core/src/block_device')
-rw-r--r-- | ayafs-core/src/block_device/disk.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ayafs-core/src/block_device/disk.rs b/ayafs-core/src/block_device/disk.rs index 9e9b6bc..cc9552c 100644 --- a/ayafs-core/src/block_device/disk.rs +++ b/ayafs-core/src/block_device/disk.rs @@ -3,7 +3,7 @@ use std::cell::RefCell; use std::fs::File; use std::io::{Read, Seek, SeekFrom, Write}; use std::path::PathBuf; -use log::debug; +use log::trace; pub struct Disk { #[allow(unused)] @@ -35,7 +35,7 @@ impl BlockDevice for Disk { device .read_exact(buffer) .expect("Failed to read 4096 bytes!"); - debug!("disk::read block {}", block_id); + trace!("disk::read block {}", block_id); } fn write(&self, block_id: usize, buffer: &[u8]) { @@ -47,6 +47,6 @@ impl BlockDevice for Disk { device .write_all(buffer) .expect("Unable to write 4096 bytes!"); - debug!("disk::write block {}", block_id); + trace!("disk::write block {}", block_id); } } |