From f5c92834f79dfdf8007daa019f401c5e51a7596f Mon Sep 17 00:00:00 2001 From: Chuyan Zhang Date: Sat, 2 Dec 2023 17:37:57 -0800 Subject: Fix read/write permissions --- ayafs-core/src/block_device/disk.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ayafs-core/src/block_device') 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); } } -- cgit v1.2.3-70-g09d2