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 can't safely delay the release of the dummy entry without help of
vfs. Are these dummy entries always properly released?
It seems I forgot about the subtree check, so it seems a fs that can't
provide a get_parent, can only be exported completely?
> It doesn't seem like a major change to delay that full path lookup of
> the dentry until nfsd_lookup('..') is actually called (in the case
> where the 'subtree_check' flag isn't used).
> However, outright banning lookups of '..' by any one filesystem isn't
> an option: path lookups are used for a lot more than just
> `getcwd'. Imagine for instance trying to follow a relative soft link
> across such a filesystem.
AFAIK this is already done in the generic code (in path_walk(), which is
also called by vfs_follow_link()).
bye, Roman
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
References:
- Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4Trond Myklebust <trond.myklebust _at_ fys.uio.no>
- Prev by Date: Re: finding Tekram SCSI dc395U linux patch driver:
- Next by Date: Re: Is this the ultimate stack-smash fix?
- Prev by thread: Re: [NFS] Re: problems with reiserfs + nfs using 2.4.2-pre4
- Next by thread: Re: problems with reiserfs + nfs using 2.4.2-pre4
- Indexes:[Main][Thread]