computer: final fix for external disks crashing

This commit is contained in:
nym21
2025-07-18 16:29:53 +02:00
parent 537d98b41b
commit dd51f91cab
9 changed files with 234 additions and 156 deletions

View File

@@ -204,7 +204,7 @@ where
}
#[inline]
fn mut_holes(&mut self) -> &mut BTreeSet<usize> {
self.inner.mut_holes()
panic!("unsupported")
}
#[inline]
fn updated(&self) -> &BTreeMap<usize, T> {
@@ -212,7 +212,7 @@ where
}
#[inline]
fn mut_updated(&mut self) -> &mut BTreeMap<usize, T> {
self.inner.mut_updated()
panic!("unsupported")
}
#[inline]
@@ -220,22 +220,6 @@ where
self.inner.path()
}
fn delete(&mut self, _: I) {
panic!("unsupported")
}
fn unchecked_delete(&mut self, _: I) {
panic!("unsupported")
}
fn fill_first_hole_or_push(&mut self, _: T) -> Result<I> {
panic!("unsupported")
}
fn update(&mut self, _: I, _: T) -> Result<()> {
panic!("unsupported")
}
fn flush(&mut self) -> Result<()> {
let file_opt = self.inner.write_header_if_needed()?;