Skip to content

Commit

Permalink
Mark directory listings unfinished on eviction
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalif committed Oct 2, 2023
1 parent af0ace5 commit 98e7830
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/goofys.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ func (fs *Goofys) EvictEntry(id fuseops.InodeID) bool {
found := tmpParent.findChildUnlocked(childTmp.Name)
if found == childTmp {
tmpParent.removeChildUnlocked(childTmp)
// Mark directory listing as unfinished
tmpParent.dir.DirTime = time.Time{}
tmpParent.dir.forgetDuringList = true
}
childTmp.resetCache()
Expand Down

0 comments on commit 98e7830

Please sign in to comment.