summaryrefslogtreecommitdiff
path: root/lib9p/9P2000.txt
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-08 17:57:42 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-10-08 17:57:42 -0600
commit9bc74152100ae7356ed8c273baf738a76136cdd2 (patch)
tree44b4a4025be22b822d39b901a33c84a0d9bf37dd /lib9p/9P2000.txt
parent6f22c7b21a4c0fc0012cb7f3ceb38dd7fb47c73d (diff)
lib9p: stat size is weird
Diffstat (limited to 'lib9p/9P2000.txt')
-rw-r--r--lib9p/9P2000.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib9p/9P2000.txt b/lib9p/9P2000.txt
index ab898ec..5302f2b 100644
--- a/lib9p/9P2000.txt
+++ b/lib9p/9P2000.txt
@@ -90,7 +90,7 @@ bitfield qt 8
qid = "type[qt] vers[4] path[8]"
# stat (TODO)
-stat = "stat_size[2]"
+stat = "stat_size[2,val=end-&kern_type]"
"kern_type[2]"
"kern_dev[4]"
"file_qid[qid]"
@@ -150,6 +150,6 @@ bitfield o 8
122/Tremove = "fid[4]"
123/Rremove = ""
124/Tstat = "fid[4]"
-125/Rstat = "stat[stat]"
-126/Twstat = "fid[4] stat[stat]"
+125/Rstat = "nstat[2,val=end-&stat] stat[stat]" # See the "BUG" note in the RFC for the nstat field
+126/Twstat = "fid[4] nstat[2,val=end-&stat] stat[stat]" # See the "BUG" note in the RFC for the nstat field
127/Rwstat = ""