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.go | |
parent | 7eae35e2d317f737cd69afdf88539c5d29b91296 (diff) |
v2api: Node: make Path() public
Helpful for fsck.
Diffstat (limited to 'internal/fusefrontend/node.go')
-rw-r--r-- | internal/fusefrontend/node.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/fusefrontend/node.go b/internal/fusefrontend/node.go index 48447bb..01cc9c3 100644 --- a/internal/fusefrontend/node.go +++ b/internal/fusefrontend/node.go @@ -22,9 +22,9 @@ type Node struct { fs.Inode } -// path returns the relative plaintext path of this node -func (n *Node) path() string { - return n.Path(n.Root()) +// Path returns the relative plaintext path of this node +func (n *Node) Path() string { + return n.Inode.Path(n.Root()) } // rootNode returns the Root Node of the filesystem. @@ -40,7 +40,7 @@ func (n *Node) rootNode() *RootNode { // a child of this node. // If `child` is empty, the (dirfd, cName) pair refers to this node itself. func (n *Node) prepareAtSyscall(child string) (dirfd int, cName string, errno syscall.Errno) { - p := n.path() + p := n.Path() if child != "" { p = filepath.Join(p, child) } |