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

@@ -62,6 +62,7 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector
}
// fmt.Printf("rename path: %v => %v\n", oldPath, newPath)
dir.wfs.fsNodeCache.Move(oldPath, newPath)
delete(dir.wfs.handles, oldPath.AsInode())
return err