summaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/r_node.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-06-11 22:20:15 +0200
committerJakob Unterwurzacher2020-06-21 12:01:24 +0200
commit2aad58f9ec3386cbf3de6e10a82de51052832a30 (patch)
tree5fc6616b22e076d82e1e709344431148d998f8d3 /internal/fusefrontend_reverse/r_node.go
parent3b61244b72f74a25651d4ba184ac7cc62c937db0 (diff)
v2api (go-fuse v2 api): initial noop implementation
Compiles and mounts but does nothing useful.
Diffstat (limited to 'internal/fusefrontend_reverse/r_node.go')
-rw-r--r--internal/fusefrontend_reverse/r_node.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/r_node.go b/internal/fusefrontend_reverse/r_node.go
new file mode 100644
index 0000000..58ce664
--- /dev/null
+++ b/internal/fusefrontend_reverse/r_node.go
@@ -0,0 +1,20 @@
+package fusefrontend_reverse
+
+import (
+ "github.com/hanwen/go-fuse/v2/fs"
+
+ "github.com/rfjakob/gocryptfs/internal/contentenc"
+ "github.com/rfjakob/gocryptfs/internal/fusefrontend"
+ "github.com/rfjakob/gocryptfs/internal/nametransform"
+)
+
+// RNode is a file or directory in the filesystem tree
+// in a `gocryptfs -reverse` mount.
+type RNode struct {
+ fs.Inode
+}
+
+func NewRootNode(args fusefrontend.Args, c *contentenc.ContentEnc, n nametransform.NameTransformer) *RNode {
+ // TODO
+ return &RNode{}
+}