diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-03-14 16:14:15 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-03-14 16:14:15 -0400 |
| commit | 51c51c16bf4839940124695fbee65c152f6d29c5 (patch) | |
| tree | b3da9c0bf28306c80167074ee051ded043be9e7d /back/cmd/authfs/qid.go | |
| parent | 700096b078f6e16f2c5c967ea140f0b93e799986 (diff) | |
| download | buth-51c51c16bf4839940124695fbee65c152f6d29c5.zip | |
authfs: implement Qid() for Session and SessionsDir
Diffstat (limited to 'back/cmd/authfs/qid.go')
| -rw-r--r-- | back/cmd/authfs/qid.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/back/cmd/authfs/qid.go b/back/cmd/authfs/qid.go new file mode 100644 index 0000000..7c23240 --- /dev/null +++ b/back/cmd/authfs/qid.go @@ -0,0 +1,16 @@ +package main + +const ( + _ uint64 = iota + rootQidPath + usersQidPath + sessionsQidPath +) + +var nextQidPath uint64 = 99 + +func NextQidPath() uint64 { + p := nextQidPath + nextQidPath++ + return p +} |