[linux-cifs-client] CIFS mounted share: scandir returns incomplete list

Sam Liddicott sam at liddicott.com
Sun Aug 31 17:43:35 GMT 2008


I've noticed similar behavior on samba4 with vfs-cifs. By modifying the request to reduce the number of entries that find-first or find-next require I can make the problem "go away".

I think the problem is related to the encoding or decoding of multi-part nttrans requests.

I believe that Stefan Metzemacher is aware of alignment issues in the packing of large nttrans responses; your experience suggest a problem also in unpacking large response.

I've been to busy to follow this up, having to make do with the workaround I mention, but hope to spend time on it the latter part of this week.

However if you bring it up on irc when I'm online (samjam) and metze (I can't really speak for him) we may get somewhere. If you have some packet dumps that can be put through wireshark it may help.

The problem occurs for me when there are more than a thousand longish filenames in a directory.

sam

-----Original Message-----
From: Hervé Fache <Herve at lucidia.net>
Sent: 31 August 2008 13:51
To: linux-cifs-client at lists.samba.org
Subject: [linux-cifs-client] CIFS mounted share: scandir returns incomplete list

Hello there,

I have a backup system on my Linux server which mounts shares to back them up. To backup Windows shares, I use the CIFS mount type.

Every so often (hadn't happened in a few weeks until today), scandir returns an incomplete list of contents, without any error code being returned. Also, errno is not set. The problem happens on a machine connected via WiFi (Intel 2200BG).

If you have any clues or if I can turn on some debug to track the issue, please let me know.

Also, if you have ideas on how I could work around this issue, all ideas are welcome!
Hervé
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux-cifs-client mailing list