9p: add s/optimize to session store
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3a96284d98
commit
5bb1783808
|
|
@ -12,18 +12,19 @@ import (
|
|||
// Add an entry here to expose a new file; the server uses this map for
|
||||
// routing, mode, and stat length.
|
||||
var sessionStoreFiles = map[string]os.FileMode{
|
||||
"new": 0666,
|
||||
"idx": 0444,
|
||||
"ls": 0555,
|
||||
"kill": 0555,
|
||||
"sh": 0555,
|
||||
"job": 0555,
|
||||
"q": 0555,
|
||||
"sched": 0555,
|
||||
"new": 0666,
|
||||
"idx": 0444,
|
||||
"ls": 0555,
|
||||
"kill": 0555,
|
||||
"sh": 0555,
|
||||
"job": 0555,
|
||||
"q": 0555,
|
||||
"sched": 0555,
|
||||
"optimize": 0555,
|
||||
}
|
||||
|
||||
// sessionStoreOrder defines the listing order for fixed s/ entries.
|
||||
var sessionStoreOrder = []string{"new", "idx", "ls", "kill", "sh", "job", "q", "sched"}
|
||||
var sessionStoreOrder = []string{"new", "idx", "ls", "kill", "sh", "job", "q", "sched", "optimize"}
|
||||
|
||||
// SessionStore implements Store for the /s/ directory.
|
||||
// Entries are session IDs (directories) plus the synthetic files "new" and "idx".
|
||||
|
|
|
|||
Reference in New Issue