From 15e747be04d7039927d056fe74435c248b58bf41 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Nov 2005 20:15:21 +0000 Subject: [PATCH] Make us follow the newly documented pathname processing rules: "As a special case for directories with large numbers of files, if the case options are set as follows, "case sensitive = yes", "case preserve = no", "short preserve case = no" then the "default case" option will be applied and will modify all filenames sent from the client when accessing this share." This is needed as fixing the case preserve rules to only apply to new filenames broke the large directory fix. Glad we caught this before release. Thanks to jht for this one. Jeremy. --- docs/manpages-3/smb.conf.5.xml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/docs/manpages-3/smb.conf.5.xml b/docs/manpages-3/smb.conf.5.xml index 833296d2d96..d4fc5cc5d71 100644 --- a/docs/manpages-3/smb.conf.5.xml +++ b/docs/manpages-3/smb.conf.5.xml @@ -520,14 +520,22 @@ alias|alias|alias|alias... default case = upper/lower - controls what the default case is for new filenames. Default lower. + controls what the default case is for new filenames (ie. files that don't currently exist + in the filesystem). Default lower. + IMPORTANT NOTE ! This option will be used to modify the case of all + incoming client filenames, not just new filenames if the options + "case sensitive = yes", "case preserve = no", "short preserve case = no" are set. + This change is needed as part of the optimisations + for directories containing large numbers of files. preserve case = yes/no - controls whether new files are created with the case that the client passes, or if they are forced to be the + controls whether new files (ie. files that don't currently exist + in the filesystem) are created with the case that the client passes, + or if they are forced to be the default case. Default yes. @@ -535,16 +543,23 @@ alias|alias|alias|alias... short preserve case = yes/no - controls if new files which conform to 8.3 syntax, that is all in upper case and of suitable length, - are created upper case, or if they are forced to be the default case. This option can be - used with preserve case = yes to permit long filenames to retain their case, while short + controls if new files (ie. files that don't currently exist + in the filesystem) which conform to 8.3 syntax, that is all in + upper case and of suitable length, are created upper case, or if + they are forced to be the default case. This + option can be used with preserve case = yes to + permit long filenames to retain their case, while short names are lowercased. Default yes. - By default, Samba 3.0 has the same semantics as a Windows NT server, in that it is case insensitive but case preserving. + By default, Samba 3.0 has the same semantics as a Windows NT server, in that it is case insensitive + but case preserving. As a special case for directories with large numbers of files, if the case + options are set as follows, "case sensitive = yes", "case preserve = no", "short preserve case = no" + then the "default case" option will be applied and will modify all filenames sent from the client + when accessing this share. -- 2.11.4.GIT