From: Suresh Jayaraman <sjayaraman-IBi9RG/b67k@public.gmane.org>
To: Pavel Shilovsky <piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-cifs <linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: Mounting SMB2 fails with -EINVAL on 3.7-rc7
Date: Tue, 27 Nov 2012 18:30:34 +0530 [thread overview]
Message-ID: <50B4B972.8070604@suse.com> (raw)
In-Reply-To: <CAKywueT-Wi_gS8SNOQ+Ac-MNFNSuN_ni1BA8neQsy0836w6BvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 11/27/2012 06:26 PM, Pavel Shilovsky wrote:
> 2012/11/27 Suresh Jayaraman <sjayaraman-IBi9RG/b67k@public.gmane.org>:
>> When I try to mount a Samba (3.6.7) share via SMB2, the mount is failing.
>>
>> mount -t cifs -o vers=2.1,user=joe //server/share /mnt
>> mount error (22): Invalid Argument
>>
>> Looks like Negotiate Protocol is failing but not sure why.
>>
>> Here's the cFYI snip:
>>
>> [ 2895.256899] CIFS VFS: cifs_mount failed w/return code = -22
>> [ 2904.421947] fs/cifs/cifsfs.c: Devname: //164.99.140.187/local/ flags: 0
>> [ 2904.421999] fs/cifs/connect.c: Username: cg
>> [ 2904.427252] fs/cifs/connect.c: file mode: 0x1ed dir mode: 0x1ed
>> [ 2904.427434] fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 15 with uid: 0
>> [ 2904.427439] fs/cifs/connect.c: UNC: \\164.99.140.187\local ip: 164.99.140.187
>> [ 2904.427489] fs/cifs/connect.c: Socket created
>> [ 2904.427493] fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x1b58
>> [ 2904.428276] fs/cifs/connect.c: CIFS VFS: in cifs_get_smb_ses as Xid: 16 with uid: 0
>> [ 2904.428281] fs/cifs/connect.c: Existing smb sess not found
>> [ 2904.428288] fs/cifs/smb2pdu.c: Negotiate protocol
>> [ 2904.428295] fs/cifs/smb2pdu.c: sec_flags 0x87
>> [ 2904.428301] fs/cifs/transport.c: Sending smb: smb_len=102
>> [ 2904.428460] fs/cifs/connect.c: Demultiplex PID: 1899
>> [ 2904.429585] fs/cifs/connect.c: RFC1002 header 0x49
>> [ 2904.429593] fs/cifs/smb2misc.c: smb2_check_message length: 0x4d, smb_buf_length: 0x49
>> [ 2904.429596] fs/cifs/smb2misc.c: SMB2 data length 0 offset 0
>> [ 2904.429597] fs/cifs/smb2misc.c: SMB2 len 77
>> [ 2904.429648] fs/cifs/transport.c: cifs_sync_mid_result: cmd=0 mid=0 state=4
>> [ 2904.429654] Status code returned 0xc000000d STATUS_INVALID_PARAMETER
>> [ 2904.429661] fs/cifs/smb2maperror.c: Mapping SMB2 status code -1073741811 to POSIX err -22
>> [ 2904.429663] fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release
>> [ 2904.429667] fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 16) rc = -22
>> [ 2904.429883] fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 15) rc = -22
>> [ 2904.429885] CIFS VFS: cifs_mount failed w/return code = -22
>>
>>
>> Is this a known issue?
>>
> Samba doesn't support SMB2.1 protocol - 2.0 only. We need to add a
> mount option vers=2.0 to enable Samba support.
>
Ah, ok. I see
enum smb_version {
Smb_1 = 1,
Smb_21,
Smb_30,
};
So, at the current state we won't be able to use smb2 client with Samba
server, right?
Thanks
--
Suresh Jayaraman
next prev parent reply other threads:[~2012-11-27 13:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-27 9:21 Mounting SMB2 fails with -EINVAL on 3.7-rc7 Suresh Jayaraman
[not found] ` <50B48601.6070000-IBi9RG/b67k@public.gmane.org>
2012-11-27 12:56 ` Pavel Shilovsky
[not found] ` <CAKywueT-Wi_gS8SNOQ+Ac-MNFNSuN_ni1BA8neQsy0836w6BvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-27 13:00 ` Suresh Jayaraman [this message]
[not found] ` <50B4B972.8070604-IBi9RG/b67k@public.gmane.org>
2012-11-27 13:21 ` Pavel Shilovsky
[not found] ` <CAKywueSm5K_H870mvQED02fqKoY8FTR=T+RhAo6hk3VzN3Jd4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-27 16:27 ` Steve French
[not found] ` <CAH2r5msNJSdS5Pq3+PY0Lndg0C22GR-27HNA8vzBVfT50x3uQA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-28 13:49 ` Pavel Shilovsky
[not found] ` <CAKywueSRRuCDJxDgnHURSGY9qAvc_kb4BuKMoMaxCbjh4UPrNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-11-28 16:08 ` Suresh Jayaraman
[not found] ` <50B6370F.2060402-IBi9RG/b67k@public.gmane.org>
2012-11-29 5:38 ` Steve French
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50B4B972.8070604@suse.com \
--to=sjayaraman-ibi9rg/b67k@public.gmane.org \
--cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=piastryyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.