summaryrefslogtreecommitdiffstats
path: root/back/cmd/authfs/root.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-03-07 18:33:37 -0500
committerSam Anthony <sam@samanthony.xyz>2026-03-07 18:33:37 -0500
commit79f55b0b233258623062db3c916783b4d14bf14a (patch)
tree09881b5482d2e61d29c8589f2cfabb757252f89b /back/cmd/authfs/root.go
parentade134e5e6aaf28dd65d87dc493d05253585559b (diff)
downloadbuth-79f55b0b233258623062db3c916783b4d14bf14a.zip
authfs: implement p9p.Session
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,
+
+}