Re: cifs: ls of mount point gives input/output error (probably relatedto CIFS: getdents() broken for large dirs)

From: Konstantinos Skarlatos
Date: Fri Dec 30 2011 - 04:05:48 EST

On 29/12/2011 3:54 ÎÎ, Konstantinos Skarlatos wrote:
On ÎÎÎÏÏÎ, 29 ÎÎÎÎÎÎÏÎÎÏ 2011 3:39:30 ÎÎ, Jeff Layton wrote:
On Thu, 29 Dec 2011 12:30:18 +0200
Konstantinos Skarlatos<k.skarlatos@xxxxxxxxx> wrote:

On 29/12/2011 4:04 ÏÎ, Jeff Layton wrote:
On Thu, 29 Dec 2011 02:08:57 +0200
Konstantinos Skarlatos<k.skarlatos@xxxxxxxxx> wrote:

I mount via cifs a windows XP share, df gives me correct sizes, but when
I ls the mount point i get input/output error.

mount --verbose -t cifs -o username=administrator,password=blahblah
// /mnt/backups/montaz/jobs
mount.cifs kernel mount options:

// 114464
105196 9268 92% /mnt/backups/montaz/jobs

ls /mnt/backups/montaz/jobs/
ls: reading directory /mnt/backups/montaz/jobs/: Input/output error
total 0

the fun thing is that i can cd to a lower level directory, and ls works
fine there! only the mount point has the problem

ls /mnt/backups/montaz/jobs/test
total 44K
drwxr-xr-x 1 root root 0 Apr 30 2010 blah blah/

kernel version 3.2rc7

this seems to be related to :
Re: [3.0.0+][Regression][Bisected] CIFS: getdents() broken for large dirs

Hmmm, maybe. What makes you think that it's related? What sort of
server are you seeing this against?
Windows XP service pack 2 (greek)

How many files are in the directory?

140 folders and 20 files

Attached is a tcp dump of my session.

Description: Binary data