9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ronald G Minnich <rminnich@lanl.gov>
To: 9fans@cse.psu.edu, Alexander Viro <viro@math.psu.edu>
Cc: "Thomas Bushnell, BSG" <tb+usenet@becket.net>
Subject: Re: [9fans] Private Namespaces for Linux
Date: Tue, 20 Nov 2001 14:48:57 -0700	[thread overview]
Message-ID: <0111201448570B.13061@snaresland> (raw)
In-Reply-To: <Pine.GSO.4.21.0111201553030.23604-100000@weyl.math.psu.edu>

On Tuesday 20 November 2001 14:08, Alexander Viro wrote:

> > I put private namespaces in too. I.e. I put in system call to support
> > Plan-9 style session, attach, mount, and then have the VFS read/write
> > etc. go to a VFS with plan9-style operations, communicating 9p to a
> > server (I only have two: a memfs and a ufs). Union mounts work in the
> > plan 9 style. I also have a library which does the "hijack function calls
> > to libc" so that you have it from user mode on other OSes.
>
> Ugh.

Ugh? what's ugh? You can create a local name in your private name space that
connects to a remote place, with the remote server being accessed via 9p, and
the remote server being pretty much any 9p server. Which may or may not be
dishing out stuff from a file system or some other place (the
server-of-services list I mentioned in the paper, or other things). I don't
get your point.

> To start with, namespaces had been available on 2.4 since at least
> March.  See patches on ftp.math.psu.edu/pub/viro/ - namespaces-* is that
> + related VFS cleanups.  Currently most of that is merged into the main
> tree. Remaining stuff will go in when I'll somewhat clean the backlog on
> other things.  And it's a real thing - it isn't limited to #M combinations,
> any fs can be used.

Well, which kernel version. I've been playing Kernel-of-the-week here, and
there's still stuff that won't compile if you turn it on. I did try (but
failed) to use your patches. I'll try again, it looked good if I could get it
to work.

Also bear in mind I wrote this code in 1995-6 or so (so long ago I forget the
exact dates), when I still had to argue with people about why private name
spaces are better than 'chroot'. My first port was to 2.0, not 2.4. This
stuff had lain unused for 2.5 years until the Dobbs article appeared. I did
rebuild it and the user-mode stuff all works, which makes my day. Also I had
*zero* access to Plan 9 when I did it -- which is why I did it!

I'll look at your stuff again, if it's better than mine (probably) I'll use
it. I'm more concerned with having something to use, so if your stuff will do
what I want, I'm fine with that.


> BTW, could you use the standard meanings of terms?  Filesystem is
> filesystem, whether it's disk-based or completely syntetic.

I think I used the term 'server', which I prefer. I thought that was the Plan
9 usage anyway. I have found the term "filesystem" is a bad term, since so
many people interpret it so many different ways -- but I slip up and use it
anyway...

> VFS is more or
> less an equivalent of chan.c and sysfile.c - what you had described looks
> rather like devmnt.c with some strange additions.

Well, things get a bit mixed up when we discuss this stuff. There is not an
exact correspondance between bits of Linux and bits of Plan 9. But no, it is
not devmnt.c. I'm not quite sure why you think this is like the devmnt stuff.

ron


  reply	other threads:[~2001-11-20 21:48 UTC|newest]

Thread overview: 74+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-19 21:46 [9fans] vmware Russ Cox
2001-11-19 23:59 ` [9fans] Private Namespaces for Linux Matt
2001-11-20  5:26   ` Ronald G Minnich
2001-11-20 17:28   ` Thomas Bushnell, BSG
2001-11-20 20:46     ` Ronald G Minnich
2001-11-20 21:08       ` Alexander Viro
2001-11-20 21:48         ` Ronald G Minnich [this message]
2001-11-20 22:28           ` Ronald G Minnich
2001-11-20 23:14             ` Alexander Viro
2001-11-20 10:22 forsyth
2001-11-20 20:49 David Gordon Hogan
2001-11-20 20:57 ` Ronald G Minnich
2001-11-21  5:59   ` Taj Khattra
2001-11-20 20:54 presotto
2001-11-20 21:24 David Gordon Hogan
2001-11-20 21:49 ` Ronald G Minnich
2001-11-20 22:05 erik quanstrom
2001-11-20 22:08 David Gordon Hogan
2001-11-20 23:40 ` Dan Cross
2001-11-21 15:05 ` Boyd Roberts
2001-11-20 22:20 presotto
2001-11-20 22:40 David Gordon Hogan
2001-11-20 22:47 ` Ronald G Minnich
2001-11-20 23:29 ` Alexander Viro
2001-11-20 22:54 David Gordon Hogan
2001-11-20 23:17 ` Ronald G Minnich
2001-11-20 23:49   ` Matthew Hannigan
2001-11-20 23:31 ` Alexander Viro
2001-11-20 23:40 David Gordon Hogan
2001-11-20 23:45 ` Alexander Viro
2001-11-20 23:54 ` Matthew Hannigan
2001-11-21 17:24 ` Thomas Bushnell, BSG
2001-11-22  9:56 ` Thomas Bushnell, BSG
2001-11-20 23:48 forsyth
2001-11-21  0:03 David Gordon Hogan
2001-11-21  1:29 okamoto
2001-11-21  3:46 ` Ronald G Minnich
     [not found] ` <Pine.LNX.4.33.0111202037460.14857-100000@snaresland.acl.la nl.gov>
2001-11-21 17:51   ` Skip Tavakkolian
2001-11-21 22:44     ` Ronald G Minnich
2001-11-21  3:02 Eric Grosse
2001-11-21 14:52 presotto
2001-11-21 20:12 ` Dan Cross
2001-11-21 20:48 ` Skip Tavakkolian
2001-11-21 22:50   ` Andrew Simmons
2001-11-25 15:23   ` david presotto
2001-11-25  4:19     ` George Michaelson
2001-11-21 16:49 forsyth
2001-11-21 20:08 erik quanstrom
2001-11-21 23:02 rob pike
2001-11-21 23:26 ` Matt
2001-11-22  0:36 rob pike
2001-11-22  0:42 rob pike
2001-11-26  5:31 David Gordon Hogan
2001-11-26 10:00 ` Thomas Bushnell, BSG
2001-11-26 10:48   ` Matt
2001-11-26 14:29     ` Ronald G Minnich
     [not found]     ` <Pine.LNX.4.33.0111260728070.16611-100000@snaresland.acl.la nl.gov>
2001-11-27  0:13       ` Andrew Simmons
2001-11-27  1:37         ` Ronald G Minnich
     [not found]         ` <Pine.LNX.4.33.0111261834400.19833-100000@snaresland.acl.la nl.gov>
2001-11-27  2:17           ` Andrew Simmons
2001-11-27  2:28             ` Boyd Roberts
2001-11-27  2:46               ` Andrew Simmons
2001-11-27 11:53             ` Ralph Corderoy
2001-11-27  2:22         ` Quinn Dunkan
2001-11-27  2:54           ` Andrew Simmons
2001-11-27  3:06             ` Boyd Roberts
2001-11-26 14:18 ` Ronald G Minnich
2001-11-26 18:26   ` Dan Cross
2001-11-26 18:27 erik quanstrom
2001-11-27  3:03 geoff
2001-11-27  3:09 Russ Cox
2001-11-27  8:13 ` Skip Tavakkolian
2001-11-27  6:43 David Gordon Hogan
2001-11-27  7:24 nigel
2001-11-27  8:49 nigel

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=0111201448570B.13061@snaresland \
    --to=rminnich@lanl.gov \
    --cc=9fans@cse.psu.edu \
    --cc=tb+usenet@becket.net \
    --cc=viro@math.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).