[linux-cifs-client] Re: mount.cifs

Steven French sfrench at us.ibm.com
Tue May 25 23:47:50 GMT 2004


>I've recently tried the cifs filesystem as an alternative to smbfs after 
>experiencing too many quirks with smbfs and internationalized filenames.
>
>The mount goes all well (server is Samba 3.0.4 on Linux kernel 2.4.25, 
>client is Linux kernel 2.6.6-mm4 with cifs module), however, the 
>filenames are generated as iso8859-1 even though I use UTF-8 on this 
>system. I didn't fins an equivalent to "iocharset"

iocharset is a valid cifs mount option that can be specified after -o
For example:
        mount -t cifs //server/share /mnt -o user=username,iocharset=foo

The string after the "iocharset=" string is passed directly to core kernel 
function "load_nls" so presumably must match one of the nls kernel modules 
that you have installed on the client (I don't remember exactly the syntax 
- probably "iocharset=nls_utf8" or "iocharset=utf8" or something similar). 
  On the wire cifs client will send requests in unicode (16 bit fixed 
width Unicode characters) if the server is configured to support Unicode 
which Samba usually is and Windows servers are as well.   So at least 
within the kernel functions the conversion from Unicode to UTF-8  and back 
on the client should work transparently as long as  you have the 
nls_utf8.o module installed or built into the kernel.

Let me know if you see any problems with this.

Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux-cifs-client mailing list