Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1013281imm; Wed, 15 Aug 2018 09:53:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzkt5tpD1DkT/EV54Evr7AjnkMl3E3DgZUdY8MafARM46gvTzHE6Y0V1iIRYgrt6er+eBOi X-Received: by 2002:a63:e056:: with SMTP id n22-v6mr26147470pgj.205.1534352009768; Wed, 15 Aug 2018 09:53:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534352009; cv=none; d=google.com; s=arc-20160816; b=jJwChUBaA73/eHwWPdYtRVPyGOhaFiY1Xtd4NuYKHCKVeLdpRzMAQ+gXk1CoK+Be+0 8WPQMqzM4Lz5WoF2ADZ7RsYEEHEWtspLYxjzAkLSU1dtXJXaW/HGmp9e9yEYV9zL2F/e nWeRqCPgWrM/EwBpGK4YJZTNpN6jETLPCtFuJymmrUb7VFk5WBqKXknDnslhyzhY7x7n cu++BXiPgqISYwutjxb8g6X18c0XzxCR9IxQk7s9zgSP7IGWQWgQ4FdEVp7MAJrYiNXw YNVe8meMtnBCwntpXaMr8ymNS2f0dZNP5Kk1bXgrQOi8Q5YspgZUoBSkbd07MqERrOi2 gpwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=2w38piqzLfuMQZT6N2ceqvVw20xgZyYBNz1J15/zuzs=; b=gxw/23pcGtY+oTDLEEsOgCTlWpU1zuI9IULhX9rTiBDKKWh0xqAu7ix5gYjxkxtipW cPZmePKiqP4YoJcCGAyQStleM+u4EM2759qdCAC/63I50ErKpjHIymUkmJlCzcTtWx0I xlG3gyuGAFx3BBdE4akYvJXmyX2nLOizjEE4JeXbb43g8q7NIBPr0iMg9KU5OSW3oSWo AtNiaZmREohMGJ6DpOVBoG21qUlSe4/KW+zMYfmHoUH2n+v0zU+OuOywzO29Ip1/yvzx OtOClMlxcd0Jyg3OiTe/HtMth4HR9wlOm9gpPT6RxNxiQ1ohe0BgmVb4iroAX9dfGIfM h8Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=REQGXvVS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q11-v6si21593470pli.86.2018.08.15.09.53.14; Wed, 15 Aug 2018 09:53:29 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=REQGXvVS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730033AbeHOToe (ORCPT + 99 others); Wed, 15 Aug 2018 15:44:34 -0400 Received: from mail-pf1-f176.google.com ([209.85.210.176]:33330 "EHLO mail-pf1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729650AbeHOToe (ORCPT ); Wed, 15 Aug 2018 15:44:34 -0400 Received: by mail-pf1-f176.google.com with SMTP id d4-v6so752223pfn.0 for ; Wed, 15 Aug 2018 09:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2w38piqzLfuMQZT6N2ceqvVw20xgZyYBNz1J15/zuzs=; b=REQGXvVSzM4JIWp0ri3/lQWIMBNG/UCtwg5ji6Lp3OtzmdFCkLT//CxdIT7kSd3z4K MoMb5r+ZRRja9nkm5SI2wDpC0kEbIIjtFdTSPjEAeKcDiBeFIgZ58kIgv0DwuktdOJGg 9jVXJxK4Ky3wxJwABRx0lGrzs9qKAm/M1hk3fLILiyCZm+RzYJ3RDh8FoFSdkzLXi7a0 72hIn/M59bO78Lg5twSvYGKqPNahHS8uJFfZE+zrZ/mBKUczVrLiaz3V5dTeYvONgarE a0OruviJG/7GlLYgKAEZdOQEliCu397KYQXzM2aK/pgJRghtXNmQ0vH6McWxP5FXxiP0 3afg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=2w38piqzLfuMQZT6N2ceqvVw20xgZyYBNz1J15/zuzs=; b=uGke1pnd4m8JyVrioB2eHYTbqydGd2Na0ghIpLXTvRMpre7dt5h/eQQDMciGPNPB5+ W7zS73iVOCpM8oJ3VSndc6VLMKuM0cHcUNRxMlwpQMfspJrNSXVNMjOKutqBOdFh3qWF LBr+PuomghbXGvYwOgEkdSL5/Fvdsmv11dRyQAhTVxnXEyAjJrV2k+Ep1q5hHHADDhJe 1S7MjIpF6e+ouFNWSrq0QwLqxny5gmdBA/UhRiEARPMLpquwzorU0bQGI6Sgz2FU6aIG ZQrkgg486SkYPLcBz3eBfYB7PLXo2BZ4fWHtZCdmOj3joe+RbnemjPeXMmf1DEbsZE/g i4bQ== X-Gm-Message-State: AOUpUlFT8it+CNHY2s9sotyc0DIYO4Vj6ye8TRZCXfKtSIsAo09MvkQj /31nBuC/0478QY+Khaf01pQhdw== X-Received: by 2002:a63:b213:: with SMTP id x19-v6mr25592505pge.393.1534351899223; Wed, 15 Aug 2018 09:51:39 -0700 (PDT) Received: from ?IPv6:2600:1010:b010:3fbd:7d76:67ee:fa0f:6b7f? ([2600:1010:b010:3fbd:7d76:67ee:fa0f:6b7f]) by smtp.gmail.com with ESMTPSA id v3-v6sm61566635pgb.54.2018.08.15.09.51.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Aug 2018 09:51:37 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: Should we split the network filesystem setup into two phases? From: Andy Lutomirski X-Mailer: iPhone Mail (15G77) In-Reply-To: <17763.1534350685@warthog.procyon.org.uk> Date: Wed, 15 Aug 2018 09:51:36 -0700 Cc: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com, sfrench@samba.org, steved@redhat.com, viro@zeniv.linux.org.uk, torvalds@linux-foundation.org, "Eric W. Biederman" , linux-api@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, v9fs-developer@lists.sourceforge.net Content-Transfer-Encoding: quoted-printable Message-Id: References: <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <17763.1534350685@warthog.procyon.org.uk> To: David Howells Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Aug 15, 2018, at 9:31 AM, David Howells wrote: >=20 > 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. >=20 > Does it make sense to abstract out the remote peer and allow (a) that to b= e > configured separately from any superblocks using it and (b) that to be use= d to > create superblocks? >=20 > Note that what a 'remote peer' is would be different for different > filesystems: ... I think this looks rather nice. But maybe you should generalize the concept= of =E2=80=9Cpeer=E2=80=9D so that it works for btrfs too. In the case where= you mount two different subvolumes, you=E2=80=99re creating a *something*, a= nd you=E2=80=99re then creating a filesystem that references it. It=E2=80=99= s almost the same thing. >=20 >=20 >=20 > fs =3D fsopen("nfs", 0); > fsconfig(fs, FSCONFIG_SET_PEER, "peer.1", NULL, peer1); As you mention below, this seems like it might have namespacing issues. > =20 > In terms of alternative interfaces, I'm not sure how easy it would be to m= ake > it like cgroups where you go and create a dir in a special filesystem, say= , > "/sys/peers/nfs", because the peers records and names would have to be net= work > namespaced. Also, it might make it more difficult to use to create a root= fs. >=20 > On the other hand, being able to adjust the peer configuration by: >=20 > echo 71 >/sys/peers/nfs/server.home/timeo >=20 > does have a certain appeal. >=20 > Also, netlink might be the right option, but I'm not sure how you'd pin th= e > resultant object whilst you make use of it. >=20 My suggestion would be to avoid giving these things names at all. I think th= at referring to them by fd should be sufficient, especially if you allow the= m to be reopened based on a mount that uses them and allow them to get bind-= mounted somewhere a la namespaces to make them permanent if needed. > A further thought is that is it worth making this idea more general and > encompassing non-network devices also? This would run into issues of some= > logical sources being visible across namespaces and but not others. Indeed :) It probably pays to rope a btrfs person into this discussion.