Go to file
christos eef4aaba6b Fix getdirentries() issue from FreeBSD PR - 78953 Quoting from that:
If you perform this request on a directory with exactly 50 files
(plus '.' and '..' which brings the total to 52 objects), the first
reply for the SMB server completely satisfies the query (server
side is Windows 2000 Professional).

The smbfs client then performs a TRANS2_FIND_NEXT2 using the last
file name as the resume key.  The response returns a SearchCount
of zero (ctx->f_ecnt == 0) and an EndOfSearch code of zero.

Any attempt to get more entries with calls to TRANS2_FIND_NEXT2
result in Badfid (bad file descriptor).  I suspect the return of
SearchCount of zero means that end-of-search has been reached and
the Sid is now closed.

The solution is to set "SMB_RDD_EOF | SMB_RDD_NOCLOSE" after getting
back a zero SearchCount,  I've tested this in the field on a quite
a few systems, aggressively accessing Windows shares over smbfs
and it appears flawless.

I was initially concerned about the possibility of resource exhaustion
on the Windows server. I was afraid by not officially closing the
search, it would leave a resource hung-up and over time, exhaust
some sort of "open search table" limit.  I've since convinced myself
this is NOT the case.

Windows needs to be able to handle clients that come and go over
time.  If the search is not closed, Windows will close it if it
finds it needs more resources.  I've testing this on directory
searches descending into 10's of thousands of folders, with 100's
of thousands of files.
2006-08-28 15:56:56 +00:00
bin Document new -P behaviour 2006-08-25 11:08:50 +00:00
common complete initialization. 2006-08-27 22:31:55 +00:00
crypto Pull over OpenBSD v1.97, forwarded by jmc@openbsd: 2006-08-10 00:34:32 +00:00
dist PR/34286: Gene ENonymous: Increase YYSTACKSIZE so that we can handle huge 2006-08-26 23:20:56 +00:00
distrib XNS is no more; nuke reference to af_ns.c 2006-08-27 06:40:43 +00:00
doc bjh21-hydra is pining for the fjords. 2006-08-28 12:32:35 +00:00
etc Remove entries for netns and netccitt. Add entry for netbt. 2006-08-25 23:29:33 +00:00
games PR/34175: Zafer Aydogan: touch the window to cause a refresh after help 2006-08-09 14:29:40 +00:00
gnu regenerate. (largely from dsl@, thanks.) libstdc++ should support 2006-08-28 09:26:59 +00:00
include Add efun(3) 2006-08-26 18:11:12 +00:00
lib cause bt_devaddr() and bt_devname() to return error if the controller 2006-08-28 08:24:39 +00:00
libexec Simplify multiple MACHINE_ARCH endian checks with single MACHINE_CPU 2006-08-27 07:22:02 +00:00
regress Trailing non-whitespace IFS doesn't generate an empty parameter (any more). 2006-08-21 19:49:09 +00:00
rescue Add mount_tmpfs(8) to /rescue. Ok with christos. 2006-08-16 16:50:59 +00:00
sbin Add a caveats section describing potential problems with autoconfigured 2006-08-27 22:00:33 +00:00
share correct spelling mistake 2006-08-28 08:21:38 +00:00
sys Fix getdirentries() issue from FreeBSD PR - 78953 Quoting from that: 2006-08-28 15:56:56 +00:00
tools Allow for building a crosstools version of gprof. 2006-08-27 07:04:00 +00:00
usr.bin build complete initializations. 2006-08-28 01:45:41 +00:00
usr.sbin Disable threaded support for sparc and sparc64. 2006-08-28 15:37:05 +00:00
x11 Remove Xpmax stuff. 2006-07-30 03:25:43 +00:00
build.sh When going from -m {evb,sb}mips64-e[bl] to MACHINE, 2006-08-27 05:05:05 +00:00
BUILDING
Makefile
Makefile.inc
UPDATING Mention acorn32 console changes, since they'll break builds with custom 2006-08-15 20:48:01 +00:00