From: David Leimbach <leimy2k@gmail.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: /etc/mtab and per-process namespaces
Date: Sun, 2 Oct 2005 15:08:49 -0700 [thread overview]
Message-ID: <3e1162e60510021508r6ef8e802p9f01f40fcf62faae@mail.gmail.com> (raw)
I've been just playing around with the v9fs work and private
namespaces from yesterday's [October 1, 2005] top of tree from Linus'
git archive and I was looking at /etc/mtab's reaction to having
multiple namespaces with bind mounts.
I have a directory ("slash") and bind it to "/" in a new namespace
created with a clone call. /etc/mtab then has a line appended to it
for this bind.
/ /home/dave/slash none rw,bind 0 0
Then in the "global default" namespace I do the same thing. This adds
yet another line to my /etc/mtab with exactly the same contents.
I then exited both shells and /etc/mtab is left with both lines:
/ /home/dave/slash none rw,bind 0 0
/ /home/dave/slash none rw,bind 0 0
Did I just "leak" a namespace or is mtab just way off from reality now?
Also, if I check the procfs it seems to have no record of either of
these binds ever occurring. [/proc/mounts]
Also, does it make sense to even think about adding a pid column
number for the "private" namespaces or perhaps just to mark it as
"priv" or something to that effect.
It's not clear to me what the best way to deal with this would be.
Right now it appears to be broken or at least very inconsistent.
I can think of a lot of ways to use private namespaces to avoid
conflicts with software installations... much like the DragonFlyBSD
folks use variant symlinks to have two-level data about what version
of libx libx.so links to. I just think private namespaces make this a
bit more elegant to handle, especially in the context of Xen and
upcoming virtualization hardware from Intel and AMD. As such I find
this feature of linux [and Plan 9/Inferno - where it came from] to be
pretty important.
- Dave
next reply other threads:[~2005-10-02 22:08 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-02 22:08 David Leimbach [this message]
2005-10-04 19:14 ` David Leimbach
2005-10-04 19:18 ` Christoph Hellwig
2005-10-04 19:49 ` Michael Tokarev
2005-10-04 19:52 ` David Leimbach
2005-10-04 19:43 ` Al Viro
2005-10-04 20:07 ` David Leimbach
2005-10-04 20:20 ` Al Viro
2005-10-05 16:29 ` Ram
2005-10-14 2:10 ` Mike Waychison
2005-10-17 0:47 ` Ian Kent
2005-10-20 3:53 ` Rob Landley
2005-10-20 3:42 ` Rob Landley
[not found] <4TkbZ-6KJ-9@gated-at.bofh.it>
[not found] ` <4U0uy-33E-7@gated-at.bofh.it>
[not found] ` <4U0XK-3Gp-47@gated-at.bofh.it>
2005-10-04 21:20 ` Bodo Eggert
2005-10-05 0:14 ` Al Viro
2005-10-22 13:23 Dr. Greg Wettstein
2005-10-29 0:06 ` Ram Pai
2005-10-29 10:16 ` Rob Landley
2005-10-31 19:11 ` Ram Pai
2005-10-31 23:27 ` Rob Landley
2005-11-01 0:01 ` Ram Pai
2005-11-01 7:36 ` Miklos Szeredi
2005-11-01 8:44 ` Rob Landley
[not found] <50rBX-76N-37@gated-at.bofh.it>
[not found] ` <50rBX-76N-35@gated-at.bofh.it>
2005-10-22 17:26 ` Bodo Eggert
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=3e1162e60510021508r6ef8e802p9f01f40fcf62faae@mail.gmail.com \
--to=leimy2k@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®