Reimplement fmap/funmap using improvements to kernel

This commit is contained in:
Jeremy Soller
2019-04-06 20:11:51 -06:00
parent cb2bcf9f59
commit ff17fed199
6 changed files with 200 additions and 252 deletions
+1
View File
@@ -81,6 +81,7 @@ impl<T: Disk> Disk for DiskCache<T> {
}
fn write_at(&mut self, block: u64, buffer: &[u8]) -> Result<usize> {
//TODO: Write only blocks that have changed
// println!("Cache write at {}", block);
self.inner.write_at(block, buffer)?;