From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Aur=C3=A9lien?= Aptel Subject: Re: Does linux smb2 client supports DFS capability? Date: Thu, 12 Oct 2017 10:41:24 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Cc: samba-technical , "linux-cifs\@vger.kernel.org" , Hemanth Thummala To: Richard Sharpe , Steve French Return-path: In-Reply-To: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Richard Sharpe 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)