Hi All, As known, samba can mapping non-DOS names under UNIX to DOS-compatible names by using some HASH/HASH2 algorithm. But is there any way we can define a character mapping tables by self, not using HASH? such as: (just a sample) character mapping table: Unix Windows " <-------> a * <-------> b / <-------> c : <-------> d < <-------> e> <-------> f? <-------> g \ <--------> h | <--------> i then a filename '***' on Unix will be mapped to 'bbb' on Windows... and so on. Thanks a lot.
TAKAHASHI Motonobu
2011-Jan-06 12:57 UTC
[Samba] Mapping characters for non-DOS names under UNIX
Create your custom vfs module. Perhaps vfs_cap.c shows you how to do this. Also to create a custom charset module may offer another way. --- TAKAHASHI Motonobu <monyo at samba.gr.jp> 2011/1/6 tao wang <twang1017 at gmail.com>:> Hi All, > > As known, samba can mapping non-DOS names under UNIX to DOS-compatible names > by using some HASH/HASH2 algorithm. But is there any way we can define a > character mapping tables by self, not using HASH? such as: (just a sample) > > character mapping table: > Unix ? ? ? ?Windows > " ? ? <-------> ? ?a > * ? ? <-------> ? ?b > / ? ? <-------> ? ?c > : ? ? <-------> ? ?d > < ? ?<-------> ? ?e >> ? ?<-------> ? ?f > ? ? ?<-------> ? ?g > \ ? ?<--------> ? ?h > | ? ?<--------> ? ?i > > then a filename '***' on Unix will be mapped to 'bbb' on Windows... and so > on. > > Thanks a lot.
Lennart Sorensen
2011-Jan-06 18:44 UTC
[Samba] Mapping characters for non-DOS names under UNIX
On Thu, Jan 06, 2011 at 12:55:52PM +0800, tao wang wrote:> Hi All, > > As known, samba can mapping non-DOS names under UNIX to DOS-compatible names > by using some HASH/HASH2 algorithm. But is there any way we can define a > character mapping tables by self, not using HASH? such as: (just a sample) > > character mapping table: > Unix Windows > " <-------> a > * <-------> b > / <-------> c > : <-------> d > < <-------> e > > <-------> f > ? <-------> g > \ <--------> h > | <--------> i > > then a filename '***' on Unix will be mapped to 'bbb' on Windows... and so > on.So what would bbb map to? If both exist on unix, how would windows tell you which of *** and bbb to open? -- Len Sorensen