From: Sape Mullender <sape@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] 9p and how can I know when a write is finished
Date: Wed, 1 Mar 2006 09:49:24 -0500 [thread overview]
Message-ID: <29d919e67f7ef97bb8b99c2021f72957@plan9.bell-labs.com> (raw)
In-Reply-To: <82c890d00603010629oe7c69ddr5ef809a598ce28eb@mail.gmail.com>
> Hello,
>
> I'm not sure if I'm misunderstanding this but,
> i need to write to a ctl file some commands,
> so to parse them correctly i need the complete
> command (commands file should be 10k or so, but
> may be more).
>
> How can I know when a write is finished to start
> parsing the commands? (i mean, if occurs
> that the write is done with multiple requests ).
>
> Twrite tag[2] fid[4] offset[8] count[4] data[count]
>
> Is there any special mark on those fields? what is
> the man page i am missing?
If you're writing a file server, look at the file servers that are there
to see what they look like. ramfs is a nice and simple example.
If you send commands in a single write operation, they will
arrive in a single write operation. read9pmsg(2)
gathers just the right number of bytes for you and convM2S(2)
converts the message to a C struct.
Sape
next prev parent reply other threads:[~2006-03-01 14:49 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 [this message]
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
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=29d919e67f7ef97bb8b99c2021f72957@plan9.bell-labs.com \
--to=sape@plan9.bell-labs.com \
--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).