Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2574892imm; Thu, 16 Aug 2018 11:45:38 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx+xhm/nNNBapIRphAy8lXOqMkiJt9bSzW2kBmqo/Dre6+o8N4T6Qo/MZae7M069Jys5OgV X-Received: by 2002:a63:e206:: with SMTP id q6-v6mr30205326pgh.223.1534445138613; Thu, 16 Aug 2018 11:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534445138; cv=none; d=google.com; s=arc-20160816; b=r+OL75cqzE7CGzO5EbFbczcJwyV98Ga+sKi/Zj3dQI5MNhu6urJRqpN2gvcqEQQ2Cl jJx10xC4QuRQk2f+Bkgkmfgx0x986xmyL0sNphUV/IQPS9qBVJ567lkPCvBeRqIyRoeZ 0IXkVytRdeqbctWMjtuht7ldmePa0ZweWCc6D8ynd/xsRVfL2vC8kKR3Q30yjSYxCYZi 67za6nEqfyRpWsoyd9jJHPAk1Mqicb3NT1bpyGGGeYtt7H3P64vnEfCmLuwFbT3fbEHF gWFahHP5ZePz3gzr8SbgejmJsf380MKxb54U/eMukcNbjweUnIS3W83hZwaO8TQr2TQA czbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=i9pFJBq24KRYK273d5wToUZtyPASu+oWEZ/t8Kj+OMM=; b=LbuNRAe0gOov59k1mC82kUOz6iGttTJB7P+TGGTvF6WOsxlfbaAKP5/2BzfIfaTK6l 3VTXAtC2/yNRrLHC3DYyUuULj2dpcoG9R4VAktZ+Npt/sTdJBInyJVv34m/klgnHQzvf dVQMINnI8acnGOAwzAk4CFbqKAl0+BCZFkRZdrZ5+5oplCevy/OEyFeonrdDTmf+MekJ VUQg5pPkmuafjBDQGKbijmXXX9W55/bhWMUGcdIkPdtEDYPFjEu2dRmkIC1K25QQ95Gi 65LQIts6cxlbxZ5V03nmY0npQ1uCbRu9NrAMY0ZSh9huPEzNCfSNMS2QwTlX7Eji2nqw 1iOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YCkO9UM3; 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 l67-v6si41150pfl.167.2018.08.16.11.45.23; Thu, 16 Aug 2018 11:45:38 -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=YCkO9UM3; 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 S2404216AbeHPTYi (ORCPT + 99 others); Thu, 16 Aug 2018 15:24:38 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39054 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389145AbeHPTYh (ORCPT ); Thu, 16 Aug 2018 15:24:37 -0400 Received: by mail-pf1-f196.google.com with SMTP id j8-v6so2247138pff.6; Thu, 16 Aug 2018 09:25:08 -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; bh=i9pFJBq24KRYK273d5wToUZtyPASu+oWEZ/t8Kj+OMM=; b=YCkO9UM3uzgP23V7s5h8hky6Pv61hLg6cr0i13pvN7zCry6VHw6S5reGOGqSX37XoB 1dTkMedAaGvTY/tiUUOWP9airR3xaUAIn+hBrT7UxPlp4yLb0rgDKRNlGuPZp5P09bWS VZT3H4IZSGOBZAdz1pYtvng1DInuB4zgSXrxgLf795uj6N8xfxib2K/Yc5xkQ1wd4Tmj 0g3Fuu3ET3KYz3FFKCUNqan+mFf7AL++QhZ4vBLLNuQyjgI7UVg/qVuRNwIbZHtL5n0g Xub0PFx1a0mcyQxYKpnnMcYFOvcfuwYOGg+7n+kvv5ZV8zCRB4aKEUPeKzOfKZCW0cFb EEyA== 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; bh=i9pFJBq24KRYK273d5wToUZtyPASu+oWEZ/t8Kj+OMM=; b=Wkv3zCs5q6ZgJDRx4S/QFW7MNGdWOlJ9Wm6obbl1Q/njzqvsNNNL56sqsX6DHgWeCt 4bUeWde/TMV2vA9zf83VHn5RjfB/OY73x9CLYnzfbnmyTUy1TzazyRzdhy+BM3oZfMUv KO1BXz4fcTkjTTOWJG0pKNK0NFjyI1yM4sYOLpTcDBC3a1FgswJOi1mOMa95WY4fghLO YD+e7/VuIwlqVQ/e0ZtVa6CqbtmS7h0swjaPcBNHfqCZuidq7Zl/7AbgqzDxIhdFxjbT Lxzu2G7u6A4GQJDptACloLMZpl/L9aeS1FJhryXnwkkun/MIMjhUs3LyfF5KZm3nW4Pw bkww== X-Gm-Message-State: AOUpUlFfKFJlhIQ1iCdNVdDXf8slLyCE5257ajniVGbJPAFewpoKvLBm YHTb3Tvi8A9ZLG3Smeyy2i3m6wT0APT8Ff/QEWU= X-Received: by 2002:a63:6b86:: with SMTP id g128-v6mr30112713pgc.344.1534436708074; Thu, 16 Aug 2018 09:25:08 -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> In-Reply-To: <87pnyiew8x.fsf@xmission.com> From: Steve French Date: Thu, 16 Aug 2018 11:24:56 -0500 Message-ID: Subject: Re: Should we split the network filesystem setup into two phases? To: "Eric W. Biederman" Cc: 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" 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 2:56 AM Eric W. Biederman wrote: > > David Howells writes: > > > Having just re-ported NFS on top of the new mount API stuff, I find that I > > don't really like the idea of superblocks being separated by communication > > parameters - especially when it might seem reasonable to be able to adjust > > those parameters. > > > > Does it make sense to abstract out the remote peer and allow (a) that to be > > configured separately from any superblocks using it and (b) that to be used to > > create superblocks? > At least for devpts we always create a new filesystem instance every > time mount(2) is called. NFS seems to have the option to create a new > filesystem instance every time mount(2) is called as well, (even if the > filesystem parameters are the same). And depending on the case I can > see the attraction for other filesystems as well. > > So I don't think we can completely abandon the option for filesystems > to always create a new filesystem instance when mount(8) is called. 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. What was the NFS mount option you were talking about? Looking at the nfs man page the only one that looked similar was "nosharecache" > I most definitely support thinking this through and figuring out how it > best make sense for the new filesystem API to create new filesystem > instances or fail to create new filesystems instances. Yes - it is an interesting question. -- Thanks, Steve