mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
set status to fuse.OK
This commit is contained in:
parent
7386cf6a06
commit
2b64916d3e
|
@ -136,9 +136,10 @@ func (wfs *WFS) maybeReadEntry(inode uint64) (path util.FullPath, fh *FileHandle
|
||||||
if entry != nil && fh.entry.Attributes == nil {
|
if entry != nil && fh.entry.Attributes == nil {
|
||||||
entry.Attributes = &filer_pb.FuseAttributes{}
|
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 {
|
if status == fuse.OK && entry.FileMode()&os.ModeSymlink != 0 {
|
||||||
target := filepath.Join(string(path), "../"+entry.Attributes.SymlinkTarget)
|
target := filepath.Join(string(path), "../"+entry.Attributes.SymlinkTarget)
|
||||||
entry, status = wfs.maybeLoadEntry(util.FullPath(target))
|
entry, status = wfs.maybeLoadEntry(util.FullPath(target))
|
||||||
|
|
Loading…
Reference in a new issue