aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/mount/weedfs.go')
-rw-r--r--weed/mount/weedfs.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go
index 68f8dd985..fa5c7d4f9 100644
--- a/weed/mount/weedfs.go
+++ b/weed/mount/weedfs.go
@@ -94,9 +94,10 @@ func (wfs *WFS) String() string {
return "seaweedfs"
}
-func (wfs *WFS) maybeReadEntry(inode uint64) (*filer_pb.Entry, fuse.Status) {
- path := wfs.inodeToPath.GetPath(inode)
- return wfs.maybeLoadEntry(path)
+func (wfs *WFS) maybeReadEntry(inode uint64) (path util.FullPath, entry *filer_pb.Entry, status fuse.Status) {
+ path = wfs.inodeToPath.GetPath(inode)
+ entry, status = wfs.maybeLoadEntry(path)
+ return
}
func (wfs *WFS) maybeLoadEntry(fullpath util.FullPath) (*filer_pb.Entry, fuse.Status) {