Directory cache and SMB2

Ralph Böhme slow at
Thu Mar 29 13:43:07 UTC 2018


It seems for SMB2 we still populate the directory cache, but we never use it. Am
I missing something?

It gets populated via smbd_smb2_query_directory_send ->
smbd_dirptr_lanman2_entry -> smbd_dirptr_get_entry -> DirCacheAdd for SMB2.

But the only point where it's used is via call_trans2findnext -> dptr_SearchDir
-> SearchDir which is SMB1 only.


Ralph Boehme, Samba Team
Samba Developer, SerNet GmbH
GPG Key Fingerprint:           FAE2 C608 8A24 2520 51C5
                               59E4 AA1E 9B71 2639 9E46

More information about the samba-technical mailing list