Hi all, I run samba 3.6.6 from debian wheezy (version 3.6.6) and i am experiencing some troubles with file name mangling. If i try "dir /x" on a mapped folder it gives me unexpected mangled names: the name mangling matches only the first character and not the first 5 as i expect. For example: if the long file name is LONGFILENAME.TXT, i expect the mangled sholud be something like LONGF~01.TXT, but i see: LNHQX6~C.TXT I tried to change mangling method = hash (instead of the default hash2) also i tried the solution posted here: http://www.oreilly.com/openbook/samba/book/ch05_04.html but no luck. The the share are on XFS filesystem and use the following vfs extensions: vfs objects = acl_xattr, recycle enabled on the share. I'm crossing some bug? or is this a misconfiguration? Please help Mitja Tavcar
On Fri, Jan 09, 2015 at 01:12:39PM +0100, Mitja Tavcar wrote:> Hi all, > > I run samba 3.6.6 from debian wheezy (version 3.6.6) and i am > experiencing some troubles with file name mangling. > > If i try "dir /x" on a mapped folder it gives me unexpected mangled > names: the name mangling matches only the first character and not > the first 5 as i expect. > > For example: > if the long file name is LONGFILENAME.TXT, i expect the mangled > sholud be something like LONGF~01.TXT, but i see: LNHQX6~C.TXT > > I tried to change mangling method = hash (instead of the default hash2) > also i tried the solution posted here: > http://www.oreilly.com/openbook/samba/book/ch05_04.html > but no luck.When you change mangling method, on restart smbd will use the different algorithm to generate the mangled name. However you may need to reconnect the client to clear out and mangled name cachine it has.
> > > > I tried to change mangling method = hash (instead of the default hash2)> > but no luck. > > When you change mangling method, on restart smbd will > use the different algorithm to generate the mangled name. > > However you may need to reconnect the client to clear > out and mangled name cachine it has.Yes, smbd restart do the trick. Thank you