All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shinnosuke Yagi <yagi.shinnosuke-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
To: Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org>
Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: Source code of SMB2 Kernel module
Date: Tue, 02 Nov 2010 09:40:24 +0900	[thread overview]
Message-ID: <4CCF5DF8.9030809@nttcom.co.jp> (raw)
In-Reply-To: <4CCA7177.40303-l3A5Bk7waGM@public.gmane.org>

Thank you, Suresh.

I succeeded in building kernel and mount SAMBA share with mount.smb2.

However, it seems that mount.smb2 works as cifs client
(NOT works as SMB2 client).

Mount.smb2 doesn't offer to use SMB2 in it's SMB Negotiation Request.
(Payload is the same as that of mount.cifs .)

 From Windows Vista client, SMB2 works well, so server setting is valid.


Are there any mandatory settings (such as environment variables)
  to run mount.smb2 as SMB2 client?



"cifs" is displayed in File system type field of mount output.
===================================================================
  # mount.smb2 //server/share /mnt/smb2/ -o user=xxxx,pass=yyyy
  # mount
  ...
  //server/share on /mnt/smb2 type cifs (rw,mand)
===================================================================

Packet dump of SMB Negotioation packet of mount.smb2 is follow.
========================================================================
IP6 Client.57486 > Server.445: Flags [P.], seq 1:83, ack 1, win 90, 
options [nop,nop,TS val 5376161 ecr 758578309], length 82SMB PACKET: 
SMBnegprot (REQUEST)
  0x0000:  6000 0000 0072 0640 2002 0192 0168 0001  `....r.@.....h..
  0x0010:  f6ce 46ff fe31 e4ca 2002 0192 0168 0001  ..F..1.......h..
  0x0020:  1aa9 05ff fec0 4fd1 e08e 01bd 2987 d46a  ......O.....)..j
  0x0030:  5e7d 0568 8018 005a d677 0000 0101 080a  ^}.h...Z.w......
  0x0040:  0052 08a1 2d36 fc85 0000 004e ff53 4d42  .R..-6.....N.SMB
  0x0050:  7200 0000 0000 01c0 0000 0000 0000 0000  r...............
  0x0060:  0000 0000 0000 6d5b 0000 0100 002b 0002  ......m[.....+..
  0x0070:  4c4d 312e 3258 3030 3200 024c 414e 4d41  LM1.2X002..LANMA
  0x0080:  4e32 2e31 0002 4e54 204c 4d20 302e 3132  N2.1..NT.LM.0.12
  0x0090:  0002 504f 5349 5820 3200                 ..POSIX.2.
========================================================================



Thanks.


(2010/10/29 16:02), Suresh Jayaraman wrote:
>
> Just comment out the line
>
> obj-$(CONFIG_CIFS_COMMON)       += cifs_common/
>
> in fs/Makefile and try. Seems Steve's fix is still missing in the smb2.git.
>
>


-- 
-------------------------------------
八木 清之介 (ヤギ シンノスケ)
NTTコムウェア株式会社
ネットワーク・ソリューション事業本部
yagi.shinnosuke-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org
-------------------------------------

  parent reply	other threads:[~2010-11-02  0:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  4:26 Source code of SMB2 Kernel module Shinnosuke Yagi
     [not found] ` <4CC65859.7040100-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
2010-10-26  5:16   ` Suresh Jayaraman
     [not found]     ` <4CC6642F.2040401-l3A5Bk7waGM@public.gmane.org>
2010-10-29  6:55       ` Shinnosuke Yagi
     [not found]         ` <4CCA6FD3.4060907-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
2010-10-29  7:02           ` Suresh Jayaraman
     [not found]             ` <4CCA7177.40303-l3A5Bk7waGM@public.gmane.org>
2010-11-02  0:40               ` Shinnosuke Yagi [this message]
     [not found]                 ` <4CCF5DF8.9030809-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
2010-11-03  9:02                   ` Suresh Jayaraman
     [not found]                     ` <4CD12521.2020708-l3A5Bk7waGM@public.gmane.org>
2010-11-05  1:13                       ` Shinnosuke Yagi
     [not found]                         ` <4CD35A27.4050605-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
2010-11-05  1:49                           ` Steve French
     [not found]                             ` <AANLkTinm718oZX2Qc4++W_CYkv0+RZRwr09Uzu4zcDn0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-08  2:58                               ` Shinnosuke Yagi
     [not found]                                 ` <4CD76751.8010700-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
2010-11-08  4:53                                   ` Steve French
     [not found]                                     ` <AANLkTimx3ukvAjmuf5KQ3dSLVhpaF51pXcOfS1E_iFhY-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-08  5:03                                       ` Suresh Jayaraman
     [not found]                                         ` <4CD784AB.3040805-l3A5Bk7waGM@public.gmane.org>
2010-11-09  3:49                                           ` Shinnosuke Yagi
     [not found]                                             ` <4CD8C4E6.5080603-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
2010-11-09  4:05                                               ` Steve French
2010-11-10  7:48                                                 ` Shinnosuke Yagi
     [not found]                                                   ` <4CDA4E5C.90004-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
2010-11-10  8:04                                                     ` Suresh Jayaraman
     [not found]                                                       ` <4CDA5225.8000309-l3A5Bk7waGM@public.gmane.org>
2010-11-10  8:35                                                         ` Shinnosuke Yagi
     [not found]                                                           ` <4CDA5955.50409-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org>
2010-11-12  5:16                                                             ` Shinnosuke Yagi

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=4CCF5DF8.9030809@nttcom.co.jp \
    --to=yagi.shinnosuke-o7dwnd6vfthqq2nvvmke/a@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sjayaraman-l3A5Bk7waGM@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.