9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Kin Loo <kinloo1988@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] a 9P session between debian client and Plan 9 server side
Date: Thu,  5 Jan 2012 10:07:59 +0000	[thread overview]
Message-ID: <2bc41f09-db24-4103-a4da-1f68e91f435b@v14g2000yqh.googlegroups.com> (raw)
In-Reply-To: <db4117e9-e216-494e-b27c-e71634a2121d@v24g2000prn.googlegroups.com>

Now I start the server with -D flag and try ''echo hello >>foo" on
Linux. The server side on Plan 9 say:

    <-5- Twalk tag 1 fid 408 newfid 437 nwname 1 0:foo
    -5-> Rwalk tag 1 nwqid 1 0:(0000000000000000 0 )
    <-5- Tstat tag 1 fid 437
    -5-> Rstat tag 1  stat 'foo' 'bootes' 'bootes' 'unknown' q
(0000000000000000 0 ) m 0666 at 1325748319 mt 1325748319 l         0 t
0 d 0
    <-5- Tclunk tag 1 fid 437
    -5-> Rclunk tag 1
    <-5- Twalk tag 2 fid 408 newfid 437 nwname 1 0:foo
    -5-> Rwalk tag 2 nwqid 1 0:(0000000000000000 0 )
    <-5- Tstat tag 2 fid 437
    -5-> Rstat tag 2  stat 'foo' 'bootes' 'bootes' 'unknown' q
(0000000000000000 0 ) m 0666 at 1325748319 mt 1325748319 l  0 t 0 d 0
    <-5- Tclunk tag 2 fid 437
    -5-> Rclunk tag 2
    <-5- Twalk tag 2 fid 408 newfid 438 nwname 1 0:foo
    -5-> Rwalk tag 2 nwqid 1 0:(0000000000000000 0 )
    <-5- Topen tag 2 fid 438 mode 1
    fid mode is 0x1
    -5-> Ropen tag 2 qid (0000000000000000 0 ) iounit 0
    <-5- Tstat tag 2 fid 438
    -5-> Rstat tag 2  stat 'foo' 'bootes' 'bootes' 'unknown' q
(0000000000000000 0 ) m 0666 at 1325748319 mt 1325748319 l   0 t 0 d 0
    <-5- Twrite tag 6 fid 438 offset 0 count 6 'hello'
    -5-> Rwrite tag 6 count 6
    <-5- Tclunk tag 6 fid 438
    -5-> Rclunk tag 6

I will read more 9P examples in order to implement a wstat. Thank you
Yaroslav and Andrey, it is worth to learn from you.



      parent reply	other threads:[~2012-01-05 10:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03 10:49 Kin Loo
2012-01-03 12:50 ` Yaroslav
2012-01-03 14:59 ` andrey mirtchovski
2012-01-05 10:07 ` Kin Loo [this message]

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=2bc41f09-db24-4103-a4da-1f68e91f435b@v14g2000yqh.googlegroups.com \
    --to=kinloo1988@gmail.com \
    --cc=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).