Re: [vserver] util-vserver and _namespaceCleanup bug (and patch)

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Thu 25 Feb 2010 - 16:01:51 GMT
Message-ID: <47465.192.168.101.12.1267113711.squirrel@intranet>

Xavier Montagutelli wrote:
> Hello,
>
> I encountered a (big) problem because the namespace cleanup functionality
> doesn't work always well.
>
> Test case :
>
> Start a Vserver named "webmail", vdir located under the mount point
> "/vservers/webmail"
>
> The start another VServer "web", vdir mounted under "/vservers/web" (same
> beginning ...)
>
> The first mount point is not umounted in the namespace of the second VServer.
>
> (vnamespace -e <xid_of_web> cat /proc/mounts)
>
>>From what I understand, the problem is located at the _namespaceCleanup
> function, the test for not umounting a sub-mount is not correct.
>
> One solution, verify the path with a trailing "/"

Nice catch, thanks. Applied and will be in the next pre release.

-- 
Daniel Hokka Zakrisson
Received on Thu Feb 25 16:02:12 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 25 Feb 2010 - 16:02:15 GMT by hypermail 2.1.8