From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 References: <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <17763.1534350685@warthog.procyon.org.uk> <87pnyiew8x.fsf@xmission.com> <87tvnuz0ms.fsf@suse.com> In-Reply-To: <87tvnuz0ms.fsf@suse.com> From: Steve French Date: Thu, 16 Aug 2018 13:36:13 -0500 Message-ID: Subject: Re: Should we split the network filesystem setup into two phases? To: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Cc: "Eric W. Biederman" , David Howells , trond.myklebust@hammerspace.com, Anna Schumaker , Steve French , Steve Dickson , Al Viro , Linus Torvalds , ebiederm@redhat.com, linux-api@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel , LKML , linux-nfs@vger.kernel.org, CIFS , linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org List-ID: On Thu, Aug 16, 2018 at 12:23 PM Aur=C3=A9lien Aptel wrot= e: > > Steve French writes: > > In cifs we attempt to match new mounts to existing tree connections > > (instances of connections to a \\server\share) from other mount(s) > > based first on whether security settings match (e.g. are both > > Kerberos) and then on whether encryption is on/off and whether this is > > a snapshot mount (smb3 previous versions feature). If neither is > > mounted with a snaphsot and the encryption settings match then > > we will use the same tree id to talk with the server as the other > > mounts use. Interesting idea to allow mount to force a new > > tree id. > > We actually already have this mount option in cifs.ko, it's "nosharesock"= . Yes - good point. It is very easy to do on cifs. I mainly use that to sim= ulate multiple clients for testing servers (so each mount to the same server whether or not the share matched, looks like a different client, coming from a different socket and thus with different session ids and tree ids as well). It is very useful when trying to simulate multiple clients running to the s= ame server while using only one client machine (or VM). > > What was the NFS mount option you were talking about? > > Looking at the nfs man page the only one that looked similar > > was "nosharecache" The nfs man page apparently discourages its use: "As of kernel 2.6.18, the behavior specified by nosharecache is legacy caching behavior. This is considered a data risk" --=20 Thanks, Steve