We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ffe897 commit 749f461Copy full SHA for 749f461
src/inode_table.rs
@@ -195,8 +195,8 @@ impl InodeTable {
195
196
/// Remove the path->inode mapping for a given path, but keep the inode around.
197
pub fn unlink(&mut self, path: &Path) {
198
- self.by_path.remove(Pathish::new(path));
199
- // Note that the inode->path mapping remains.
+ let idx = self.by_path.remove(Pathish::new(path)).unwrap();
+ self.table[idx].path = None;
200
}
201
202
/// Get a free indode table entry and its number, either by allocating a new one, or re-using
0 commit comments