Weird - two search requests are sent - level 261 and level 257, the former seems to be the problem. The trace shows that the server did respond with similar (identical?) lists of files (8) in both cases, but I expect that has trouble with generating server side inode numbers (unique identifiers for files) - can you try disabling use of server side inode numbers, for example "nounix,noserverino,sec=ntlmssp" On Mon, Jun 13, 2011 at 6:27 PM, Kong Li <likong@xxxxxxxxx> wrote: > Hi Steve, > > I have enclosed the trace from wireshark (running on mac). > /proc/fs/cifs/cifsFYI is set to 7. > > $ cat /proc/fs/cifs/cifsFYI > 7 > $ sudo /sbin/mount.cifs -v -o > user=administrator,pass=YYY,nounix,sec=ntlmssp //192.168.77.244/Misc > mnt > mount.cifs kernel mount options: > ip=192.168.77.244,unc=\\192.168.77.244\Misc,nounix,sec=ntlmssp,ver=1,user=administrator,pass=******** > $ ls mnt > > g$ ls mnt > me rockandroll test us you > $ > > Any comment would be greatly appreciated. > > Thanks again. > > Kong > > On Mon, Jun 13, 2011 at 3:29 PM, Steve French <smfrench@xxxxxxxxx> wrote: >> On Mon, Jun 13, 2011 at 5:16 PM, Kong <likong@xxxxxxxxx> wrote: >>> >>> mounting with "nounix,sec=ntlmssp" works! >>> However, the 1st "ls" does not return anything back until the 2nd "ls" command. >>> >>> Do you think there is server-side bug? (which would not be surprising >>> since 10.7 is still "preview") >> >> Yes - probably, but hard to prove without a network trace of the >> server responses >> to the SMB Transaction2 FindFirst requests. I am a little puzzled why I don't >> see the "In FindFirst" debug message in the log (is /proc/fs/cifs/cifsFYI set to >> 3 or preferably 7?). >> >> >>> $ /sbin/mount.cifs -v -o user=administrator,pass=YYY,nounix,sec=ntlmssp >>> //192.168.77.244/Misc mnt >>> mount.cifs kernel mount options: ip=192.168.77.244,unc=\\192.168.77.244\Misc, >>> nounix,sec=ntlmssp,ver=1,user=administrator,pass=******** >>> $ ls mnt >>> >>> $ ls mnt >>> me rockandroll test us you >>> >>> >>> debug output: >>> [14359.414853] /build/buildd/linux-2.6.38/fs/cifs/cifsfs.c: >>> Devname: //192.168.77.244/Misc flags: 0 >>> [14359.416284] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> CIFS VFS: in cifs_mount as Xid: 262 with uid: 0 >>> [14359.416300] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> Username: administrator >>> [14359.416306] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> UNC: \\192.168.77.244\Misc ip: 192.168.77.244 >>> [14359.416328] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> Socket created >>> [14359.416897] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> sndbuf 16384 rcvbuf 87380 rcvtimeo 0x6d6 >>> [14359.417936] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> CIFS VFS: in cifs_get_smb_ses as Xid: 263 with uid: 0 >>> [14359.417941] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> Existing smb sess not found >>> [14359.417954] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> secFlags 0x80 >>> [14359.417960] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> NTLMSSP only mechanism, enable extended security >>> [14359.417966] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 114 >>> [14359.417970] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 82 >>> [14359.418142] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> Demultiplex PID: 5409 >>> [14359.418644] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0xd9 >>> [14359.418684] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=114 mid=1 state=4 >>> [14359.418696] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> Dialect: 2 >>> [14359.418705] /build/buildd/linux-2.6.38/fs/cifs/asn1.c: >>> OID len = 7 oid = 0x1 0x2 0x348 0xbb92 >>> [14359.418712] /build/buildd/linux-2.6.38/fs/cifs/asn1.c: >>> OID len = 7 oid = 0x1 0x2 0x348 0x1bb92 >>> [14359.418718] /build/buildd/linux-2.6.38/fs/cifs/asn1.c: >>> OID len = 6 oid = 0x1 0x2 0x2f0 0x2b >>> [14359.418724] /build/buildd/linux-2.6.38/fs/cifs/asn1.c: >>> OID len = 7 oid = 0x1 0x3 0x6 0x1 >>> [14359.418730] /build/buildd/linux-2.6.38/fs/cifs/asn1.c: >>> OID len = 10 oid = 0x1 0x3 0x6 0x1 >>> [14359.418736] /build/buildd/linux-2.6.38/fs/cifs/asn1.c: >>> OID len = 7 oid = 0x1 0x3 0x5 0x1 >>> [14359.418741] /build/buildd/linux-2.6.38/fs/cifs/asn1.c: >>> OID len = 7 oid = 0x1 0x3 0x6 0x1 >>> [14359.418748] /build/buildd/linux-2.6.38/fs/cifs/asn1.c: >>> Need to call asn1_octets_decode() function for >>> not_defined_in_RFC4178@please_ignore >>> [14359.418753] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> Signing disabled >>> [14359.418763] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> negprot rc 0 >>> [14359.418772] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> Security Mode: 0x3 Capabilities: 0x8080e2fc TimeAdjust: 0 >>> [14359.418778] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> sess setup type 3 >>> [14359.418789] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> ntlmssp session setup phase 1 >>> [14359.418795] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 115 >>> [14359.418798] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 210 >>> [14359.460788] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0xf8 >>> [14359.460825] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=115 mid=2 state=4 >>> [14359.460831] Status code returned 0xc0000016 >>> NT_STATUS_MORE_PROCESSING_REQUIRED >>> [14359.460837] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c: >>> Mapping smb error code 0xc0000016 to POSIX err -5 >>> [14359.460841] /build/buildd/linux-2.6.38/fs/cifs/misc.c: >>> Null buffer passed to cifs_small_buf_release >>> [14359.460848] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> Guest login >>> [14359.460851] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> UID = 10 >>> [14359.460855] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> bleft 86 >>> [14359.460859] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> serverOS=Darwin >>> [14359.460865] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> serverNOS=@(#)PROGRAM:smbd PROJECT:smbx-102 >>> [14359.460868] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> serverDomain= >>> [14359.460872] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> ssetup freeing small buf db8ab8c0 >>> [14359.460878] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> ntlmssp session setup phase 3 >>> [14359.460966] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 115 >>> [14359.460970] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 396 >>> [14359.486051] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0x86 >>> [14359.486150] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=115 mid=3 state=4 >>> [14359.486164] /build/buildd/linux-2.6.38/fs/cifs/misc.c: >>> Null buffer passed to cifs_small_buf_release >>> [14359.486177] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> UID = 10 >>> [14359.486186] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> bleft 86 >>> [14359.486201] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> serverOS=Darwin >>> [14359.486216] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> serverNOS=@(#)PROGRAM:smbd PROJECT:smbx-102 >>> [14359.486227] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> serverDomain= >>> [14359.486239] /build/buildd/linux-2.6.38/fs/cifs/sess.c: >>> ssetup freeing small buf db8ab700 >>> [14359.486271] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> CIFS Session Established successfully >>> [14359.486290] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> CIFS VFS: leaving cifs_get_smb_ses (xid = 263) rc = 0 >>> [14359.486305] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> file mode: 0x1ed dir mode: 0x1ed >>> [14359.486322] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> CIFS VFS: in cifs_get_tcon as Xid: 264 with uid: 0 >>> [14359.486349] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 117 >>> [14359.486359] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 98 >>> [14359.506870] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0x42 >>> [14359.506963] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=117 mid=4 state=4 >>> [14359.507000] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> disk share connection >>> [14359.507017] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> nativeFileSystem=NTFS >>> [14359.507027] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> Tcon flags: 0x0 >>> [14359.507049] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> CIFS VFS: leaving cifs_get_tcon (xid = 264) rc = 0 >>> [14359.507059] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> CIFS Tcon rc = 0 >>> [14359.507072] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> In QFSDeviceInfo >>> [14359.507086] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 50 >>> [14359.507096] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 72 >>> [14359.507878] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0x44 >>> [14359.507931] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=50 mid=5 state=4 >>> [14359.507972] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> In QFSAttributeInfo >>> [14359.507986] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 50 >>> [14359.507996] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 72 >>> [14359.510754] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0x50 >>> [14359.511016] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=50 mid=6 state=4 >>> [14359.511048] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> Linux protocol extensions disabled >>> [14359.511070] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> CIFS VFS: leaving cifs_mount (xid = 262) rc = 0 >>> [14359.511100] /build/buildd/linux-2.6.38/fs/cifs/inode.c: >>> CIFS VFS: in cifs_root_iget as Xid: 265 with uid: 0 >>> [14359.511120] /build/buildd/linux-2.6.38/fs/cifs/inode.c: >>> Getting info on >>> [14359.511143] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 50 >>> [14359.511153] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 78 >>> [14359.512242] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0x90 >>> [14359.512302] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=50 mid=7 state=4 >>> [14359.512331] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> In GetSrvInodeNum for >>> [14359.512345] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 50 >>> [14359.512355] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 78 >>> [14359.514976] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0x48 >>> [14359.515053] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=50 mid=8 state=4 >>> [14359.515081] /build/buildd/linux-2.6.38/fs/cifs/inode.c: >>> looking for uniqueid=386428 >>> [14359.515122] /build/buildd/linux-2.6.38/fs/cifs/inode.c: >>> cifs_revalidate_cache: revalidating inode 386428 >>> [14359.515135] /build/buildd/linux-2.6.38/fs/cifs/inode.c: >>> cifs_revalidate_cache: inode 386428 is new >>> [14359.515149] /build/buildd/linux-2.6.38/fs/cifs/inode.c: >>> inode 0xdbda7d74 old_time=0 new_time=3514878 >>> [14359.515174] /build/buildd/linux-2.6.38/fs/cifs/cifsfs.c: >>> export ops supported >>> [14360.542214] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> CIFS VFS: in cifs_lookup as Xid: 266 with uid: 1000 >>> [14360.542236] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> parent inode = 0xdbda7d74 name is: .Trash and dentry = 0xde2b7b80 >>> [14360.542252] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> NULL inode in lookup >>> [14360.542263] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> Full path: \.Trash inode = 0x (null) >>> [14360.542275] /build/buildd/linux-2.6.38/fs/cifs/inode.c: >>> Getting info on \.Trash >>> [14360.542298] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 50 >>> [14360.542308] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 92 >>> [14360.552637] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0x27 >>> [14360.552671] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> invalid transact2 word count >>> [14360.558663] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=50 mid=9 state=4 >>> [14360.558680] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND >>> [14360.558694] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c: >>> Mapping smb error code 0xc0000034 to POSIX err -2 >>> [14360.558716] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> Send error in QPathInfo = -2 >>> [14360.558745] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> CIFS VFS: leaving cifs_lookup (xid = 266) rc = 0 >>> [14360.558956] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> CIFS VFS: in cifs_lookup as Xid: 267 with uid: 1000 >>> [14360.558972] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> parent inode = 0xdbda7d74 name is: .Trash-1000 and dentry = 0xde2b7e00 >>> [14360.558986] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> NULL inode in lookup >>> [14360.558997] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> Full path: \.Trash-1000 inode = 0x (null) >>> [14360.559008] /build/buildd/linux-2.6.38/fs/cifs/inode.c: >>> Getting info on \.Trash-1000 >>> [14360.559025] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> For smb_command 50 >>> [14360.559035] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> Sending smb: total_len 102 >>> [14360.561562] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> rfc1002 length 0x27 >>> [14360.561602] /build/buildd/linux-2.6.38/fs/cifs/connect.c: >>> invalid transact2 word count >>> [14360.561678] /build/buildd/linux-2.6.38/fs/cifs/transport.c: >>> sync_mid_result: cmd=50 mid=10 state=4 >>> [14360.561692] Status code returned 0xc0000034 NT_STATUS_OBJECT_NAME_NOT_FOUND >>> [14360.561705] /build/buildd/linux-2.6.38/fs/cifs/netmisc.c: >>> Mapping smb error code 0xc0000034 to POSIX err -2 >>> [14360.561722] /build/buildd/linux-2.6.38/fs/cifs/cifssmb.c: >>> Send error in QPathInfo = -2 >>> [14360.561743] /build/buildd/linux-2.6.38/fs/cifs/dir.c: >>> CIFS VFS: leaving cifs_lookup (xid = 267) rc = 0 >>> >>> >>> >>> >>> -- >>> 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 >>> >> >> >> >> -- >> Thanks, >> >> Steve >> > -- Thanks, Steve -- 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