Linux CIFS filesystem development
 help / color / mirror / Atom feed
* Re: Does linux smb2 client supports DFS capability?
       [not found]       ` <mpszi8x9a8i.fsf-zpEvHKhluMwYitT5tn2FcQ@public.gmane.org>
@ 2017-10-11 14:25         ` Steve French
       [not found]           ` <CAH2r5muEvnMZT9L-hvO-7o=fsaRU28KZEJA+3dgzmNyn4nVH5Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Steve French @ 2017-10-11 14:25 UTC (permalink / raw)
  To: Aurélien Aptel, samba-technical,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
  Cc: Hemanth Thummala

If you are checking if the SMB3 DFS enablement has been added to your
kernel (if your kernel is older than version 4.11), you could look to
see if the equivalent of this patch (it is part of a small series of
DFS related patches, but would be one of the more visible ones in the
series)

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/cifs?id=9d49640a21bffd730a6ebf2a0032e022f7caf84a


On Wed, Oct 11, 2017 at 6:47 AM, Aurélien Aptel <aaptel-IBi9RG/b67k@public.gmane.org> wrote:
> Hi,
>
> Hemanth Thummala <hemanth.thummala-8cO4VLV/4DJBDgjK7y7TUQ@public.gmane.org> writes:
>> If so, Can you please let me know (or point me a link) the version of cifs-utils in which support is available.
>> I have tested with cifs-util-6.2 version. This doesn’t have the DFS support.
>
> cifs-util only contains the source code of the the mount.cifs program,
> which doesn't do much. The SMB client code lives in the cifs kernel
> module. To use DFS with SMB2 you need to use linux kernel v4.11 or
> newer.
>
> Cheers,
>
> --
> Aurélien Aptel / SUSE Labs Samba Team
> GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
> SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
> GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)



-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does linux smb2 client supports DFS capability?
       [not found]           ` <CAH2r5muEvnMZT9L-hvO-7o=fsaRU28KZEJA+3dgzmNyn4nVH5Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-10-11 16:42             ` Richard Sharpe
       [not found]               ` <CACyXjPzwUx4T7DnvtX55PrtAE9Tj1iPryZNhfStDWkGW3JrDDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Sharpe @ 2017-10-11 16:42 UTC (permalink / raw)
  To: Steve French
  Cc: Aurélien Aptel, samba-technical,
	linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Hemanth Thummala

On Wed, Oct 11, 2017 at 7:25 AM, Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> If you are checking if the SMB3 DFS enablement has been added to your
> kernel (if your kernel is older than version 4.11), you could look to
> see if the equivalent of this patch (it is part of a small series of
> DFS related patches, but would be one of the more visible ones in the
> series)
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/cifs?id=9d49640a21bffd730a6ebf2a0032e022f7caf84a
>
>
> On Wed, Oct 11, 2017 at 6:47 AM, Aurélien Aptel <aaptel-IBi9RG/b67k@public.gmane.org> wrote:
>> Hi,
>>
>> Hemanth Thummala <hemanth.thummala-8cO4VLV/4DJBDgjK7y7TUQ@public.gmane.org> writes:
>>> If so, Can you please let me know (or point me a link) the version of cifs-utils in which support is available.
>>> I have tested with cifs-util-6.2 version. This doesn’t have the DFS support.
>>
>> cifs-util only contains the source code of the the mount.cifs program,
>> which doesn't do much. The SMB client code lives in the cifs kernel
>> module. To use DFS with SMB2 you need to use linux kernel v4.11 or
>> newer.
>>
>> Cheers,

I think their real interest is in the CIFS FS getting DFS referrals if
STATUS_PATH_NOT_COVERED is returned on a CREATE.

When I last looked the client could not do that.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does linux smb2 client supports DFS capability?
       [not found]               ` <CACyXjPzwUx4T7DnvtX55PrtAE9Tj1iPryZNhfStDWkGW3JrDDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-10-12  8:41                 ` Aurélien Aptel
  0 siblings, 0 replies; 3+ messages in thread
From: Aurélien Aptel @ 2017-10-12  8:41 UTC (permalink / raw)
  To: Richard Sharpe, Steve French
  Cc: samba-technical, linux-cifs@vger.kernel.org, Hemanth Thummala

Richard Sharpe <realrichardsharpe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> I think their real interest is in the CIFS FS getting DFS referrals if
> STATUS_PATH_NOT_COVERED is returned on a CREATE.
>
> When I last looked the client could not do that.

cifs.ko should be able to traverse a DFS link on the FS, after the DFS
mounted. My testing setup when I worked on this was the following:

//A/root
       |
       +- link -> //B/target
       +- sublink -> //B/target/sub

//B/target
       |
       + sub/
          |
          + dir/
              |
              + files..

And I had a script
- mounting //A/root and running cd&ls in /, /link, /link/sub,
  /link/sub/dir, /sublink, /sublink/dir
- mounting //A/root/link and running cd&ls in /, /sub, /sub/dir
- mounting //A/root/link/sub and running cd&ls in /, /dir
- mounting //A/root/sublink and running cd&ls in /, /dir
- mounting //A/root/sublink/dir and running cd&ls in /

And all worked for vers={1.0,3.0}, A being {samba, Windows Server 2016},
B being {samba, Windows Server 2012 R2} when I submitted the patches.

-- 
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-12  8:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <FBFAFA79-EEBE-4F0F-B898-19D2A8096E62@nutanix.com>
     [not found] ` <mpsk2a4l69q.fsf@suse.com>
     [not found]   ` <B4C283AF-91A2-435A-85A6-DAE11A90DB6D@nutanix.com>
     [not found]     ` <mpszi8x9a8i.fsf@aaptelpc.suse.de>
     [not found]       ` <mpszi8x9a8i.fsf-zpEvHKhluMwYitT5tn2FcQ@public.gmane.org>
2017-10-11 14:25         ` Does linux smb2 client supports DFS capability? Steve French
     [not found]           ` <CAH2r5muEvnMZT9L-hvO-7o=fsaRU28KZEJA+3dgzmNyn4nVH5Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-11 16:42             ` Richard Sharpe
     [not found]               ` <CACyXjPzwUx4T7DnvtX55PrtAE9Tj1iPryZNhfStDWkGW3JrDDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-10-12  8:41                 ` Aurélien Aptel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox