Dnia wtorek, 29 maja 2012 12:53:13 Łukasz Mierzwa pisze:
> I have: namespace = /apps/app1
> I've mounted tmpfs in /apps/app1/xyz
> 
> "keep the specified mountpoint in your namespace" suggest tha I should use
> path of my mounted tmpfs as a value, but if I use
> "namespace-keep-mount = /apps/app1/xyz"
> or
> "namespace-keep-mount = /xyz"
> all I'm getting is:
> "mount(): No such file or directory [lib/linux_ns.c line 138]"
> 
> Can you give an example how to use it? What values should I put in?

I figured out that you are doing bind mount, so my /mnt/x on the host side, 
will be binded to /mnt/x inside the namespace. So with:

> I have: namespace = /apps/app1
> I've mounted tmpfs in /apps/app1/xyz

I need to use:
 
"namespace-keep-mount = /apps/app1/xyz"

and it will be binded to /apps/app1/apps/app1/xyz so I need to have this 
directory.

Can it be binded to different directory inside the namespace?
I want to have multiple apps, and each of them would use different shared 
filesystem, so I will have mounts:

/apps/app1/shared
/apps/app2/shared
[...]

And I would like to have each of them to be mounted inside the app namespace 
into /shared dir, so this syntax would work for me:

"namespace-keep-mount = /apps/app1/shared:/shared"

Or just cut the "/apps/" part when doing bind mount, but being able to do bind 
mount with given source and dest is better, this way one could bind mount 
directory that is outside of app namespace.

Łukasz Mierzwa
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to