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

From: Konstantinos Skarlatos
Date: Wed Dec 28 2011 - 19:09:33 EST

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: ip=,unc=\\\jobs,,ver=1,user=administrator,pass=********

// 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

Please CC because i am not subscribed
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at