add back fs node cache for renaming

This commit is contained in:
Chris Lu
2020-08-09 21:56:09 -07:00
parent 4f195a54ca
commit e74dc4e4bc
7 changed files with 334 additions and 10 deletions

View File

@@ -213,6 +213,7 @@ func (file *File) Fsync(ctx context.Context, req *fuse.FsyncRequest) error {
func (file *File) Forget() {
t := util.NewFullPath(file.dir.FullPath(), file.Name)
glog.V(3).Infof("Forget file %s", t)
file.wfs.fsNodeCache.DeleteFsNode(t)
}
func (file *File) maybeLoadEntry(ctx context.Context) error {