supports forget

This commit is contained in:
chrislu
2022-02-13 03:31:47 -08:00
parent 6a42cb6b0b
commit 3d93570979
3 changed files with 65 additions and 0 deletions

View File

@@ -120,6 +120,7 @@ func (wfs *WFS) maybeLoadEntry(fullpath util.FullPath) (*filer_pb.Entry, fuse.St
}, fuse.OK
}
// TODO Use inode to selectively filetering metadata updates
// read from async meta cache
meta_cache.EnsureVisited(wfs.metaCache, wfs, util.FullPath(dir))
cachedEntry, cacheErr := wfs.metaCache.FindEntry(context.Background(), fullpath)