On Wed, Dec 28, 2011 at 6:08 PM, 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. > strace: http://pastebin.com/WXf8M1nu > > mount --verbose -t cifs -o username=administrator,password=blahblah > //192.168.0.11/jobs /mnt/backups/montaz/jobs > mount.cifs kernel mount options: > ip=192.168.0.11,unc=\\192.168.0.11\jobs,,ver=1,user=administrator,pass=******** > > df > //192.168.0.11/jobs 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/e > > kernel version 3.2rc7 > > this seems to be related to : > https://lkml.org/lkml/2011/8/1/427 > 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-cifs" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html I was working on phrasing a question for MS. Noticed this problem too. MS-CIFS - v20101001, in section 2.2.2.3.1, does not list info level codes higher than 0x104 for Trans2 subcommand Trans2_find_first2. Yet servers such as Windows 2008 and Windows 7, respond to info levels such as 0x105 correctly. But Windows XP responds to this info level (0x105) incorrectly. The Find_First2 data has fewer entries than the ones listed in search Count field of Find First2 parameters. Servers such as Windows XP and 2000 should return an error EOPNOTSUPP for info levels higher than 0x104 but they do not. http://msdn.microsoft.com/en-us/library/cc246806(v=prot.13).aspx says that Windows XP does not handle SMB_FIND_FILE_ID_FULL_DIRECTORY_INFO. "<66> Section 2.2.8.1.2: The SMB_FIND_FILE_ID_FULL_DIRECTORY_INFO Information Level was introduced in Windows Server 2003 and is not present in Windows 2000 Server and Windows XP." -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html