As per the stat(5) Plan 9 man pagestat.name must be / if the file Tstat is invoked with is the root of the file tree, but trying to parse such an Rstat message with styxproto leads to the following panic:
styxproto_test.go:92: bad message: slash in path element
I discovered this because I've been using styxproto to validate my own 9P implementation. I haven't investigated the actual implementation of styx or jsonfs so I'm not sure what exactly causes it, but dumping the traffic when mounting a jsonfs exported file tree I see that the root directory has a name of . which is invalid as per stat(5).
As per the
stat(5)
Plan 9 man pagestat.name
must be/
if the fileTstat
is invoked with is the root of the file tree, but trying to parse such anRstat
message withstyxproto
leads to the following panic:I discovered this because I've been using
styxproto
to validate my own 9P implementation. I haven't investigated the actual implementation ofstyx
orjsonfs
so I'm not sure what exactly causes it, but dumping the traffic when mounting ajsonfs
exported file tree I see that the root directory has a name of.
which is invalid as perstat(5)
.