From 07c1de41d975459397945f2e6b2b7f5630912175 Mon Sep 17 00:00:00 2001 From: Chuyan Zhang Date: Sun, 3 Dec 2023 00:58:03 -0800 Subject: remove some assertions... --- ayafs-core/src/block_device/disk.rs | 2 -- 1 file changed, 2 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 cc9552c..745a0b2 100644 --- a/ayafs-core/src/block_device/disk.rs +++ b/ayafs-core/src/block_device/disk.rs @@ -27,7 +27,6 @@ impl Disk { impl BlockDevice for Disk { fn read(&self, block_id: usize, buffer: &mut [u8]) { - assert_eq!(buffer.len(), BLOCK_SIZE); let mut device = self.device.borrow_mut(); device .seek(SeekFrom::Start((block_id * BLOCK_SIZE) as u64)) @@ -39,7 +38,6 @@ impl BlockDevice for Disk { } fn write(&self, block_id: usize, buffer: &[u8]) { - assert_eq!(buffer.len(), BLOCK_SIZE); let mut device = self.device.borrow_mut(); device .seek(SeekFrom::Start((block_id * BLOCK_SIZE) as u64)) -- cgit v1.2.3-70-g09d2