[linux-cifs-client] Re: Directory Listings

Steven French sfrench at us.ibm.com
Fri Oct 15 18:25:26 GMT 2004


> using cifs vfs module to mount a number of shares from
> win2003 servers. Up until recently this was working fine, but now we are
> having a problem.

Did the cifs version change?

> The file systems are mounted fine, but when you 'ls' or 'find' in a
> directory only a limited number of entries are returned. Mostly only the
> first 254 entries are returned. 

I wonder if one of the entries in the buffer hit the known cifs_readdir 
bug in which the filename is converted from Unicode to UTF-8 in place 
(which can result in overrunning into the next entry in the buffer for 
certain Asian languages in particulr)

>The strange thin is that you can 'cd'
> into one of the non-visible directories
That is not strange - lookup is going to work no matter what readdir 
returns if the file/dir really exists - and even the caching of inode 
metadata information returned from readdir or lookup is only kept for a 
short time.

Would not mind seeing an ethereal trace of the failing SMB 
FindFirst/FindNext frames but it also might be good enough to turn on 
debugging "echo 1 > /proc/fs/cifs/cifsFYI" and send or post the dmesg 
output from the readdir processing

Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux-cifs-client mailing list