smbfs patches (linux-2.2.19 and 2.0.7)

Urban Widmark urban at teststation.com
Sun Apr 22 21:02:16 GMT 2001


On Sun, 22 Apr 2001, Giulio Orsero wrote:

> Now I've upgraded to linux-2.2.19, and I understand it does not need to be
> patched.
> CONFIG_SMB_FS=m
> CONFIG_SMB_NLS_DEFAULT=y
> CONFIG_SMB_NLS_REMOTE="cp850"
> CONFIG_NLS_DEFAULT="cp850"
> However, localpage=iso8859-1,rmtpage=cp850 would not work:

No. 2.2 didn't get the mount option format change.

If you set CONFIG_NLS_DEFAULT to the value it should be "iso8859-1" it
will work (cp850 is wrong, you do not have that as your charset on the
linux side. The default value in config "cp437" is also wrong, it should
be a charset and not a codepage).

> So I thought to recompile samba 2.0.7 + samba-2.0.7-2.2.16pre2-nls.patch using
> the new 2.2.19 kernel headers:
> Compiling client/smbmount.c
> client/smbmount.c: In function `set_nls_page':
> client/smbmount.c:367: storage size of `cp' isn't known

Yes, the patch for 2.2.16 doesn't work on newer kernels.


> What's the correct procedure?

Configure it statically, or use a 2.4 kernel with samba 2.2.0.

/Urban





More information about the samba mailing list