9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Skip Tavakkolian <9nut@9netics.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] namespace oddness
Date: Sat, 17 Nov 2007 12:16:08 -0800	[thread overview]
Message-ID: <36dfcabf49bcb97045b5d799cf5e4404@9netics.com> (raw)
In-Reply-To: <df49a7370711170447u5e34a72cg64daab4eb1687f86@mail.gmail.com>

> does anyone else get the same behaviour?
> 
> % bind /net /net.alt
> % mkdir /tmp/empty
> % bind /tmp/empty /net
> % cd /net.alt/tcp
> Can't cd /net.alt/tcp: '/net.alt/tcp' file does not exist
> cpu% ls -l /net.alt/tcp
> ls: /net.alt/tcp: '/net.alt/tcp' file does not exist
> % cd /net.alt
> % cd tcp
> % ls -l
> --rw-rw-rw- I 0 network bootes 0 Jun 28 12:36 clone
> --r--r--r-- I 0 network bootes 0 Jun 28 12:36 stats
> %

i tried it with ramfs -D for a clue.

cpu% bind /net /net.alt
cpu% ramfs -D -m /tmp/empty
ramfs 229917:<-Tversion tag 65535 msize 8216 version '9P2000'
ramfs 229917:->Rversion tag 65535 msize 8216 version '9P2000'
ramfs 229917:<-Tattach tag 6 fid 1180 afid -1 uname fst aname 
ramfs 229917:->Rattach tag 6 qid (0000000000000000 0 d)
cpu% bind /tmp/empty /net
cpu% cd /net.alt/tcp
ramfs 229917:<-Twalk tag 6 fid 1180 newfid 583 nwname 1 0:tcp 
ramfs 229917:->Rerror tag 6 ename file does not exist
Can't cd /net.alt/tcp: '/net.alt/tcp' file does not exist
cpu% cd /net.alt
cpu% cd tcp
cpu% ls -l
d-r-xr-xr-x I 0 bootes  bootes 0 Nov 10  2004 0
...

that made me wonder of /net is bound before /net.alt; so i forced after:

cpu% bind -a /net /net.alt
cpu% ramfs -D -m /tmp/empty
ramfs 229992:<-Tversion tag 65535 msize 8216 version '9P2000'
ramfs 229992:->Rversion tag 65535 msize 8216 version '9P2000'
ramfs 229992:<-Tattach tag 16 fid 1153 afid -1 uname fst aname 
ramfs 229992:->Rattach tag 16 qid (0000000000000000 0 d)
cpu% bind /tmp/empty /net
cpu% cd /net.alt/tcp
cpu% ls -l
d-r-xr-xr-x I 0 bootes  bootes 0 Nov 10  2004 0
...


  reply	other threads:[~2007-11-17 20:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-17 12:47 roger peppe
2007-11-17 20:16 ` Skip Tavakkolian [this message]
2007-11-19 14:53 ` Russ Cox
  -- strict thread matches above, loose matches on Subject: below --
2007-11-16 15:37 roger peppe

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=36dfcabf49bcb97045b5d799cf5e4404@9netics.com \
    --to=9nut@9netics.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).