[Samba] Samba opens many files.

Markus Wenke samba at whoisup.de
Thu Nov 20 09:22:22 GMT 2003


Gerald (Jerry) Carter wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Markus Wenke wrote:
> | Hi,
> |
> | I have a dir with more than 16000 files in it.
> | If I klick with MS-Explorer on this Dir to see
> | which files are in it, smbd opens every file and
> | so it takes some seconds to show this Dir!
> | (and CPU usage is at 100%).
>
> We only do what the client asks us to.
> This is probably explorer.exe looking for icon.


Ok, maybe you are right with explorer, but if I use this Windows-Prog to
open a File,
which does not exist, it has the same effect. (the dir 'R:\\somedir\\x'
includes 16.000 Files):

int _tmain(int argc, _TCHAR* argv[])
{
  int y;
  y = open("R:\\somedir\\x\\test.txt",_O_RDONLY,0);


  close(y);
  return 0;
}






More information about the samba mailing list