aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/filehandle.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-18 00:45:43 -0800
committerchrislu <chris.lu@gmail.com>2022-02-18 00:45:43 -0800
commitf9d33f70b0529451c583c2fe41685fbe4234069e (patch)
treeaadf1c22f63603e2ff224c150aeac668409bd37a /weed/mount/filehandle.go
parentb9cf4f12fcab2c0fdd35af256faa28f53a414dc2 (diff)
downloadseaweedfs-f9d33f70b0529451c583c2fe41685fbe4234069e.tar.xz
seaweedfs-f9d33f70b0529451c583c2fe41685fbe4234069e.zip
return fuse.Status when looking up by inode
Diffstat (limited to 'weed/mount/filehandle.go')
-rw-r--r--weed/mount/filehandle.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/mount/filehandle.go b/weed/mount/filehandle.go
index f2a2ec69c..770e89a10 100644
--- a/weed/mount/filehandle.go
+++ b/weed/mount/filehandle.go
@@ -49,7 +49,8 @@ func newFileHandle(wfs *WFS, handleId FileHandleId, inode uint64, entry *filer_p
}
func (fh *FileHandle) FullPath() util.FullPath {
- return fh.wfs.inodeToPath.GetPath(fh.inode)
+ fp, _ := fh.wfs.inodeToPath.GetPath(fh.inode)
+ return fp
}
func (fh *FileHandle) addChunks(chunks []*filer_pb.FileChunk) {