From: Andries Brouwer <aebr@win.tue.nl>
To: Paul Jakma <paul@clubi.ie>
Cc: Arjan van de Ven <arjanv@redhat.com>,
christophe.varoqui@free.fr, dm-devel@redhat.com,
linux-kernel@vger.kernel.org
Subject: Re: namespaces (was Re: [Q] don't allow tmpfs to page out)
Date: Thu, 15 Jul 2004 19:19:09 +0200 [thread overview]
Message-ID: <20040715171909.GA5518@pclin040.win.tue.nl> (raw)
In-Reply-To: <Pine.LNX.4.60.0407151329100.2622@fogarty.jakma.org>
On Thu, Jul 15, 2004 at 01:31:08PM +0100, Paul Jakma wrote:
> speaking of which, how does one use namespaces exactly? The kernel
> appears to maintain mount information per process, but how do you set
> this up?
>
> neither 'man mount/namespace' nor 'appropos namespace' show up
> anything.
Try "man 2 clone" and look for CLONE_NEWNS.
Somewhere else I wrote
Since 2.4.19/2.5.2, the clone() system call, a generalization of
Unix fork() and BSD vfork(), may have the CLONE_NEWNS flag, that
says that all mount information must be copied. Afterwards, mount,
chroot, pivotroot and similar namespace changing calls done by this
new process do influence this process and its children, but not other
processes. In particular, the virtual file /proc/mounts that lists the
mounted filesystems, is now a symlink to /proc/self/mounts - different
processes may live in entirely different file hierarchies.
Andries
next prev parent reply other threads:[~2004-07-15 17:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-15 7:58 [Q] don't allow tmpfs to page out christophe.varoqui
2004-07-15 8:00 ` Arjan van de Ven
2004-07-15 10:00 ` christophe.varoqui
2004-07-15 12:31 ` namespaces (was Re: [Q] don't allow tmpfs to page out) Paul Jakma
2004-07-15 12:31 ` Arjan van de Ven
2004-07-15 12:50 ` Paul Jakma
2004-07-15 22:35 ` [dm-devel] " christophe varoqui
2004-07-15 23:00 ` Chris Wedgwood
2004-07-15 17:19 ` Andries Brouwer [this message]
2004-07-15 21:52 ` Rutger Nijlunsing
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=20040715171909.GA5518@pclin040.win.tue.nl \
--to=aebr@win.tue.nl \
--cc=arjanv@redhat.com \
--cc=christophe.varoqui@free.fr \
--cc=dm-devel@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paul@clubi.ie \
/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®