Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2578698imm; Thu, 16 Aug 2018 11:50:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPysRR7G1l98wGgGDqBIgKbPHBz61fcYxCQB9SjeupIcOVclIAeE2FSM19A+eUt1kSANvEGE X-Received: by 2002:a62:280a:: with SMTP id o10-v6mr30408696pfo.129.1534445405967; Thu, 16 Aug 2018 11:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534445405; cv=none; d=google.com; s=arc-20160816; b=szZVSqxUR9DOJMos+97KjBNuKOayypON4OuxwddjDLdPeMFSxCYBFItXjzYxx6s5Oe 44fKIIX3BMwsiVypg32agu55C+MxP2RXcL8ZEWvbTtnG04N3Zz5A4Kvkp61jKjii5ZP6 0D+PnvTHzLUGDc8uYMZcwB0P7T/MuAnSOUrPffPuH8fIF2On3yysRepNYpXL8MXew801 jAiMsxaYAtLecoLyyeWa0y0Tn0OcQcikI+IOaghcPo1UyshfiUWrI91fSsYTBIUn9tMt /e4+B7cw1N5E7Ken0tbKasyDwBxldrKcYNAwuJZwNdlpleEgaSN5AiQQHVn+Fpb226hX 4MXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=/liKSTknX/gmM/wkBQoDje8mWaRjo2SjCqgInwvJeiU=; b=ZkORfSabv/nHwSusflEOW37zc1kfDQ3Cb0dvhdJjP7+BdB8S5CESApEJQHGaE62k1I 3v1BKutCg7JcKLV+5/kxnBfHykDsyfOX+Vyi3kQ4SCbVxmwCYeG1pCu9Stxn54IFTYnw RI96LEthOjTJI3ufVX4ZEal+ix9HcsftW25Kbq9tR9JWoIL69AAUF7b7MBv+alWdWrD3 0jPGyGG6I4JhPaIJ5JtBLlH6IkWsDkYXJ+zYlv+mQIVjHoGfyiOwzBwlTC3ECScgBAF6 tKaejMXzqbGGqgydLAcZAlqatidTPuGLNz3tXGiHZCFRPbKlSDXMRJSbjfywSzy54KW+ +F/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aQRML6m5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 85-v6si25970pgh.381.2018.08.16.11.49.50; Thu, 16 Aug 2018 11:50:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aQRML6m5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727958AbeHPVgb (ORCPT + 99 others); Thu, 16 Aug 2018 17:36:31 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:47000 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbeHPVga (ORCPT ); Thu, 16 Aug 2018 17:36:30 -0400 Received: by mail-pg1-f196.google.com with SMTP id f14-v6so2430825pgv.13; Thu, 16 Aug 2018 11:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=/liKSTknX/gmM/wkBQoDje8mWaRjo2SjCqgInwvJeiU=; b=aQRML6m5RlpRbdvuPpiVejCxsGqD9YyZWq5QD4Op3rjWRlu03gC0Akp/6dZFrSBP60 vrYVqQNASAU31ViTQQl+c+Ex2c//nM3RR/+girCjSGsv9MUp7UXVkXVOwYarAJJ7Wa/R z//9mfjHX9GOV2Wll0nzwpXBIUVzlc5ykfF1pTBpMm9kRK0/EDe6KFQB0iOlW3cEubKs 8FTUoiStK9KaCH5Rkr/1myBtlEWll1+NXENUl+diNcGl/lphecvmR9iLDyf/y06dpZG0 s6d0GWh2gJqLeMe/u5rNIqzh+YEMCm4eyC/7bOHdMM93Dvd1iVNj67IAOIsEI8yHpp+G o5Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/liKSTknX/gmM/wkBQoDje8mWaRjo2SjCqgInwvJeiU=; b=JicVCGi6J4QLRKZF61T+ubkJHbn2wZCBKbi8WBhcr+eTqkJabbavg8FKYGyISE7uJj vuy+qgVAz3Jn6DpJypgwccgS1Na3djwz41SHed8gWxMFreXRKRA0ujeqSdciaZM1cVKA G/I72ZH2z6IraU7wNJ2Nz/jjYws4fXEAm3cFtfYxHqo1hkXG/HmXImvC+nc90VETooXk aTWUq7hGQNgdJMprElM7bB+5w/fxkFE0j55NLAU7rIJzbGua1nImoefedWHhcAahpGNw 78fgRsnElS2NotiWWUxnSO/+SQ02SxkWf8LUMHrrqoKIH/CXM3Lc0z9GIM66AsunVd3A WIfA== X-Gm-Message-State: AOUpUlEQK+YKoNlCH8Wx17WlXFgposx6sBCZwo6rAl4XCIjvO+eRwiTX ULlXDT+DG9oYqEhWEvzSY9C5muWitf0QZPoBH6s= X-Received: by 2002:a63:2643:: with SMTP id m64-v6mr2696766pgm.55.1534444584486; Thu, 16 Aug 2018 11:36:24 -0700 (PDT) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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