Possible bug in the Samba4 POSIX backend ...
jra at samba.org
Tue Apr 5 20:22:35 GMT 2005
On Tue, Apr 05, 2005 at 10:14:49AM -0700, Richard Sharpe wrote:
> When handling find first and find next, Samba4 hibernates directories.
> The approach taken, though, has a problem. It closes the directory and
> then re-opens it, and does a seekdir to a location returned with telldir
> earlier on.
> However, as the man page says for both FreeBSD and Linux, any offset
> returned by telldir is not valid if you closedir the directory stream.
> As a result, for large directories, SAMBA 4 returns a continuous stream of
> the same entries ...
Indeed - you'll need to look at the Samba3 code and migrate the fix I
did from there. I stole tridge's original code, ran into this problem
then fixed it in Samba3.
More information about the samba-technical