Hello, I can't mount shares of OS/2 samba servers since I use kernel 2.6.x. As it works with smbclient and also with smbmount on kernel 2.4.26, I assume the problem lies within smbfs. I get errors when I try to mount a share from OS/2: smb_setup_bcc: Packet too large 4257>4096 smb_add_request: request [xxxxxxxx, mid=0] timed out! I can mount shares, however, from other systems, namely all Windows versions. kernel: gentoo-dev-sources-2.6.9-r13 samba: 3.0.8 Reproducible: Always Steps to Reproduce: 1) smbmount everything's fine 2) cd into the mounted dir smbfs output: smb_setup_bcc: Packet too large 4257>4096 smb_add_request: request [xxxxxxxx, mid=0] timed out! 3) ls in the mounted dir smb_get_length: Invalid NBT packet, code=6f smb_add_request: request [xxxxxxxx, mid=0] timed out! Then ls says: ls: .: Input/output error 4) cd .. smbfs output: smb_get_length: Invalid NBT packet, code 39 smb_add_request: request [f736be80, mid=2] timed out! 5) umount everything's fine Server info: IBM OS/2 LAN Server Version 5.20 Component ID 562288900 Current CSD level: IP08608 Prior CSD level: IP08605 IBM OS/2 TCP/IP Stack Version 6.01 Component ID 5639B1700 Current CSD level: WR08708 Prior CSD level: WR08701 OS/2 Warp Server for e-business Service Level Version 1.00 Component ID 566933010 Type Fixpak Current CSD level: XR0E003 Prior CSD level: XR0E003 And a useful link: http://lists.samba.org/archive/samba/2004-September/092324. html
could you please check if this is the same case as in bug #72968?
No, this is not the same case as in bug #72968. My problem is related to buffer size in the kernel: if reseived packet size is greater than buffer size when kernel reports "packet too large" error. I finally managed to find two solutions for the problem in case. First, I patched smbfs source and increased buffer size from PAGE_SIZE to 2*PAGE_SIZE and the issue went away. This is not what I wanted and I looked into LAN Server config files. I found option "sizreqbuf" which I reduced from 4096 to 3584. Everithing is fine now. This option reduces send and reseive packet size. I don't know will you consider this bug as a bug or not. I found some notes in smbfs source about OS/2 LAN Server: support of it is reduced (maybe because of new standarts?). And where is also no source code dealing with big packet sizes. So feel free to close this bug. Thank you for your attention.
the smbfs module in the 2.6 kernel seems to cause a lot of headache for many people :( Alternatively you can try the cifs module, and mount the smb server via CIFS (it usually should work, and seems more stable)
use cifs for 2.6