diff options
author | Jakob Unterwurzacher | 2020-07-18 23:06:22 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-07-18 23:40:54 +0200 |
commit | 6b7ff09373971238456b11014b5197f9c3558ef5 (patch) | |
tree | 784b3a79a5a139bcfb5ba6b021baa7da600c74ef /internal/fusefrontend/node_dir_ops.go | |
parent | 7eae35e2d317f737cd69afdf88539c5d29b91296 (diff) |
v2api: Node: make Path() public
Helpful for fsck.
Diffstat (limited to 'internal/fusefrontend/node_dir_ops.go')
-rw-r--r-- | internal/fusefrontend/node_dir_ops.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/fusefrontend/node_dir_ops.go b/internal/fusefrontend/node_dir_ops.go index 8cc158d..066e791 100644 --- a/internal/fusefrontend/node_dir_ops.go +++ b/internal/fusefrontend/node_dir_ops.go @@ -55,7 +55,7 @@ func (n *Node) mkdirWithIv(dirfd int, cName string, mode uint32, caller *fuse.Ca // Symlink-safe through use of Mkdirat(). func (n *Node) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno) { rn := n.rootNode() - newPath := filepath.Join(n.path(), name) + newPath := filepath.Join(n.Path(), name) if rn.isFiltered(newPath) { return nil, syscall.EPERM } @@ -147,7 +147,7 @@ func (n *Node) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.En // ReadDirIVAt(). func (n *Node) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno) { rn := n.rootNode() - p := n.path() + p := n.Path() dirName := filepath.Base(p) parentDirFd, cDirName, err := rn.openBackingDir(p) if err != nil { @@ -232,7 +232,7 @@ func (n *Node) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno) { // Symlink-safe through Unlinkat() + AT_REMOVEDIR. func (n *Node) Rmdir(ctx context.Context, name string) (code syscall.Errno) { rn := n.rootNode() - p := filepath.Join(n.path(), name) + p := filepath.Join(n.Path(), name) parentDirFd, cName, err := rn.openBackingDir(p) if err != nil { return fs.ToErrno(err) |