[9fans] 9P reading directories client/server behavior

2021-03-09 Thread nicolagi via 9fans
Dear 9fans, I'm confused regarding the correct behavior for a Tread handler for directories, and the corresponding correct behavior for a client that wants to read the whole contents of a directory. I was trying to use 9fans/go/plan9/client.Fid.Dirreadall [https://github.com/9fans/go/blob/master/

Re: [9fans] 9P reading directories client/server behavior

2021-03-09 Thread nicolagi via 9fans
As it often happens to me, a few minutes after hitting send, I am enlightened and embarassed. :-) I had a bit of tunnel vision there, and didn't think of looking at another 9P trace. When I run "9p ls foo/bar" I get the below trace, which answers most of my questions. Tread tag 0 fid 1 of

Re: [9fans] 9P reading directories client/server behavior

2021-03-10 Thread nicolagi via 9fans
Quoting Anthony Martin : > nicolagi via 9fans <9fans@9fans.net> once said: >> The only question that still stands is the last in my original post: >> What happens and what should happen when a dir entry is larger than >> msize-24? Possibly written from a connection with

Re: [9fans] 9P reading directories client/server behavior

2021-04-14 Thread nicolagi via 9fans
On Fri, Apr 09, 2021 at 04:00:35PM -0400, Russ Cox wrote: > On March 9, 2021, Plan 9 from Bell Labs <9fans@9fans.net> wrote: > > I was trying to use 9fans/go/plan9/client.Fid.Dirreadall > > [https://github.com/9fans/go/blob/master/plan9/client/fid.go#L54-L60] > > and found that it returned fewer en