On Sat, 2005-05-21 at 02:09, Miklos Szeredi wrote: > > > I still see a problem: what if old_nd.mnt is already detached, and > > > bind is non-recursive. Now it fails with EINVAL, though it used to > > > work (and I think is very useful). > > > > I am not getting this comment. R u assuming that a detached mount > > will have NULL namespace? > > Yes. > > > If so I dont see it being the case. > > See this patch: > > http://marc.theaimsgroup.com/?l=linux-kernel&m=111627383207049&w=2 Ok. look at the enclosed patch. Does it look any better? The special casing for detached mounts ate up some brain cells and made the code less simpler. RP