Using smbfs on a 2.6.9-11.EL kernel, with the server being a Win2k, Win2k3, Win9x, NT4 or Samba3, when listing a directory with a large number of files, and some long names, some files end up missing in the listing. From the comments in RHEL4's linux-2.6.9/fs/smbfs/request.c: /* * max parameters + max data + max setup == bufsize to make NT4 happy * and not abort the transfer or split into multiple responses. It also * makes smbfs happy as handling packets larger than the buffer size * is extra work. * * OS/2 is probably going to hate me for this ... */ So: max data = bufsize - max parameters - max setup which means: mdata = req->rq_bufsize - SMB_TRANS2_MAX_PARAM - server->opt.max_xmit - 100; /* the -100 being to make OS/2 happy, apparently */ The current code doesn't do that...
Created attachment 120601 [details] linux-2.6.9-smbfs-wrong-packet-size.patch
Posted at rhkernel: http://post-office.corp.redhat.com/archives/rhkernel-list/2005-November/msg00011.html
Adding a blocker. Work will be done on the RHEL3 version.
Comment on attachment 120601 [details] linux-2.6.9-smbfs-wrong-packet-size.patch Patch is broken.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
I've not been able to reproduce this problem at all with a client running my current peoplepage kernels. I've tried samba 3.0.25 (running on f7 and fc6), and a win2k server. I've also tried having the script create varying amounts of files (700, 900, 1000, and 7000). I always seem to get the correct number of files returned. Can you verify whether this bug is already fixed in 4.5 kernels and/or the kernels on my peoplepage: http://people.redhat.com/jlayton
This request was previously evaluated by Red Hat Product Management for inclusion in the current Red Hat Enterprise Linux release, but Red Hat was unable to resolve it in time. This request will be reviewed for a future Red Hat Enterprise Linux release.
Closing this BZ since there's been no activity on it for a long time and the IT associated with it has closed. Please reopen if this is still an issue.