[Samba] Directory Scans

lcraft at InPhact.com lcraft at InPhact.com
Fri Mar 7 22:59:38 GMT 2003


I'm having a problem keeping Samba from doing a full directory scan for
direct file access.  The directory I'm going to has 100,000+ files in it, so
directory listings are very costly.  The pertinent info from smb.conf is:

        mangling method = hash2
        case sensitive = Yes
        hide dot files = No
        mangled names = No

All the files in the directory are 8.3 compliant.  I have to set the log
level up to 10 or so to get it to show what it's doing, but it makes the
following calls to is_in_path for every file in the directory when a single
file is accessed.

[2003/03/07 12:27:13, 8] lib/util.c:is_in_path(1145)
  is_in_path: 03adb1ba.dcm
[2003/03/07 12:27:13, 8] lib/util.c:is_in_path(1150)
  is_in_path: no name list.


Any ideas how I can force Samba to go directly to the file instead of doing
a directory listing first?

Lee


More information about the samba mailing list