The Samba-Bugzilla – Bug 971
options 'case sensitive' and 'preserve case' are mutually exclusive. hinders performance tuning on large directories
Last modified: 2005-08-24 10:19:15 UTC
After finding out that setting 'case sensitive' to 'yes' causes samba to read
the whole directory on every opened file we tried to suppress this behaviour
on a specific share. This share gets ~30000 files copied to (each ~7Kb) and as
expected the performance degrades quickly (not filesystem depend!). We tried
to use these parameters for the share:
case sensitive = yes
preserve case = no
short preserve case = no
mangle case = yes
After following changes to the source (source/smbd/filename.c) the config
shown above works as expected
- 'preserve case' is ignored if 'case sensitive' is set.
- after unignoring 'preserve case' the check if a path or
a file was not found had to be added.
One filecopy from Windows to the Samba machine without the patch: ~1:30 hrs
with patch: ~14min
This problem exists in every testet Samba installation (2.2.8a, 3.0.1, HEAD)
Created attachment 360 [details]
Fix for 'case sensitive' and 'preserve case' being mutually exclusive
This has been reworked in the latest SAMBA_3_0 svn code so
I'm not sure this report still applies. Feel free to reopen it
if the issue still exists in revision 5140 or later.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.