[linux-cifs-client] mount error 5 with cifs, ok with smbfs
Nicolas Schmitz
Nicolas.Schmitz at ec-nantes.fr
Fri Oct 13 20:36:00 GMT 2006
Steve French wrote:
> >/ the Tree Connect is being sent, and the server replying with the
> />/ NTSTATUS_DUPLICATE_NAME result code.
> />/
> />/ How can a Tree_Connect command result in an
> > NT_STATUS_DUPLICATE_NAME error?/
>
>> fs/cifs/connect.c: UID = 2048
>> fs/cifs/connect.c: CIFS Session Established successfully
>> fs/cifs/connect.c: file mode: 0x7f7 dir mode: 0x1ff
>> fs/cifs/transport.c: For smb_command 117
>> fs/cifs/transport.c: Sending smb of length 80
>> | 0x00 0x00 0x00 0x50 0xff 0x53 0x4d 0x42 | _ _ _ P ÿ S M B
>> | 0x75 0x00 0x00 0x00 0x00 0x00 0x01 0xc0 | u _ _ _ _ _ _ À
>> | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _
>> | 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x57 | _ _ _ _ _ _ _ W
>> | 0x00 0x08 0xfd 0x30 0x04 0xff 0x00 0x00 | _ _ ý 0 _ ÿ _ _
>> | 0x00 0x08 0x00 0x01 0x00 0x25 0x00 0x00 | _ _ _ _ _ % _ _
>> | 0x5c 0x00 0x5c 0x00 0x70 0x00 0x63 0x00 | \ _ \ _ p _ c _
>> | 0x2d 0x00 0x70 0x00 0x72 0x00 0x69 0x00 | - _ p _ r _ i _
>> | 0x6e 0x00 0x63 0x00 0x65 0x00 0x5c 0x00 | n _ c _ e _ \ _
>> | 0x43 0x00 0x24 0x00 0x00 0x00 0x3f 0x3f | C _ $ _ _ _ ? ?
>> | 0x3f 0x3f 0x3f 0x00 | ? ? ? _
>> fs/cifs/connect.c: Peek length rcvd: 0x24 beginning 0x27)
>> | 0x00 0x00 0x00 0x23 0xff 0x53 0x4d 0x42 | _ _ _ # ÿ S M B
>> | 0x75 0xbd 0x00 0x00 0xc0 0x80 0x01 0xc0 | u ½ _ _ À _ _ À
>> | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _
>> | 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x57 | _ _ _ _ _ _ _ W
>> | 0x00 0x08 0xfd 0x30 0x00 0x00 0x00 | _ _ ý 0 _ _ _
>> fs/cifs/connect.c: Mid 0x30fd matched - waking up
>> | 0x00 0x00 0x00 0x23 0xff 0x53 0x4d 0x42 | _ _ _ # ÿ S M B
>> | 0x75 0xbd 0x00 0x00 0xc0 0x80 0x01 0xc0 | u ½ _ _ À _ _ À
>> | 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 | _ _ _ _ _ _ _ _
>> | 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x57 | _ _ _ _ _ _ _ W
>> | 0x00 0x08 0xfd 0x30 0x00 0x00 0x00 0x00 | _ _ ý 0 _ _ _ _
>> | 0x00 0x08 0x00 0x01 0x00 0x25 0x00 0x00 | _ _ _ _ _ % _ _
>> | 0x5c 0x00 0x5c 0x00 0x70 0x00 0x63 0x00 | \ _ \ _ p _ c _
>> | 0x2d 0x00 0x70 0x00 0x72 0x00 0x69 0x00 | - _ p _ r _ i _
>> | 0x6e 0x00 0x63 0x00 0x65 0x00 0x5c 0x00 | n _ c _ e _ \ _
>> | 0x43 0x00 0x24 0x00 0x00 0x00 0x3f 0x3f | C _ $ _ _ _ ? ?
>> | 0x3f 0x3f 0x3f 0x00 0x00 0x00 0x00 0x00 | ? ? ? _ _ _ _ _
>> | 0x00 0x00 0x00 0x00 | _ _ _ _
>> Status code returned 0xc00000bd NT_STATUS_DUPLICATE_NAME
>> fs/cifs/netmisc.c: !!Mapping smb error code 52 to POSIX err -5 !!
>> fs/cifs/connect.c: CIFS Tcon rc = -5
>> fs/cifs/cifssmb.c: In SMBLogoff for session disconnect
>>
>
> That is an interesting question - I think this could occur when the server
> and or client is (mis)configured for a DNS name that does not match what
> the server thinks its own DNS name is.
Thanks.
It doesn't work with pc-prince.ec-nantes.fr, but it works with
130.66.116.64.
I will check the client config asap, and tell you the result.
Nicolas Schmitz
>
> As alternatives, you might try
> 1) using the full qualified domain name on the mount
> (hostname.tcpdomain.com)
> 2) specifying the ip address instead of hostname on the mount (e.g.
> //9.3.4.5/c$ instead of //server/c$)
> 3) changing the hostname or netbiosname on the target computer to match
> 4) perhaps even would work if you tried port 139 (override the port
> with "port=139" mount option and override servername by using an
> rfc1001 netbiosname, ie specify on mount "servern=mynetbiosname")
More information about the linux-cifs-client
mailing list