summaryrefslogtreecommitdiff
path: root/ayafs-core/src/block_device/disk.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ayafs-core/src/block_device/disk.rs')
-rw-r--r--ayafs-core/src/block_device/disk.rs2
1 files changed, 0 insertions, 2 deletions
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))