Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

set status to fuse.OK

chrislu2b64916d3e3b
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go
index 697afcbcad..38127617a6 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))