[Samba] Question marks, asterisks, colons in filenames

Günter Kukkukk linux at kukkukk.com
Thu Feb 21 20:18:33 MST 2013


Am Montag, 18. Februar 2013, 20:16:15 schrieb Ray:
> Hi,
> 
> I suppose this question must have been posted a hundred times, but
> Google brings up nothing useful:
> 
> Consider "The Wall" from Pink Floyd in an MP3 collection. There's "In
> The Flesh.mp3" and "In The Flesh?.mp3" as tracks. Or, another example in
> an MP3 collection: There's a Band called "Stellar", but there's also a
> band called "Stellar*". Naming files like this is no problem in Linux.
> 
> Now I had the idea of using my files on other computers such as Macs
> and Windows-boxes, but both Systems have trouble with the characters
> mentioned above.
> 
> My question is how Samba can help me to map these characters to
> something else so that the files become usable on the Windows/Mac side
> *without destroying the readability of the filenames entorely*. Hashing
> into 8.3 random character sequences with "mangled names = yes" is not
> really an option.
> 
> What is the successor of the removed "mangled map" option? I did not
> find anything in the current man page of smb.conf (5).
> 
> I'm running Samba 3.5.10, which is the latest in CentOS 6.3.
> 
> Surely there must be some elegant way to fix this? I don't want to
> rename all my files at the Linux end.
> 
> Any help would be very appreciated.
> 
> Cheers,
> Raimund

Hi Raimund,
I guess you were the one to whom i was talking on IRC some days ago.
I assured you to have a look at the source of VFS vfs_catia.c, because
we were not able to get it working and it caught my inetrest, too.

Also there is nearly NO info on the web about the usage of this
re-written vfs module - the samba man page is useless (only old
usage info)

I now found the bug in vfs_catia.c and will push a fix soon.
See http://pastie.org/6313997
how it is working. One can specify translations for all
invalid windows characters \ / : * ? " < > | and even more ones.

I hope this is the one you were looking for.  :-)

Cheers, Günter
  


More information about the samba mailing list