[Samba] Mangled Names of Long File Name with 2.2.4 (fwd)

Jeremy Allison jra at samba.org
Thu May 30 14:08:58 GMT 2002


> 
> ---------- Forwarded message ----------
> Date: Thu, 23 May 2002 11:18:36 +0200
> From: Pascal Schelcher <pascal.schelcher at free.fr>
> To: samba at lists.samba.org
> Subject: [Samba] Mangled Names of Long File Name with 2.2.4
> 
> Hello,
> 
> I have got samba-2.2.4 installed.
> The Documentation of Samba says that the probability of a clash of mangled
> names is 1/1300. But here is an output of a dir command on DOS :
> l:/test/text/2002/04/23/test2/LAGEF~K6.TXT - L AGEFI#230402#033#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K4.TXT - L AGEFI#230402#002#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K8.TXT - L AGEFI#230402#003#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JN.TXT - L AGEFI#230402#004#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JR.TXT - L AGEFI#230402#005#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JV.TXT - L AGEFI#230402#006#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JZ.TXT - L AGEFI#230402#007#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~KS.TXT - L AGEFI#230402#008#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~KW.TXT - L AGEFI#230402#009#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~J$.TXT - L AGEFI#230402#010#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K2.TXT - L AGEFI#230402#011#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K6.TXT - L AGEFI#230402#012#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~KA.TXT - L AGEFI#230402#013#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JP.TXT - L AGEFI#230402#014#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JT.TXT - L AGEFI#230402#015#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JX.TXT - L AGEFI#230402#016#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~J-.TXT - L AGEFI#230402#017#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~KU.TXT - L AGEFI#230402#018#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~KY.TXT - L AGEFI#230402#019#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K0.TXT - L AGEFI#230402#020#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~J at .TXT - L AGEFI#230402#021#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K8.TXT - L AGEFI#230402#022#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K4.TXT - L AGEFI#230402#023#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JR.TXT - L AGEFI#230402#024#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JN.TXT - L AGEFI#230402#025#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JZ.TXT - L AGEFI#230402#026#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~JV.TXT - L AGEFI#230402#027#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~KW.TXT - L AGEFI#230402#028#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~KS.TXT - L AGEFI#230402#029#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K2.TXT - L AGEFI#230402#030#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~J$.TXT - L AGEFI#230402#031#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~KA.TXT - L AGEFI#230402#032#01.TXT
> l:/test/text/2002/04/23/test2/LAGEF~K0.TXT - L AGEFI#230402#001#01.TXT
> We can see that files named "L AGEFI#230402#033#01.TXT" and "L
> AGEFI#230402#012#01.TXT" have same mangled name : "LAGEF~K6.TXT".
> 
> So what can I do to solve problem ?

I've just back-ported the HEAD switchable mangling algorithm
code into the SAMBA_2_2 branch for the 2.2.5 release.

The default is to behave as you observed (common collisions).
This is for backwards compatibility.

To try out the new mangling algorithm (much better) CVS update
and add the line :

mangling method = hash2

to the [global] section of your smb.conf and restart smbd.

Thanks,

	Jeremy.




More information about the samba mailing list