FatFuse: moved drop -> destroy
This commit is contained in:
parent
19340bd4ee
commit
e1d458a384
3 changed files with 12 additions and 18 deletions
|
|
@ -20,7 +20,18 @@ impl Filesystem for FatFuse {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn destroy(&mut self) {}
|
fn destroy(&mut self) {
|
||||||
|
debug!("inode_table: {}", self.inode_table.len());
|
||||||
|
|
||||||
|
debug!("ino_by_first_cluster: {}", self.ino_by_first_cluster.len());
|
||||||
|
for (&first_cluster, &ino) in self.ino_by_first_cluster.iter() {
|
||||||
|
debug!("{} -> {}", first_cluster, ino);
|
||||||
|
}
|
||||||
|
|
||||||
|
debug!("ino_by_fh: {}", self.ino_by_fh.len());
|
||||||
|
|
||||||
|
debug!("ino_by_path: {}", self.ino_by_path.len());
|
||||||
|
}
|
||||||
|
|
||||||
fn lookup(
|
fn lookup(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|
|
||||||
|
|
@ -28,21 +28,6 @@ pub struct FatFuse {
|
||||||
ino_by_path: FxHashMap<Rc<str>, u64>,
|
ino_by_path: FxHashMap<Rc<str>, u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop for FatFuse {
|
|
||||||
fn drop(&mut self) {
|
|
||||||
println!("inode_table: {}", self.inode_table.len());
|
|
||||||
|
|
||||||
println!("ino_by_first_cluster: {}", self.ino_by_first_cluster.len());
|
|
||||||
for (&first_cluster, &ino) in self.ino_by_first_cluster.iter() {
|
|
||||||
println!("{} -> {}", first_cluster, ino);
|
|
||||||
}
|
|
||||||
|
|
||||||
println!("ino_by_fh: {}", self.ino_by_fh.len());
|
|
||||||
|
|
||||||
println!("ino_by_path: {}", self.ino_by_path.len());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// SAFETY
|
/// SAFETY
|
||||||
///
|
///
|
||||||
/// do NOT leak Rc<str> from this type
|
/// do NOT leak Rc<str> from this type
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,5 @@ fn main() -> anyhow::Result<()> {
|
||||||
|
|
||||||
rx.recv().unwrap();
|
rx.recv().unwrap();
|
||||||
|
|
||||||
println!("done");
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue