phdeniel/nfs-ganesha — Issue #21: Ghost entries in NFSv3 (readdirplus) too
Author: phdeniel
Created: 2011-11-08 07:22:44+00:00
State: open

I found a bug in the NFSv3 implementation, it's probably there for a very long time. The thing is very similar to the bug that Jim found during Bake-A-Thon about missing entries when calling readdirplus with NFSv4 (the server replies too much entries, the client discards some of them, forcing offsets back and forcing the server to "rewind a little" on the directory. See issue#14 for details). The same logic as the buggy NFSv4 readdirplus exists in the NFSv3 readdirplus, I have thought that the same bug would occur. It is, but it is harder to reproduce. To see the bug:
- create bunches of files in a directory
for i in {00001..20000} ; do
touch file.$i
done
- umount
- remount
- do "ls -l | wc -l" (a bas sequence that I know call "Jim's magic command" ;-) )
- files are missing (you can see them by diffing recursively as well