[PATCH] New option "mangled names = illegal"

Ralph Böhme slow at samba.org
Thu Dec 15 15:44:38 UTC 2016


On Thu, Dec 15, 2016 at 01:28:00PM +0100, Ralph Böhme wrote:
> This one seemed obvious to me, I must be missing something. :)
> 
> With "mangled names = yes" we create mangled names for
> 
> 1) any name that contains illegal NTFS characters
> 2) any name that exceeds 8.3 length limits
> 
> In case of 2 the mangled name is put into the shortname buffer in find
> responses. Modern clients don't use the shortname anymore, so having an
> additional "mangled names" option that mangles only for case 1), but not 2)
> would be useful and reduce load on the server.
> 
> Attached is a patch that implements such an option, I've called it "mangled
> names = illegal".

fwiw, MS actually has a similar knob, albeit it's a filesystem related there:

<https://technet.microsoft.com/en-us/library/ff633453(v=ws.10).aspx?f=255&mspperror=-2147217396>
<https://blogs.technet.microsoft.com/josebda/2012/11/13/windows-server-2012-file-server-tip-disable-8-3-naming-and-strip-those-short-names-too/>

Cheerio!
-slow



More information about the samba-technical mailing list