From: Martin C.Atkins <martin@mca-ltd.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] A proposal regarding # in bind
Date: Wed, 26 Feb 2003 10:42:43 +0530 [thread overview]
Message-ID: <20030226104243.78c60939.martin@mca-ltd.com> (raw)
In-Reply-To: <200302251649.h1PGnxM09056@augusta.math.psu.edu>
On Tue, 25 Feb 2003 11:49:59 -0500 Dan Cross <cross@math.psu.edu> wrote:
> > > Newns should only work if /proto is mounted, right? Just like it shouldn't work
> > > after a pctl(NODEVS). Or is newns more powerful than I had appreciated?
> >
> > [RFCNAMEG not RFNAMEG]
> >
> > Newns builds a new name space from scratch. The implementation
> > is in /sys/src/libauth/newns.c.
Right. I forgot about RFCNAMEG, and assumed that it just read /prog/pid/ns
and unmounted it found there! But...
> > Once newns opens the file describing the name space it is
> > to construct, it clears the name space with rfork(RFCNAMEG)
> > and then starts rebuilding. If rfork(RFCNAMEG) doesn't clear
> > /ur, then /ur is still a special case. If it does clear /ur, then
> > how do you get it back?
>
> Hmm. I wonder if one can post a file descriptor for a kernel
> device under /ur ala what srv does. Then, newns() could simply
> open that file descriptor, clear the namespace, and then mount
> it. That's not shockingly different from what we do now.
This sounds neat to me. It's not really a special case any more, just
the application of a general mechanism. (I don't like special cases
either! :-)
> Similarly, the bootstrapping case could be handled by having the
> kernel pass init() an open file descriptor, which it could mount
> on /ur. I'm not so concerned about being able to remount it in
> a process (or descendent thereof) that's unmounted it, so I see
> little difference between ``bigur'' and ``smallur''. If you
> want /proc, mount it. If you want #|, mount it somewhere, then
> do your unmount. Environment's might be a little wierd to deal
> with, though.
Agreed! That was exactly my point of view too - I only suggested smallur
to show that there are several possible approaches.
>
> - Dan C.
>
Re: /ur introducing more special cases than it removes: I believe
that most of the new special cases are to continue the support for
the old '#' syntax. During the transition period, there would of course
be more complications, since both the old and the new syntaxes
have to work simultaneously!
However, once backwards compatibility for '#' could be removed
completely, then using Dan's suggestion, I would have thought the
'/ur' approach would be gloriously free of special cases (except
perhaps, the fact that init is spawned with an open file descriptor).
Anyway, the whole thing was just a suggestion/idea/question, and the
discussion has been educational for me, at least. (It sure beats spam
and "how do we avoid spam" messages, however important the later
might be! :-)
Martin
--
Martin C. Atkins martin@mca-ltd.com
Mission Critical Applications Ltd, U.K. http://www.mca-ltd.com
next prev parent reply other threads:[~2003-02-26 5:12 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-24 19:04 rog
2003-02-24 19:04 ` rob pike, esq.
2003-02-24 19:53 ` Jack Johnson
2003-02-25 4:37 ` Martin C.Atkins
2003-02-25 11:02 ` chris
2003-02-25 14:01 ` Martin C.Atkins
2003-02-25 14:11 ` Russ Cox
2003-02-25 14:17 ` Martin C.Atkins
2003-02-25 14:34 ` Russ Cox
2003-02-25 14:36 ` Russ Cox
2003-02-25 14:52 ` Ronald G. Minnich
2003-02-25 19:57 ` northern snowfall
2003-02-25 16:49 ` Dan Cross
2003-02-26 5:12 ` Martin C.Atkins [this message]
2003-02-24 19:29 ` Fco.J.Ballesteros
2003-02-24 22:34 ` George Michaelson
2003-02-24 23:32 ` Bruce Ellis
2003-02-25 5:02 ` Martin C.Atkins
2003-02-25 11:19 ` chris
2003-02-25 14:06 ` Martin C.Atkins
2003-02-26 0:04 ` Bruce Ellis
2003-02-26 6:06 ` Skip Tavakkolian
2003-02-25 5:00 ` Martin C.Atkins
2003-02-25 9:05 ` [9fans] lpdaemon probs Conor Williams
2003-02-25 10:07 ` Geoff Collyer
2003-02-25 10:33 ` Conor Williams
2003-02-25 23:50 ` Geoff Collyer
2003-02-27 9:59 ` [9fans] lpdaemon probs (fix) Conor Williams
2003-02-27 20:57 ` Geoff Collyer
-- strict thread matches above, loose matches on Subject: below --
2003-02-26 23:46 [9fans] A proposal regarding # in bind a
2003-02-26 22:44 a
2003-02-26 23:02 ` Russ Cox
2003-02-26 21:26 John Stalker
2003-02-27 8:29 ` Fco.J.Ballesteros
2003-02-26 14:56 rog
2003-02-26 15:02 ` Russ Cox
2003-02-26 6:21 okamoto
2003-02-26 13:32 ` Digby Tarvin
2003-02-26 13:58 ` Russ Cox
2003-02-26 14:14 ` Russ Cox
2003-02-26 14:33 ` Boyd Roberts
2003-02-26 15:28 ` Ronald G. Minnich
2003-02-24 19:25 Joel Salomon
2003-02-25 4:33 ` Martin C.Atkins
2003-02-24 15:19 Martin C.Atkins
2003-02-24 15:28 ` Boyd Roberts
2003-02-24 18:36 ` rob pike, esq.
2003-02-25 4:57 ` Martin C.Atkins
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=20030226104243.78c60939.martin@mca-ltd.com \
--to=martin@mca-ltd.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).