9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Keith Nash <kjn9@citizenearth.com>
To: 9fans@cse.psu.edu
Subject: [9fans] bind, ns weirdness
Date: Thu,  6 Mar 2003 21:58:48 +0000	[thread overview]
Message-ID: <20030306215848.25459.qmail@mail.dirac.net> (raw)

If, on my 4th Edition terminal, I run
   unmount /
then the binds
   bind / /
   bind -a /root /
   mount -a '#s/boot' /
get removed from the output of ns, as expected; the command
   ls -l /
shows that, indeed, the directories originally bound from the kfs disk /root are no longer there: only the files from '#/' are present.

There are two strange outcomes, which are probably related:

(1) 'man 1 ns' describes the output of ns as a script that could, in principle, recreate the name space.  The commands
bind /386/bin /bin
bind -a /rc/bin /bin
are still in the output from ns.  But /386 and /rc no longer exist; more importantly, /386 and /rc do not exist at the stage in the script when these binds would be run.

(2) ls and other commands in /bin that came from /386/bin can still be executed, although the bind that provides them is now nonsense; and ls -l /bin reports that the files from /386/bin and /rc/bin are still there - although only the former can be executed.

This situation persists even if I also unmount /root; but if I unmount /bin, the commands all disappear, as expected.

I have tried removing the -C flag from
mount -aC #s/boot /root $rootspec
in /lib/namespace, and rebooting, in case caching is having unexpected results.  This has no effect.

I would be grateful for any explanations!


Keith.



             reply	other threads:[~2003-03-06 21:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-06 21:58 Keith Nash [this message]
2003-03-06 22:16 ` David Presotto
2003-03-06 23:52 Keith Nash
2003-03-06 21:18 ` Russ Cox
2003-03-07  1:32 Joel Salomon
2003-03-06 22:51 ` Russ Cox

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=20030306215848.25459.qmail@mail.dirac.net \
    --to=kjn9@citizenearth.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).