Possible bug in the Samba4 POSIX backend ...
rsharpe at richardsharpe.com
Tue Apr 5 20:21:01 GMT 2005
On Tue, 5 Apr 2005, Jeremy Allison wrote:
> On Tue, Apr 05, 2005 at 10:14:49AM -0700, Richard Sharpe wrote:
> > Hi,
> > 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.
Ahhh, thank you ...
Richard Sharpe, rsharpe[at]richardsharpe.com, rsharpe[at]samba.org,
More information about the samba-technical