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 4225edb commit 9ea9ec8Copy full SHA for 9ea9ec8
internal/goofys.go
@@ -764,6 +764,17 @@ func (fs *Goofys) ForgetInode(
764
fs.mu.Lock()
765
defer fs.mu.Unlock()
766
767
+ // Fix ReadDir inode leak https://github.com/kahing/goofys/pull/786
768
+ if inode.isDir() {
769
+ for _, child := range inode.dir.Children {
770
+ if *child.Name == "." || *child.Name == ".." {
771
+ continue
772
+ }
773
+ delete(fs.inodes, child.Id)
774
+ fs.forgotCnt += 1
775
776
777
+
778
delete(fs.inodes, op.Inode)
779
fs.forgotCnt += 1
780
0 commit comments