linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][CFT] per-process namespaces for Linux
@ 2001-02-25 10:44 Manfred Spraul
  2001-02-25 16:04 ` Alexander Viro
  0 siblings, 1 reply; 29+ messages in thread
From: Manfred Spraul @ 2001-02-25 10:44 UTC (permalink / raw)
  To: viro, linux-kernel


>  * large cleanup of boot process (ramdisk handling, etc.)

Have you thought about supporting .tar.gz into ramfs? Creating custom
boot images would be simpler.

--
	Manfred

^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [PATCH][CFT] per-process namespaces for Linux
@ 2001-02-26  1:14 Andries.Brouwer
  2001-02-26  1:39 ` Alexander Viro
  0 siblings, 1 reply; 29+ messages in thread
From: Andries.Brouwer @ 2001-02-26  1:14 UTC (permalink / raw)
  To: Werner.Almesberger, viro; +Cc: linux-kernel

> BTW, we probably want to add mount --move <old> <new> - atomically moving
> a subtree from one place to another. Code is there, we just need to
> decide on API. Andries?

Since we already have "mount --bind olddir newdir" this is not
an unreasonable extension of the mount(8) syntax.
And since the kernel is no longer so interested in coeds as
some former mount author, we have lots of free bits.
There are even old bits.

#define MS_MOVE	0x2000

Andries

^ permalink raw reply	[flat|nested] 29+ messages in thread
* Re: [PATCH][CFT] per-process namespaces for Linux
@ 2001-02-25  5:28 Rick Hohensee
  2001-02-25  5:40 ` Alexander Viro
  0 siblings, 1 reply; 29+ messages in thread
From: Rick Hohensee @ 2001-02-25  5:28 UTC (permalink / raw)
  To: linux-kernel

>I'm more than willing to answer questions on the design of the thing -
>just
>ask. So far that's the best I can do - all documentation is a pile of
>notes
>+ CVS log.
>
>                                                        Cheers,
>                                                                Al
>PS: hopefully - back for good.

That sounds like an especially fascinating pile of notes. Perhaps you
could pile it next to the patch on the ftp site?

Rick Hohensee

:; cLIeNUX /dev/tty5  01:08:45   /
:;ls -d */
Linux/        dev/          help/         owner/        temp/
boot/         device/       incoming/     source/
command/      floppy/       log/          subroutines/
configure/    guest/        mounts/       suite/
:; cLIeNUX /dev/tty5  01:08:55   /
:;


^ permalink raw reply	[flat|nested] 29+ messages in thread
* [PATCH][CFT] per-process namespaces for Linux
@ 2001-02-25  4:16 Alexander Viro
  2001-02-26 16:26 ` Peter J. Braam
  0 siblings, 1 reply; 29+ messages in thread
From: Alexander Viro @ 2001-02-25  4:16 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: linux-kernel

	He's back. And this time he's got a chainsaw.

	Yes, folks. We got per-process namespaces. Working. With proper
behaviour on exit(), yodda, yodda. Enjoy. Help with testing would be more
than welcome.

Current patch is on ftp.math.psu.edu/pub/viro/namespaces-S2.gz
It's against 2.4.2.

Contents:
	* proper refcounting of struct super_block
	* GC for vfsmounts (finally)
	* fix for races between get_super() and umount()
	* SMP-safe lock_super()
	* general cleanup of fs/super.c
	* "lazy" option for umount() (detach from mountpoint now, do the
rest when it will cease to be busy - use MNT_DETACH in 'flags' argument
to get that behaviour).
	* Plan 9 per-process namespaces (sans unions so far)
	* large cleanup of boot process (ramdisk handling, etc.)

Variant without namespaces (they were the last part) is in the same
directory, called s_lock-S2.gz.

rfork.c (in the same place) will copy a namespace and start shell in it.
Use for testing... It's an equivalent of rfork(RFNAMEG) on Plan 9.

One detail - patch requires ramfs built into the kernel (boot process cleanup
part needs that).

It works here (ran for about 12 hours with no problems). It's _NOT_ for
inclusion into 2.4. Some pieces might go (get_super() races have to be
fixed, after all), but most of this stuff is 2.5 fodder. However, it
seems to be working. No doubt there are bugs and it's far from being
a final version. I would call it _very_ early beta. Please, help with
testing.

Comments on the code/design/amount of dope it took to write the thing (zero,
actually) are welcome. I _will_ document it, but it's still not in the
final form. Pretty close to it, hopefully, but...

I'm more than willing to answer questions on the design of the thing - just
ask. So far that's the best I can do - all documentation is a pile of notes
+ CVS log.

							Cheers,
								Al
PS: hopefully - back for good.


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2001-02-28 20:17 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-25 10:44 [PATCH][CFT] per-process namespaces for Linux Manfred Spraul
2001-02-25 16:04 ` Alexander Viro
2001-02-25 19:01   ` Sandy Harris
2001-02-25 19:13     ` Alexander Viro
2001-02-25 21:57       ` Werner Almesberger
2001-02-25 22:39         ` Alexander Viro
2001-02-25 23:51           ` Werner Almesberger
2001-02-26  0:26             ` Alexander Viro
2001-02-26 11:54               ` Marco d'Itri
2001-02-26 12:51                 ` Alexander Viro
2001-02-26 16:43                   ` Alexander Viro
2001-02-27 20:08                     ` Alexander Viro
2001-02-28  7:03                     ` Albert D. Cahalan
2001-02-28  7:14                       ` Alexander Viro
2001-02-28 18:13                         ` David L. Parsley
2001-02-28 18:07                           ` Alexander Viro
2001-02-28 19:06                             ` Ion Badulescu
2001-02-28 19:18                               ` Alexander Viro
2001-02-28 20:17                                 ` Ion Badulescu
2001-02-28  7:51                       ` Alexander Viro
2001-02-25 19:48     ` Arjan van de Ven
2001-02-27  9:50   ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2001-02-26  1:14 Andries.Brouwer
2001-02-26  1:39 ` Alexander Viro
2001-02-25  5:28 Rick Hohensee
2001-02-25  5:40 ` Alexander Viro
2001-02-25  4:16 Alexander Viro
2001-02-26 16:26 ` Peter J. Braam
2001-02-26 20:23   ` Christoph Hellwig

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).