About this list Date view Thread view Subject view Author view Attachment view

From: Sam Vilain (sam_at_vilain.net)
Date: Fri 05 Nov 2004 - 02:11:12 GMT


Sam Vilain wrote:
> I'd like /proc/PID/mounts to be:
> - a symlink to /proc/mounts if the namespace hasn't been changed from
> the last pivot_root (or boot) in the host system, or if it is the
> same as the ``system'' namespace, if such a thing exists
> - a symlink to /proc/virtual/XID/mounts, if the process is `in' the
> context in namespace terms
> - a normal file, straight after a CLONE_NS, which has the same inode
> number on the /proc filesystem as any process with that namespace,
> and the number of links on it corresponds to the number of processes
> in that namespace.

As has been pointed out to me, /proc/mounts is actually the symlink in
the current kernel.

Maybe underneath that glaring mistake, there's the kernel of a good idea :)

-- 
Sam Vilain, sam /\T vilain |><>T net, PGP key ID: 0x05B52F13
(include my PGP key ID in personal replies to avoid spam filtering)
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 05 Nov 2004 - 02:11:26 GMT by hypermail 2.1.3