website/content/lab-notes/9p.md
2025-01-23 15:11:51 -05:00

1.1 KiB
Executable file

title
plan9 FS

Digested from:

9p2000 Opcodes

All messages take a tag parameter used to multiplex connections

Session

  • version
    • parameter negotiations
  • auth
    • T
      • afid: auth handle??
      • uname
        • username
      • aname: mount name (root if blank)
  • attach
    • establish connection to server
    • T
      • fid is file handle, chosen by client?
      • afid is an 'auth handle'
        • -1 for no auth
      • uname
      • aname
    • R:
  • flush
    • abort request
  • error

File

  • walk
    • lookup pathname
  • open
  • create
  • read
  • write
  • clunk
    • release a file?

Metadata

  • stat
    • read metadata attrs
  • wstat
    • write metadata attrs
  • Requests are T-messages
  • responses are R-messages