Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 212827 - cifs mount can't list directory - strange limit of count(files) * length(filename)
cifs mount can't list directory - strange limit of count(files) * length(file...
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
All Linux
medium Severity urgent
: ---
: ---
Assigned To: Dave Jones
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2006-10-29 07:55 EST by Peter Bieringer
Modified: 2015-01-04 17:29 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-11-20 17:11:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Peter Bieringer 2006-10-29 07:55:53 EST
Description of problem:
There must be an unexpected limit in the cifs kernel module which breaks
listening of directories containing a lot of long file names.

Version-Release number of selected component (if applicable):

How reproducible:
Always, if directory is filled up

Steps to Reproduce:
1. create a directory on a samba server
2. create file names like e.g.:

$ rm -rf *.txt; filename="`perl -e "print 't' x 80";`";  for i in `seq 1 37`; do
 touch $filename.$i.txt; done
(36 will work)


$ rm -rf *.txt; filename="`perl -e "print 't' x 70";`";  for i in `seq 1 40`; do
touch $filename.$i.txt; done
(39 will work)

3. mount this directory via cifs on a client
4. try to list directory:
$ ls /mnt/autofs/store/test/

Actual results:
ls: reading directory /mnt/autofs/store/test/
Invalid argument

Expected results:
Listing of directory works

Additional info:
must be a client side (cifs module problem), smbclient works well.
Comment 1 Peter Bieringer 2006-11-02 05:34:43 EST
Same happen on another network, here client is also FC6, but server is RHEL4
Comment 2 Jack Tanner 2006-11-03 00:12:12 EST
Same here. The server is a Windows (2003?) box. RHEL4.4's samba can mount the
folder in question, but FC6's samba-common-3.0.23c-2 complains about 'Invalid
argument'. Removing some files from the folder makes the folder readable again
even to the FC6 samba.
Comment 3 anillo03 2006-11-12 07:45:05 EST
I had  similar error "cifs mount can't list directory" in FC6 x86_x64 listing
shares from a samba(3.0.14a-ubuntu'breezy')server 
even when smbclient can list it
This drived me crazy.because fc6 kernel have no support for smbfs I get stuck.
I can't figure how to compile smbfs module the supplied fc6 kernel.
So make new big partition 8 gigas at list and download last kernel(
and make gconf,make bzImage,make modules,make modules_install,etc...and make a
new boot option, grub ,mkinitrd..etc  (only for stupid avanced users who like
freeze his computer):)
and ... cool smbfs don't work :(
 but cifs is ok  :)) no more problems
so it's seem a kernel or kernel module problem to me
Comment 4 Jack Tanner 2006-11-15 08:01:55 EST
Could someone update the target version so that this doesn't fall off the radar?
Unless there are two separate bugs, this still persists in FC6.
Comment 5 Peter Bieringer 2006-11-15 13:28:56 EST
Changed target to FC6
Comment 6 Peter Bieringer 2006-11-15 13:57:10 EST
Changed priority because no one of Red Hat cares about...btw. RHEL5 beta is also
based on 2.6.18, perhaps this bug exists also here.
Comment 7 Jack Tanner 2006-11-20 16:48:00 EST
Whoa! WORKSFORME ever since the 2.6.18-1.2849.fc6 kernel update.
Comment 8 Peter Bieringer 2006-12-06 09:09:59 EST
Can confirm #7

Note You need to log in before you can comment on or make changes to this bug.