summaryrefslogtreecommitdiffstats
path: root/back/cmd/authfs/root.go
diff options
context:
space:
mode:
Diffstat (limited to 'back/cmd/authfs/root.go')
-rw-r--r--back/cmd/authfs/root.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/back/cmd/authfs/root.go b/back/cmd/authfs/root.go
new file mode 100644
index 0000000..70ca643
--- /dev/null
+++ b/back/cmd/authfs/root.go
@@ -0,0 +1,21 @@
+package main
+
+const rootQid = p9p.Qid{
+ Type: QTDIR,
+ Version: 0x0,
+ Path: 0x1,
+}
+
+// Root is the root Dir which contains /users and /sessions.
+type Root struct {
+ path string
+}
+
+func (r Root) Qid() p9p.Qid { return rootQid }
+
+func (r Root) Stat() (p9p.Dir, error) {
+ return p9p.Dir{
+ Qid: rootQid,
+ Mode: DMDIR | DMREAD,
+
+}