Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2013-01-13 Thread Stanislav Kinsbursky
Thanks! 11.01.2013 21:20, J. Bruce Fields пишет: On Fri, Jan 11, 2013 at 12:03:12PM -0500, J. Bruce Fields wrote: On Fri, Jan 11, 2013 at 06:56:58PM +0400, Stanislav Kinsbursky wrote: 11.12.2012 19:35, J. Bruce Fields пишет: On Tue, Dec 11, 2012 at 10:20:36AM -0500, J. Bruce Fields wrote: On

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2013-01-13 Thread Stanislav Kinsbursky
11.01.2013 21:03, J. Bruce Fields пишет: On Fri, Jan 11, 2013 at 06:56:58PM +0400, Stanislav Kinsbursky wrote: 11.12.2012 19:35, J. Bruce Fields пишет: On Tue, Dec 11, 2012 at 10:20:36AM -0500, J. Bruce Fields wrote: On Tue, Dec 11, 2012 at 07:07:00PM +0400, Stanislav Kinsbursky wrote: I don'

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2013-01-11 Thread J. Bruce Fields
On Fri, Jan 11, 2013 at 12:03:12PM -0500, J. Bruce Fields wrote: > On Fri, Jan 11, 2013 at 06:56:58PM +0400, Stanislav Kinsbursky wrote: > > 11.12.2012 19:35, J. Bruce Fields пишет: > > >On Tue, Dec 11, 2012 at 10:20:36AM -0500, J. Bruce Fields wrote: > > >>On Tue, Dec 11, 2012 at 07:07:00PM +0400,

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2013-01-11 Thread J. Bruce Fields
On Fri, Jan 11, 2013 at 06:56:58PM +0400, Stanislav Kinsbursky wrote: > 11.12.2012 19:35, J. Bruce Fields пишет: > >On Tue, Dec 11, 2012 at 10:20:36AM -0500, J. Bruce Fields wrote: > >>On Tue, Dec 11, 2012 at 07:07:00PM +0400, Stanislav Kinsbursky wrote: > >>>I don't really understand, how mountd'

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2013-01-11 Thread Stanislav Kinsbursky
11.12.2012 19:35, J. Bruce Fields пишет: On Tue, Dec 11, 2012 at 10:20:36AM -0500, J. Bruce Fields wrote: On Tue, Dec 11, 2012 at 07:07:00PM +0400, Stanislav Kinsbursky wrote: I don't really understand, how mountd's root can be wrong. I.e. its' always right as I see it. NFSd kthreads have to s

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 19:35, J. Bruce Fields пишет: On Tue, Dec 11, 2012 at 10:20:36AM -0500, J. Bruce Fields wrote: On Tue, Dec 11, 2012 at 07:07:00PM +0400, Stanislav Kinsbursky wrote: I don't really understand, how mountd's root can be wrong. I.e. its' always right as I see it. NFSd kthreads have to s

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread J. Bruce Fields
On Tue, Dec 11, 2012 at 10:20:36AM -0500, J. Bruce Fields wrote: > On Tue, Dec 11, 2012 at 07:07:00PM +0400, Stanislav Kinsbursky wrote: > > I don't really understand, how mountd's root can be wrong. I.e. > > its' always right as I see it. NFSd kthreads have to swap/use > > relative path/whatever

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread J. Bruce Fields
On Tue, Dec 11, 2012 at 07:07:00PM +0400, Stanislav Kinsbursky wrote: > 11.12.2012 18:56, J. Bruce Fields пишет: > >On Tue, Dec 11, 2012 at 06:12:40PM +0400, Stanislav Kinsbursky wrote: > >>UID: 9899 > >> > >>11.12.2012 18:00, Stanislav Kinsbursky пишет: > >>>11.12.2012 00:28, J. Bruce Fields пишет

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:56, J. Bruce Fields пишет: On Tue, Dec 11, 2012 at 06:12:40PM +0400, Stanislav Kinsbursky wrote: UID: 9899 11.12.2012 18:00, Stanislav Kinsbursky пишет: 11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does look

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Al Viro
On Tue, Dec 11, 2012 at 09:56:21AM -0500, J. Bruce Fields wrote: > That looks simpler, but I still don't understand why we need it. > > I'm confused about how d_path works; I would have thought that > filesystem namespaces would have their own vfsmount trees and hence that > the (vfsmount, dentry

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:54, Al Viro пишет: On Tue, Dec 11, 2012 at 06:00:00PM +0400, Stanislav Kinsbursky wrote: 11.12.2012 00:28, J. Bruce Fields ??: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread J. Bruce Fields
On Tue, Dec 11, 2012 at 06:12:40PM +0400, Stanislav Kinsbursky wrote: > UID: 9899 > > 11.12.2012 18:00, Stanislav Kinsbursky пишет: > >11.12.2012 00:28, J. Bruce Fields пишет: > >>On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: > >>>NFSd does lookup. Lookup is done starting f

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Al Viro
On Tue, Dec 11, 2012 at 06:00:00PM +0400, Stanislav Kinsbursky wrote: > 11.12.2012 00:28, J. Bruce Fields ??: > >On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: > >>NFSd does lookup. Lookup is done starting from current->fs->root. > >>NFSd is a kthread, cloned by kthre

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:12, Stanislav Kinsbursky пишет: 11.12.2012 18:00, Stanislav Kinsbursky пишет: 11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a kthread, cloned

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:00, Stanislav Kinsbursky пишет: 11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a kthread, cloned by kthreadd, and thus have global (but luckely

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a kthread, cloned by kthreadd, and thus have global (but luckely unshared) root. So we have to swap root to tho

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-10 Thread J. Bruce Fields
On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: > NFSd does lookup. Lookup is done starting from current->fs->root. > NFSd is a kthread, cloned by kthreadd, and thus have global (but luckely > unshared) root. > So we have to swap root to those, which process, started NFSd, has

[PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-06 Thread Stanislav Kinsbursky
NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a kthread, cloned by kthreadd, and thus have global (but luckely unshared) root. So we have to swap root to those, which process, started NFSd, has. Because that process can be in a container with it's own root. Signed-off-b