Technical article 100051

When listing a large directory in LAN Manager or AFPS 3.5.1, some of the files aren't listed.

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

While accessing a share from a LAN Manager or AFPS system, some
of the files don't show in a directory listing.  This usually
happens on large (more than 100 files) directories.

Cause

There is a buffer used during directory reads that can overflow,
causing directory entries to be lost.  The size of this buffer is
tunable.  In AFPS 3.5.2 the buffer can be re-used, so this problem
doesn't exist.

Solution

For AFPS 3.5.1, this problem can be resolved by applying Support
Level Supplement (SLS) APP433A or upgrading to AFPS 3.5.2.  Having
this buffer too small can also affect performance, so you may want
to follow the steps to increase it anyway.

In order to tune the directory buffer, take the following steps:

Stop the server using:
# net stop server
Open the /usr/net/servers/lanman.ini file in your favorite text
editor and find the [lmxserver] section.  Add a line that says:
dirbufsize=4096
Depending on the size of your directories, this number may need to
be larger.  The default is 2048 and the unit is kilobytes, so 4096
is 4 megabytes of buffer.

See also

IT AFPS/15 "What is Support Level Supplement (SLS) APP433A for AFPS?"

"SCO Advanced Server Administrator's Handbook Chapter 7, Monitoring and Tuning the Network"

From the Xinuos technical article database, record 100051. Reproduced with permission. The original is at www.sco.com/ta/100051, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.