mount: invalide file cache when metadata is changed
This commit is contained in:
@@ -253,7 +253,7 @@ func (file *File) Forget() {
|
||||
}
|
||||
|
||||
func (file *File) maybeLoadEntry(ctx context.Context) error {
|
||||
if file.isOpen > 0 {
|
||||
if (file.entry != nil && len(file.entry.HardLinkId) != 0) || file.isOpen > 0 {
|
||||
return nil
|
||||
}
|
||||
entry, err := file.wfs.maybeLoadEntry(file.dir.FullPath(), file.Name)
|
||||
|
||||
Reference in New Issue
Block a user