Dear all, I have used the Samba 2.2.8a server. mangle method = hash or hash2 But when i make a "dir" command on the MS-DOS prompt, the file name aren't the same from a disk on DOS local partition and Samba Server partition. :-( File name on the Windows view: ESTE_DE_NOME_BEM_GRANDE.TXT DOS prompt on the Samba Serve Partition: TESTE~65.TXT DOS prompt on the DOS local Partition "C:\": TESTE_~1.TXT I would like to know how config the Samba Sever to print the file name with the same name on DOS local partition. Could someone help me? Is there any way to do this? Is it possible? Regards Rodrigo Noroaldo de Castro Fernandes
On Fri, Sep 12, 2003 at 05:40:24PM -0300, OPSC Service wrote:> Dear all, > > I have used the Samba 2.2.8a server. > > mangle method = hash or hash2 > > But when i make a "dir" command on the MS-DOS prompt, the file name > aren't the same from a disk on DOS local partition and Samba Server > partition. :-( > > File name on the Windows view: > ESTE_DE_NOME_BEM_GRANDE.TXT > > DOS prompt on the Samba Serve Partition: > TESTE~65.TXT > > DOS prompt on the DOS local Partition "C:\": > TESTE_~1.TXT > > I would like to know how config the Samba Sever to print the file name > with the same name on DOS local partition. > > Could someone help me? > Is there any way to do this? > Is it possible?No, Samba and Windows use different hashing methods for this that are not compatible. Sorry, Jeremy.
>> Are there any patch from Samba Server to solve this incompatibility?> No, the hash we use is better than the Windows one (less collisions). > Jeremy. I recently switched to using Samba as our PDC and for our file sharing where I work. This includes a share which we moved from a Windows server for an ERP system that does not handle long file names, and has the names written into data fields the way Windows hashes them. I realize the advantages to the way Samba does the hash, but I was wondering what it would take to make this fully compatible. For instance, can you point me in the correct direction to modify the Samba 2.2 code so it mangles names the same way as Windows would? We are also pursuing the makers of the software to see if they can leap into this century and support long file names. Thanks, Liz