summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/node_dir_ops.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-06-21 14:08:53 +0200
committerJakob Unterwurzacher2020-06-21 14:08:53 +0200
commit1618fbbac56c97e2ffbcabeee2dcc3d4ae62683e (patch)
treeba4789b083dd0eaa742a9372ec0e4a2155b414bb /internal/fusefrontend/node_dir_ops.go
parentcc0b94a3c58c942250c0b2728c2d95123b0decf1 (diff)
v2api: implement Unlink
Diffstat (limited to 'internal/fusefrontend/node_dir_ops.go')
-rw-r--r--internal/fusefrontend/node_dir_ops.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/fusefrontend/node_dir_ops.go b/internal/fusefrontend/node_dir_ops.go
index b4bce1b..8aa79ba 100644
--- a/internal/fusefrontend/node_dir_ops.go
+++ b/internal/fusefrontend/node_dir_ops.go
@@ -139,6 +139,10 @@ func (n *Node) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.En
return ch, 0
}
+// Readdir - FUSE call.
+//
+// This function is symlink-safe through use of openBackingDir() and
+// ReadDirIVAt().
func (n *Node) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno) {
rn := n.rootNode()
p := n.path()