From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shinnosuke Yagi Subject: Re: Source code of SMB2 Kernel module Date: Wed, 10 Nov 2010 17:35:33 +0900 Message-ID: <4CDA5955.50409@nttcom.co.jp> References: <4CC65859.7040100@nttcom.co.jp> <4CC6642F.2040401@suse.de> <4CCA6FD3.4060907@nttcom.co.jp> <4CCA7177.40303@suse.de> <4CCF5DF8.9030809@nttcom.co.jp> <4CD12521.2020708@suse.de> <4CD35A27.4050605@nttcom.co.jp> <4CD76751.8010700@nttcom.co.jp> <4CD784AB.3040805@suse.de> <4CD8C4E6.5080603@nttcom.co.jp> <4CDA4E5C.90004@nttcom.co.jp> <4CDA5225.8000309@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Steve French , linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Suresh Jayaraman Return-path: In-Reply-To: <4CDA5225.8000309-l3A5Bk7waGM@public.gmane.org> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: I patched and tried to mount again. I mount successfully by smb2. However, Kernel clashed when I accessed to mounted FS. I couldn't got any logs, because I did not set kdump. I will try to get a clashed kernel dump. Please wait. Thanks. (2010/11/10 17:04), Suresh Jayaraman wrote: > On 11/10/2010 01:18 PM, Shinnosuke Yagi wrote: >> >> I added some logging messages. >> >> # git diff fs/smb2/smb2fs.c >> diff --git a/fs/smb2/smb2fs.c b/fs/smb2/smb2fs.c >> index aa550a3..52c9f35 100644 >> --- a/fs/smb2/smb2fs.c >> +++ b/fs/smb2/smb2fs.c >> @@ -57,7 +57,7 @@ static struct quotactl_ops smb2_quotactl_ops; >> >> /* Definitions of various global variables follow */ >> >> -int smb2FYI; >> +int smb2FYI =3D 1; >> int smb2ERROR =3D 1; >> int trace_SMB2; >> >> I got following logs on dmesg. >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D >> FS-Cache: Netfs 'smb2' registered for caching >> fs/smb2/smb2fs.c: SMB2_max_buf_size 0x4000 >> fs/smb2/smb2fs.c: smb2_init_request_bufs 0 >> fs/smb2/smb2fs.c: register_filesystem 0 >> fs/smb2/smb2fs.c: register_key_type -17 > > -17 is -EEXIST which means ket type with the name is already present. > The below patch should fix the problem I think. Could you try and > report back? > > > From: Suresh Jayaraman > Subject: [PATCH] smb2: rename smb2 spnego key type > > .. to avoid key registration failure. register_key_type() doesn't all= ow key > types with same names. > > Reported-by: Shinnosuke Yagi > Signed-off-by: Suresh Jayaraman > --- > fs/smb2/smb2_spnego.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/smb2/smb2_spnego.c b/fs/smb2/smb2_spnego.c > index 6551002..24df95a 100644 > --- a/fs/smb2/smb2_spnego.c > +++ b/fs/smb2/smb2_spnego.c > @@ -61,7 +61,7 @@ smb2_spnego_key_destroy(struct key *key) > * keytype for SMB2 spnego keys > */ > struct key_type smb2_spnego_key_type =3D { > - .name =3D "cifs.spnego", > + .name =3D "smb2.spnego", > .instantiate =3D smb2_spnego_key_instantiate, > .match =3D user_match, > .destroy =3D smb2_spnego_key_destroy, > > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs"= in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > > --=20 ------------------------------------- =E5=85=AB=E6=9C=A8 =E6=B8=85=E4=B9=8B=E4=BB=8B =EF=BC=88=E3=83=A4=E3=82= =AE=E3=80=80=E3=82=B7=E3=83=B3=E3=83=8E=E3=82=B9=E3=82=B1=EF=BC=89 NTT=E3=82=B3=E3=83=A0=E3=82=A6=E3=82=A7=E3=82=A2=E6=A0=AA=E5=BC=8F=E4=BC= =9A=E7=A4=BE =E3=83=8D=E3=83=83=E3=83=88=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=BB=E3=82=BD= =E3=83=AA=E3=83=A5=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E4=BA=8B=E6=A5=AD= =E6=9C=AC=E9=83=A8 yagi.shinnosuke-o7dWnD6vFTHqq2nvvmkE/A@public.gmane.org -------------------------------------