lkml.org 
[lkml]   [2005]   [May]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] rbind across namespaces
FromMiklos Szeredi <>
DateSat, 21 May 2005 15:12:56 +0200
> 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.

Yes, this isn't trivial stuff.

I realized one more thing: nd->mnt (the destination vfsmount) might be
detached while waiting for the semaphore.  So that needs to be
rechecked after taking the semaphores.

And the same for old_nd->mnt in case of rbind.  Though I'm
not sure what the semantics should be in this case:

  1) rbind always fails if the source is detached

  2) rbind always succeeds, and if the source is detached it just
     copies that single mount

I like 2) better.  Is there anything against it?

Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-05-21 15:17    [from the cache]
©2003-2008