aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-07-24 15:30:55 -0700
committerchrislu <chris.lu@gmail.com>2022-07-24 15:30:55 -0700
commit2b64916d3e3bbbc38e88d4dfe8399c1751e289c0 (patch)
treee9e592ddf93d409e3027394b3231faf68a44e090 /weed/mount/weedfs.go
parent7386cf6a06f4e879f3598895d66e65d538eac26e (diff)
downloadseaweedfs-2b64916d3e3bbbc38e88d4dfe8399c1751e289c0.tar.xz
seaweedfs-2b64916d3e3bbbc38e88d4dfe8399c1751e289c0.zip
set status to fuse.OK
Diffstat (limited to 'weed/mount/weedfs.go')
-rw-r--r--weed/mount/weedfs.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go
index 697afcbca..38127617a 100644
--- a/weed/mount/weedfs.go
+++ b/weed/mount/weedfs.go
@@ -136,9 +136,10 @@ func (wfs *WFS) maybeReadEntry(inode uint64) (path util.FullPath, fh *FileHandle
if entry != nil && fh.entry.Attributes == nil {
entry.Attributes = &filer_pb.FuseAttributes{}
}
- return path, fh, entry, fuse.OK
+ status = fuse.OK
+ } else {
+ entry, status = wfs.maybeLoadEntry(path)
}
- entry, status = wfs.maybeLoadEntry(path)
if status == fuse.OK && entry.FileMode()&os.ModeSymlink != 0 {
target := filepath.Join(string(path), "../"+entry.Attributes.SymlinkTarget)
entry, status = wfs.maybeLoadEntry(util.FullPath(target))