Eddie Horng:
> VFS does re-lookup the dropped dentry, but seems only happened if there's a
> user-mode command trigger it, for example "cd ."
> Look at below log, the dropped dentry instance 0xffff8fc22d3066c0 is
> exactly the one getcwd used and is unlinked no matter how many times getcwd
> is called, until I enter a "cd ." command then nfs does delete the unlinked
> dentry and create a linked one. After that, getcwd use the new dentry and
> return correct path.

It may be related to NFS matter.
The possible related NFS mount options are
- nfsvers=3 or 4
- dirsync

On my test system, all these combinations have no problem.
- 4 without dirsync     --> slow but works
- 4 with    dirsync     --> works
- 3 without dirsync     --> works
- 3 with    dirsync     --> works

Would you try them?


J. R. Okajima

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

Reply via email to