9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: kokamoto@hera.eonet.ne.jp
To: 9fans@cse.psu.edu
Subject: Re: [9fans] xcpu fix for Plan9.c
Date: Sat, 22 Oct 2005 12:43:10 +0900	[thread overview]
Message-ID: <5c8bf6a8e08baeac5171626d7185d563@hera.eonet.ne.jp> (raw)
In-Reply-To: <2e38dc2dba2dfd0b245acbd7b22f7581@orthanc.cc.titech.ac.jp>

I'm now at home, and playing with xcpu on two machine Plan 9
system, one for CPU/AUTH/Fossil file server and the other is a
terminal.

On the CPU server, I dispatched the command like:
venus# xcpusrv -s xcpu
then got the answer:
fsnetproc pid is 421
threadpostmountsrv RETURNS!~!!!!!!

Next, I did the command
venus# aux/listen1 -tv tcp!*!20001 /bin/exportfs -S /srv/xcpu
listen started

After this I moved to the terminal, and dispatched the command:
term# 9fs tcp!venus!20001 /mnt/xcpu
post...
Then, I listed the terminal's /mnt/xcpu directory, so

term# ls -l /mnt/xcpu
and got the answer:
--rw--rw--rw M 47 ssh ssh 0 Jan 1 1970 clone

Ok, Next I read the clone file, and got
65536term#   
Oops! I forgot open the clone file, then,

term# openclone /mnt/xcpu/clone&
and got,
term# 131072openclone: child exits, we exit too  <==== not 0/1

then,
term# ls -l /mnt/xcpu
and got
d-r-x-r-x-r-x M 47 ssh ssh 0 Jan 1 1970 131072
--rw-rw-rw- M 47 ssh ssh 0 Jan 1 1970 clone

Ok, then I dispatched the series of command in Ron's xcpu.pdf:

term# cp /bin/date /mnt/xcpu/131072/exec
term# echo date >/mnt/xcpu/131072/argv
term# echo exec >/mnt/xcpu/131072/ctl
term# cat /mnt/xcpu/131072/stdout   <=======

Then, I got the right answer as
Sat Oct 22 11:38:02 JST 2005

Ok, everything worked fine.

Then, I tried to do the above sequence of commands, and
got error such as
  error writing /mnt/xcpu/131072/exec: not connected.

So, my questions are:

1) why I got 131072 instead of 0 or 1?
    Am I on the right way?
2) why the /mnt/cpu/131072/exec file accepts cp command
    only once?

I know Ron has been very busy, and may be still...
I can wait Ron, don't work too hard!

Kenji



  parent reply	other threads:[~2005-10-22  3:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20  2:58 YAMANASHI Takeshi
2005-10-20 14:33 ` Ronald G Minnich
2005-10-20 15:40 ` Ronald G Minnich
2005-10-20 15:56   ` Ronald G Minnich
2005-10-22  3:43 ` kokamoto [this message]
2005-10-24 14:46   ` Ronald G Minnich
2005-10-25  2:24     ` Kenji Okamoto
2005-10-25  2:29       ` Kenji Okamoto
2005-10-25 20:56       ` Ronald G Minnich
  -- strict thread matches above, loose matches on Subject: below --
2005-10-24  1:01 YAMANASHI Takeshi
2005-10-21  5:55 YAMANASHI Takeshi
2005-10-21  4:24 YAMANASHI Takeshi
2005-10-21  4:31 ` Russ Cox
2005-10-21  2:14 YAMANASHI Takeshi
2005-10-24 14:40 ` Ronald G Minnich
2005-10-24 14:57   ` Lucio De Re
2005-10-24 15:06     ` Lucio De Re
2005-10-19 13:28 Ronald G Minnich

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=5c8bf6a8e08baeac5171626d7185d563@hera.eonet.ne.jp \
    --to=kokamoto@hera.eonet.ne.jp \
    --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).