Dnia wtorek, 29 maja 2012 10:45:08 Roberto De Ioris pisze: > Il giorno 28/mag/2012, alle ore 10:09, Łukasz Mierzwa ha scritto: > > Would it be possible to allow user to define mounted filesystem that would > > be preserved when jailing worker in namespace? > > So I could have: > > > > namespace = /ns/app1 > > namespace-keep-mount = /mnt/nfs1,/nfs > > > > So my app would be jailed to /ns/app1 but inside that namespace it could > > still access files mounted as /mnt/nfs1 on the host side under /nfs > > directory inside the jail. > > I need to have access to shared filesystem from my app and mounting it > > with -- exec-* options isn't very reliable since any error with mount > > will cause my worker to constantly reload until it's fixed. > > > > Łukasz Mierzwa > > _______________________________________________ > > uWSGI mailing list > > [email protected] > > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > Added in latest tip. > > The mountpoint dance is very complex, i do not know if my solution will fit > in every possibile scenario. > > Let me know
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? Łukasz Mierzwa _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
