9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: uriel@cat-v.org
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9p and how can I know when a write is finished
Date: Wed,  1 Mar 2006 18:21:00 +0100	[thread overview]
Message-ID: <3461107aee09ecf85ba989151904bbe2@cat-v.org> (raw)
In-Reply-To: <4405D2A2.4040505@lanl.gov>

> you guys are all confusing me. AFAIK, if you have written a plan 9
> server, you have the standard Ye Olde Server Dispatche Functionne.
>
> Said function, when it gets a Req with an op type of Twrite, calls the
> appropriate server function, and replies.
That is not the issue, the issue is that a single write() call can turn into various
Twrite operations.

> I just finished writing another one of these (A GPS server ... fun!) and
> it all Just Works.
What is wrong with gpsfs(8)?

> So, I don't see the problem. Plan 9 packet sizes can be pretty big ---
> much much bigger then the MTU on a network -- so the 9p server code
> deals with it. When your Twrite gets called, it has the data.
iounit also can be quite small, webfs for example is broken for even
slightly long URLs because it assumes they fit in a single Twrite, and
quite often they don't.

>From reading section 5 of the man pages, somehow I had (incorrectly)
understood that a Tclunk was not warranted to follow immediately a
close(), which seems to be only partially true as russ explained.

Maybe the bottom of clunk(5) should clarify that close() only
generates a Tclunk when it's the last reference to the fd is closed?

uriel



  reply	other threads:[~2006-03-01 17:21 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-01 14:29 Gabriel Diaz
2006-03-01 14:49 ` Sape Mullender
2006-03-01 15:14 ` [9fans] " Gabriel Diaz
2006-03-01 15:15 ` [9fans] " Anselm R. Garbe
2006-03-01 15:20   ` uriel
2006-03-01 15:29     ` Anselm R. Garbe
2006-03-01 15:49       ` Gabriel Diaz
2006-03-01 15:57       ` C H Forsyth
2006-03-01 16:31         ` jmk
2006-03-01 16:47     ` Russ Cox
2006-03-01 22:55       ` Dave Eckhardt
2006-03-01 22:59         ` rog
2006-03-01 23:06           ` Ronald G Minnich
2006-03-01 16:58     ` Ronald G Minnich
2006-03-01 17:21       ` uriel [this message]
2006-03-01 17:19         ` Ronald G Minnich
2006-03-03  1:49           ` uriel
2006-03-03  2:34             ` Ronald G Minnich
2006-03-03 21:26             ` David Leimbach
2006-03-01 17:29         ` Russ Cox
2006-03-01 17:41           ` Paul Lalonde
2006-03-01 19:48             ` Ronald G Minnich
2006-03-01 19:58               ` "Nils O. Selåsdal"
2006-03-01 20:16               ` uriel
2006-03-02  1:45                 ` erik quanstrom
2006-03-01 18:50         ` Latchesar Ionkov
2006-03-01 18:55           ` uriel
2006-03-01 17:21       ` Gabriel Diaz
2006-03-01 17:22         ` Ronald G Minnich
2006-03-01 18:10           ` rog
2006-03-01 19:49             ` Ronald G Minnich
2006-03-01 20:15               ` rog
2006-03-01 17:59         ` Skip Tavakkolian

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=3461107aee09ecf85ba989151904bbe2@cat-v.org \
    --to=uriel@cat-v.org \
    --cc=9fans@cse.psu.edu \
    /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).