9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "nicolagi via 9fans" <9fans@9fans.net>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] 9P reading directories client/server behavior
Date: Wed, 14 Apr 2021 18:06:13 +0000	[thread overview]
Message-ID: <20210414180613.GA11100@SDF.ORG> (raw)
In-Reply-To: <6eafc6eebda4beda2237ec6990485bb3c78b444e@hey.com>

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 entries than a single Dirread. The
> > reason is that Dirreadall uses ioutil.ReadAll which doesn't work
> > well with a fid corresponding to a directory, because it spuriously
> > detects io.EOF when in fact there are more dir entries, but none
> > fits into the read buffer.
> 
> Fixed, thanks.

Argh, I totally forgot to send a patch, sorry about that!
OTOH, I'm sure it took you a minute or so to fix this issue...

Thank you for all the answers.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T36fa75fb83c81d6d-M733cffffc82853c8d11e70e8
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  reply	other threads:[~2021-04-14 18:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-09 13:32 nicolagi via 9fans
2021-04-09 20:00 ` Russ Cox
2021-04-14 18:06   ` nicolagi via 9fans [this message]
2021-03-09 14:05 nicolagi via 9fans
2021-03-09 20:01 ` Anthony Martin
2021-03-10 19:36 nicolagi via 9fans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210414180613.GA11100@SDF.ORG \
    --to=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).