From 79f55b0b233258623062db3c916783b4d14bf14a Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 7 Mar 2026 18:33:37 -0500 Subject: authfs: implement p9p.Session --- back/cmd/authfs/root.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 back/cmd/authfs/root.go (limited to 'back/cmd/authfs/root.go') 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, + +} -- cgit v1.2.3