toolsrv: rename internal/fs → internal/server

The package defines the Server type and its namespace — 'fs' was a
leftover name from when it only held the filesystem spec. Now it's
the server definition. File renamed spec.go → server.go to match.
This commit is contained in:
Ollie Agent 2026-08-11 21:15:03 +02:00
parent 8ce8390421
commit 62fe1dab83
7 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
// parse.go - Key=value payload parsing for toolsrv.
package fs
package server
import "strings"

View File

@ -1,5 +1,5 @@
// proc.go - Process management and tool operations for toolsrv.
package fs
package server
import (
"bytes"

View File

@ -1,4 +1,4 @@
package fs
package server
import (
"context"

View File

@ -1,5 +1,5 @@
// spec.go - virtfs-based namespace specification for toolsrv.
package fs
package server
import (
"context"

View File

@ -1,4 +1,4 @@
package fs
package server
import (
"strings"

View File

@ -24,7 +24,7 @@ import (
"syscall"
"time"
"ollie/cmd/toolsrv/internal/fs"
"ollie/cmd/toolsrv/internal/server"
"ollie/cmd/toolsrv/internal/registry"
"ollie/env"
@ -81,7 +81,7 @@ func main() {
toolReg, _ := registry.New()
// Create server state
srv := fs.NewServer()
srv := server.NewServer()
srv.SetYolo(*yolo)
if toolReg != nil {
srv.SetRegistry(toolReg)

View File

@ -9,7 +9,7 @@ import (
"net"
"sync"
"ollie/cmd/toolsrv/internal/fs"
"ollie/cmd/toolsrv/internal/server"
"ollie/virtfs"
"9fans.net/go/plan9"
@ -42,12 +42,12 @@ type connState struct {
authFids map[uint32]*authFid
ctx context.Context
uname string
srv *fs.Server
srv *server.Server
noAuth bool // skip authentication (for debugging)
}
// serve9P handles a single 9P connection using the virtfs tree.
func serve9P(ctx context.Context, conn net.Conn, tree *virtfs.Tree, srv *fs.Server, noAuth bool) {
func serve9P(ctx context.Context, conn net.Conn, tree *virtfs.Tree, srv *server.Server, noAuth bool) {
defer conn.Close()
cs := &connState{