[linux-cifs-client] Unicode filenames on cifs mounted share

Bjoern JACKE bj at sernet.de
Tue Aug 24 11:50:45 GMT 2004


Hi,

there is a problem with Unicode filenames on cifs mounted shares. It works okay
with "simple" umlaut-containing filenames but it is broken for example with
Japanese filenames. Here is an example: Samba server is 3.0.6 with UTF-8,
locale is also UTF-8, locale (LANG) is de_DE.UTF-8 on a SUSE 9.1. ls -l on the
local directory lokks like this:

bjacke at pell:/mnt/1> ls -l /srv/samba/word/
insgesamt 37796
-rw-rwx---+ 1 root   root         0 2004-07-30 11:18 ようこそ
drwxrwxr-x+ 2 root   root        48 2004-08-16 16:46 bla1
-rw-rwx---+ 1 root   root         0 2004-07-30 11:24 eu€
drwxrwx---+ 3 root   root        72 2004-08-18 17:38 f1
-rw-rwx---+ 1 root   root         0 2004-07-30 11:25 ffdようこそ
-rw-r-----+ 1 root   root     62464 2004-07-07 14:38 file_name.tar
drwxrwxr-x+ 3 root   root        72 2004-08-12 15:49 first
drwxr-xr-x  3 bjacke users      144 2004-08-03 18:11 indesign2
-rw-------  1 bjacke users   462848 2004-08-12 14:45 ksh.exe
-rw-------  1 bjacke users    90112 2004-08-12 15:09 mkdir.exe
-rwxrwx---+ 1 root   root         0 2004-08-18 11:04 Neu Textdokument.txt
drwxrwx---+ 2 root   root       168 2004-07-30 11:21 ordner
-rwxrwx---+ 1 root   root        40 2004-08-18 17:38 sh_histo
lrwxrwxrwx  1 root   root         6 2004-08-24 12:35 täter -> töten
drwxrwxr-x+ 3 root   root        72 2004-08-12 19:29 test2
-rw-rw----+ 1 root   root         5 2004-08-24 12:44 töten
-rw-------+ 1 root   root     26416 2004-07-19 04:12 UNDELETE.EXE
-rw-------  1 bjacke users 38007760 2004-07-15 16:57 VMware-workstation-4.5.2-8848.exe

ls -l on the cifs mounted share looks like this:

bjacke at pell:/mnt/1> ls -l /mnt/1/
/bin/ls: Lesen der symbolischen Verknüpfung /mnt/1/몪ꪪꫪꪫꫮꮪꯪꪪ껪ꪯ뫮ꪪ믪ꪪꫪ꺫ꫮꪪ꿫ꪺꫪꪫ껮ꮺꯪ꺪ꫪꮿ뫮몪ꯪꪪꫪ꺻ꫮ몮꿪꺺 뫪ꪫꫮ뾮꯫ꪪꫫꪯ뫮ꪪꯪꮪ뫪꺫ꫮ꺪뿪ꪺ뫪�nicht möglich: Datei oder Verzeichnis nicht gefunden
insgesamt 661742449
drwxrwx---      8 root       root                          0 2004-08-24 13:33
drwxrwx---      8 root       root                          0 2004-08-24 13:33
drwxrwx---      8 root       root                          0 2004-08-24 13:33
drwxrwx---      8 root       root                          0 2004-08-24 13:33
drwxrwx---      8 root       root                          0 2004-08-24 13:33
drwxrwx---      8 root       root                          0 2004-08-24 13:33
drwxrwx---      8 root       root                          0 2004-08-24 13:33
lrwSrwx-wT  43755 2863655846 3152718522 14023578797532365469 1935-03-12 01:03 몪???????껪?뫮?믪??꺫??꿫???껮??꺪??뫮몪???꺻?몮꿪꺺뫪??뾮????뫮???뫪꺫?꺪뿪?뫪?
drwxrwxr-x      2 root       root                          0 2004-08-16 16:46 bla1
-rw-rwx---      1 root       root                          0 2004-07-30 11:24 eu€
drwxrwx---      3 root       root                          0 2004-08-18 17:38 f1
-rw-rwx---      1 root       root                          0 2004-07-30 11:25 ffdようこそ?????????????龝鶾뛩?껮鮦믪뺪껩?뫮?믪??꺫껮몪꿫?髪?껮?믪꺪??뫮몦?꺪?꺻?몮꿫꺺뫪??뾮????뫮??
-rw-r-----      1 root       root                      62464 2004-07-07 14:38 file_name.tar
drwxrwxr-x      3 root       root                          0 2004-08-12 15:49 first
-rw-------      1 bjacke     users                    462848 2004-08-12 14:45 ksh.exe
-rw-------      1 bjacke     users                     90112 2004-08-12 15:09 mkdir.exe
drwxrwxr-x      3 root       root                          0 2004-08-12 19:29 test2
-rw-------      1 bjacke     users                  38007760 2004-07-15 16:57 VMware-workstation-4.5.2-8848.exe



This is the problem which is also documented in
https://bugzilla.samba.org/show_bug.cgi?id=1572

As there is no progress in this bug report, maybe someone on this list is
interested in this cifs bug.


bjacke at pell:/mnt/1> /sbin/modinfo cifs
version:        1.18 8EA897319BE63BB99E39A8E
description:    VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows
license:        GPL
author:         Steve French <sfrench at us.ibm.com>
depends:
supported:      external
vermagic:       2.6.5-7.75cvs20040615150331-default 586 REGPARM gcc-3.3

iocharset is utf8, as you can see for the EUR (€) sign charset translation is working (partially) correct.

On windows clients things look correct, also smbclient shows everything correct:

bjacke at pell:/mnt/1> smbclient -c ls //pell/word
Server's Role (logon server) conflicts with share-level security
Password:
Domain=[TUXNET] OS=[Unix] Server=[Samba 3.0.6rc2-SerNet-SuSE]
  .                                   D        0  Tue Aug 24 13:33:43 2004
  ..                                  D        0  Mon Jun 21 01:21:57 2004
  f1                                  D        0  Wed Aug 18 17:38:30 2004
  bla1                                D        0  Mon Aug 16 16:46:59 2004
  mkdir.exe                                90112  Thu Aug 12 15:09:36 2004
  eu€                                        0  Fri Jul 30 11:24:48 2004
  first                               D        0  Thu Aug 12 15:49:35 2004
  test2                               D        0  Thu Aug 12 19:29:33 2004
  file_name.tar                            62464  Wed Jul  7 14:38:43 2004
  ksh.exe                                 462848  Thu Aug 12 14:45:55 2004
  VMware-workstation-4.5.2-8848.exe        38007760  Thu Jul 15 16:57:30 2004
  ffdようこそ                              0  Fri Jul 30 11:25:08 2004
  täter                              A        5  Tue Aug 24 12:44:33 2004
  töten                              A        5  Tue Aug 24 12:44:33 2004
  indesign2                           D        0  Tue Aug  3 18:11:21 2004
  ordner                              D        0  Fri Jul 30 11:21:40 2004
  Neu Textdokument.txt                A        0  Wed Aug 18 11:04:00 2004
  UNDELETE.EXE                        R    26416  Mon Jul 19 04:12:15 2004
  ようこそ                                 0  Fri Jul 30 11:18:04 2004
  sh_histo                            A       40  Wed Aug 18 17:38:31 2004

                33411 blocks of size 2097152. 306 blocks available

... so this is definetely no server problem.

Any ideas?

Bjoern


More information about the linux-cifs-client mailing list