diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-26 00:08:14 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-26 00:08:14 -0700 |
| commit | 7f0d87b2065ffb5e7be1bd0591416b9649839c9e (patch) | |
| tree | 11a60d3bc6fed6cbc97987e09f8e428ddc0a3c97 /weed/filesys/dir_link.go | |
| parent | 2e4fadd10aa8835e7bcbbe25b46169a6335154f6 (diff) | |
| download | seaweedfs-7f0d87b2065ffb5e7be1bd0591416b9649839c9e.tar.xz seaweedfs-7f0d87b2065ffb5e7be1bd0591416b9649839c9e.zip | |
tree structured fs cache
FsCache for FsNode, wrapping fs.Node
Diffstat (limited to 'weed/filesys/dir_link.go')
| -rw-r--r-- | weed/filesys/dir_link.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filesys/dir_link.go b/weed/filesys/dir_link.go index 61ed04c26..3c415c3a6 100644 --- a/weed/filesys/dir_link.go +++ b/weed/filesys/dir_link.go @@ -17,10 +17,10 @@ var _ = fs.NodeReadlinker(&File{}) func (dir *Dir) Symlink(ctx context.Context, req *fuse.SymlinkRequest) (fs.Node, error) { - glog.V(3).Infof("Symlink: %v/%v to %v", dir.Path, req.NewName, req.Target) + glog.V(3).Infof("Symlink: %v/%v to %v", dir.FullPath(), req.NewName, req.Target) request := &filer_pb.CreateEntryRequest{ - Directory: dir.Path, + Directory: dir.FullPath(), Entry: &filer_pb.Entry{ Name: req.NewName, IsDirectory: false, @@ -37,7 +37,7 @@ func (dir *Dir) Symlink(ctx context.Context, req *fuse.SymlinkRequest) (fs.Node, err := dir.wfs.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error { if err := filer_pb.CreateEntry(client, request); err != nil { - glog.V(0).Infof("symlink %s/%s: %v", dir.Path, req.NewName, err) + glog.V(0).Infof("symlink %s/%s: %v", dir.FullPath(), req.NewName, err) return fuse.EIO } return nil @@ -59,7 +59,7 @@ func (file *File) Readlink(ctx context.Context, req *fuse.ReadlinkRequest) (stri return "", fuse.Errno(syscall.EINVAL) } - glog.V(3).Infof("Readlink: %v/%v => %v", file.dir.Path, file.Name, file.entry.Attributes.SymlinkTarget) + glog.V(3).Infof("Readlink: %v/%v => %v", file.dir.FullPath(), file.Name, file.entry.Attributes.SymlinkTarget) return file.entry.Attributes.SymlinkTarget, nil |
