Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-21 Thread Trond Myklebust
> " " == Neil Brown <[EMAIL PROTECTED]> writes: > - cannot do ".." lookups efficiently, or doesn't want to and > - can protect against this sort of loop (and any other issues >that > the VFS usually protects against) itself > then it can (with my patch)

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-21 Thread Trond Myklebust
" " == Neil Brown [EMAIL PROTECTED] writes: - cannot do ".." lookups efficiently, or doesn't want to and - can protect against this sort of loop (and any other issues that the VFS usually protects against) itself then it can (with my patch) simply define

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-20 Thread Roman Zippel
Hi, On Tue, 20 Feb 2001, Trond Myklebust wrote: > If I read the code correctly, we set the dentry d_flag > DCACHE_NFSD_DISCONNECTED on such dummy dentries. We only force a > lookup of the full path if the inode represents a directory or the > NFSEXP_NOSUBTREECHECK export flag is not set. IMO

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-20 Thread Trond Myklebust
> " " == Roman Zippel <[EMAIL PROTECTED]> writes: > If I read the source correctly, namespace operation are done > with dir file handle + file name. I'm playing with the idea if > we could relax the rule, that all dentries must be connected to > the root. Inode to dentry

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-20 Thread Roman Zippel
Hi, On 20 Feb 2001, Trond Myklebust wrote: > IIRC several NFS implementations (not Linux though) rely on being able > to walk back up the directory tree in order to discover the path at > any given moment. If I read the source correctly, namespace operation are done with dir file handle + file

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-20 Thread Trond Myklebust
> " " == Roman Zippel <[EMAIL PROTECTED]> writes: > Hi, On Tue, 20 Feb 2001, Neil Brown wrote: >> 2/ lookup(".."). > A small question: Why exactly is this needed? Short answer: the existence of 'rename' makes it necessary, since it means that the directory path is volatile

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-20 Thread Trond Myklebust
" " == Roman Zippel [EMAIL PROTECTED] writes: Hi, On Tue, 20 Feb 2001, Neil Brown wrote: 2/ lookup(".."). A small question: Why exactly is this needed? Short answer: the existence of 'rename' makes it necessary, since it means that the directory path is volatile as far as

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-20 Thread Roman Zippel
Hi, On 20 Feb 2001, Trond Myklebust wrote: IIRC several NFS implementations (not Linux though) rely on being able to walk back up the directory tree in order to discover the path at any given moment. If I read the source correctly, namespace operation are done with dir file handle + file

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-20 Thread Trond Myklebust
" " == Roman Zippel [EMAIL PROTECTED] writes: If I read the source correctly, namespace operation are done with dir file handle + file name. I'm playing with the idea if we could relax the rule, that all dentries must be connected to the root. Inode to dentry lookups are

Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4

2001-02-20 Thread Roman Zippel
Hi, On Tue, 20 Feb 2001, Trond Myklebust wrote: If I read the code correctly, we set the dentry d_flag DCACHE_NFSD_DISCONNECTED on such dummy dentries. We only force a lookup of the full path if the inode represents a directory or the NFSEXP_NOSUBTREECHECK export flag is not set. IMO you