Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76698 - Fail to mount OS/2 Samba Server shares with kernel 2.6 (ok with 2.4)
Summary: Fail to mount OS/2 Samba Server shares with kernel 2.6 (ok with 2.4)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-04 16:07 UTC by Maxim Konyushikhin
Modified: 2005-07-29 04:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Konyushikhin 2005-01-04 16:07:36 UTC
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
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2005-01-17 07:17:48 UTC
could you please check if this is the same case as in bug #72968?
Comment 2 Maxim Konyushikhin 2005-01-19 02:01:39 UTC
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.
Comment 3 Michael Glauche (RETIRED) gentoo-dev 2005-03-03 02:33:48 UTC
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)
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2005-07-29 04:39:31 UTC
use cifs for 2.6