On 2/19/07, Serge E. Hallyn <[EMAIL PROTECTED]> wrote:
> From: Serge E. Hallyn <[EMAIL PROTECTED]>
> Subject: [PATCH 3/4] namespace containers: add nsproxy to nscont struct
>
> Each ns container is associated with an nsproxy.  Add that
> nsproxy to the nscont struct, set it when a container is auto-
> created on clone/unshare, and inc/dec the nsproxy to account for
> each container referencing it.
>
> Note that once the nscont->nsproxy is set, it will never change
> for the duration of the container's lifetime.
>
> Changelog:
>         Feb 14: added ss->init_from_task() hook so ns_container
>           can initialize a container's private data from a task
>           on clone().
>

Useful feature, but I think it would be simpler to just add an extra
parameter to ss->create(), to indicate the parent process that's
cloning, or NULL if it's being created by hand. I'll add that to the
next patchset.

Paul

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to