OpenVZ Forum


Home » Mailing lists » Devel » FS 'namespace'
FS 'namespace' [message #16858] Thu, 07 December 2006 19:47 Go to next message
Herbert Poetzl is currently offline  Herbert Poetzl
Messages: 239
Registered: February 2006
Senior Member
just a question: why do we keep the fs (struct_fs)
outside of nsproxy?

TIA,
Herbert

_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: FS 'namespace' [message #16861 is a reply to message #16858] Fri, 08 December 2006 14:40 Go to previous messageGo to next message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
Quoting Herbert Poetzl (herbert@13thfloor.at):
> 
> just a question: why do we keep the fs (struct_fs)
> outside of nsproxy?

Good question.  So we have a mounts namespace, and you
would consider the per-process fs root to be an fs
namespace?  Practically, it would mean that chroot
and pivot_mount would create a new nsproxy, but i guess
that's not a real problem.

It might force us to stop our current lazy checks for
'current->nsproxy==&init_nsproxy', since the pivot_mount
in early boot would make that not true.

-serge
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: FS 'namespace' [message #16862 is a reply to message #16858] Fri, 08 December 2006 17:19 Go to previous message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
Quoting Herbert Poetzl (herbert@13thfloor.at):
> On Fri, Dec 08, 2006 at 08:40:59AM -0600, Serge E. Hallyn wrote:
> > Quoting Herbert Poetzl (herbert@13thfloor.at):
> > >
> > > just a question: why do we keep the fs (struct_fs)
> > > outside of nsproxy?
> >
> > Good question.  So we have a mounts namespace, and you
> > would consider the per-process fs root to be an fs
> > namespace?  Practically, it would mean that chroot
> > and pivot_mount would create a new nsproxy, but i guess
> > that's not a real problem.
> >
> > It might force us to stop our current lazy checks for
> > 'current->nsproxy==&init_nsproxy', since the pivot_mount
> > in early boot would make that not true.
> 
> well, IMHO those are broken anyway, I can imagine

Yeah I wasn't defending them by calling them lazy  :)

> a number of applications using private namespaces
> (the old ones) without running in 'containers'

Do you have a patch to move the fs_struct into nsproxy?  I'd be
interested in running some benchmarks with and without such a
patch to see the effect of dereferencing the nsproxy so frequently.

-serge
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: FS 'namespace' [message #16874 is a reply to message #16861] Fri, 08 December 2006 16:41 Go to previous message
Herbert Poetzl is currently offline  Herbert Poetzl
Messages: 239
Registered: February 2006
Senior Member
On Fri, Dec 08, 2006 at 08:40:59AM -0600, Serge E. Hallyn wrote:
> Quoting Herbert Poetzl (herbert@13thfloor.at):
> > 
> > just a question: why do we keep the fs (struct_fs)
> > outside of nsproxy?
> 
> Good question.  So we have a mounts namespace, and you
> would consider the per-process fs root to be an fs
> namespace?  Practically, it would mean that chroot
> and pivot_mount would create a new nsproxy, but i guess
> that's not a real problem.
> 
> It might force us to stop our current lazy checks for
> 'current->nsproxy==&init_nsproxy', since the pivot_mount
> in early boot would make that not true.

well, IMHO those are broken anyway, I can imagine 
a number of applications using private namespaces
(the old ones) without running in 'containers'

best,
Herbert

> -serge
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Previous Topic: [PATCH try4, 0/3] split verbose from LOG_LEVEL
Next Topic: [PATCH 2/12] L2 network namespace: network devices virtualization
Goto Forum:
  


Current Time: Mon Sep 16 04:44:27 GMT 2024

Total time taken to generate the page: 0.04047 seconds