Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp622862pxu; Wed, 7 Oct 2020 11:21:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC4T25AubL/brVNRuHpoOnqBPoC3zEGEJoukqwljPMk6LXc9KhfRYauTdrjrpRyV/F3L2e X-Received: by 2002:a50:b023:: with SMTP id i32mr4329622edd.357.1602094919427; Wed, 07 Oct 2020 11:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602094919; cv=none; d=google.com; s=arc-20160816; b=Xv9n68WHlZ7Oa7e0m3w7v6sff11rQNPeA/U4pNzzI6rW6naNSGMY3WMBcuKi76hWOx j4TzLDRxcMZDyNzxRKKTKBnZlcjnFrcr6A1XiuI2+ZMjy9jxe4kv8Y01Q13I7Nsllyo1 CED5PKOUpN1pJIpbD3KQc/4JWEuvcaBWeWN52M8ltXjPkICaYmsMkMm2FWbdBIPj28G/ V086v0wJDVp/DGmLauUQYGpKiZWvz6+JgBo24c9/guI1j36aNGmYVxOLuuJwt55/1PCI 22SEvgCg55v5DH4pF+R/iKrJzhF6sY0Q43WlD8ogWCU1KOdYwMhb7eRFJyWsbM6NrTDi MeMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=C20DbcdT9TPGzHPEZ8cIUOzZlHQG3fYNLlI/h+IjGDY=; b=0bacb7g/Y8T5zgu1OeF28CmUDVHM9cC3E9HAnIOILaB6iASFMApTxEPs9l3/d9BjHL KYufPuULXyDXQjO3MYk++AQXeF/zqmQDZrT+teF0BnR4qkkp7D5B0zzLYoiG5J8TBPI0 FLRCOUP/CpVT6Y/4giLsc4m2aMmo7vpRuSawp8MhQIYoWMu25B5F63TAo+hTJ63L7r2s 20KnuvSsMvWmJHrZDpkCoS5Wp+TdSPfzbReXhDlV/Sy6LHtwKAkuganmafpCV1LKHiFl yjKQRXMljTVEUGTsOmcRX8X2qWGfSakdnoK9mhuDAgKAOqFXbERakMPRc/xY4BOGF9LP bvXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=RHk56nVC; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si2081508edj.182.2020.10.07.11.21.34; Wed, 07 Oct 2020 11:21:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=RHk56nVC; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbgJGSFS (ORCPT + 99 others); Wed, 7 Oct 2020 14:05:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728305AbgJGSFP (ORCPT ); Wed, 7 Oct 2020 14:05:15 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A042C061755 for ; Wed, 7 Oct 2020 11:05:15 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id A270D4F3B; Wed, 7 Oct 2020 14:05:14 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org A270D4F3B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1602093914; bh=C20DbcdT9TPGzHPEZ8cIUOzZlHQG3fYNLlI/h+IjGDY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RHk56nVCDoB6f18ULDs5BoQ90f1/9rU4aac+Wc7X5a3lfWYoqog29jcFVvodJybuk KP9GoZ5PKVlpL14wQAzYTgeYfe6xJqwpDqDk6ZO88QBLPj17q9q9VkEL4ILYUl8n+O 39e8PBVWsNKlzSRENTKe1zSs9Jj6m9SNxDFpVbfM= Date: Wed, 7 Oct 2020 14:05:14 -0400 From: "bfields@fieldses.org" To: Trond Myklebust Cc: "linux-nfs@vger.kernel.org" , "aglo@umich.edu" , "bcodding@redhat.com" , "chuck.lever@oracle.com" Subject: Re: unsharing tcp connections from different NFS mounts Message-ID: <20201007180514.GG23452@fieldses.org> References: <20201007001814.GA5138@fieldses.org> <57E3293C-5C49-4A80-957B-E490E6A9B32E@redhat.com> <5B5CF80C-494A-42D3-8D3F-51C0277D9E1B@redhat.com> <8ED5511E-25DE-4C06-9E26-A1947383C86A@oracle.com> <20201007140502.GC23452@fieldses.org> <85F496CD-9AAC-451C-A224-FCD138BDC591@oracle.com> <20201007160556.GE23452@fieldses.org> <6d9aee613e9fb25509c9317910189ee37a2e4b43.camel@hammerspace.com> <20201007171559.GF23452@fieldses.org> <5998d49f790736aa49e7a2ac89b555bc99f3b543.camel@hammerspace.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5998d49f790736aa49e7a2ac89b555bc99f3b543.camel@hammerspace.com> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Oct 07, 2020 at 05:29:26PM +0000, Trond Myklebust wrote: > On Wed, 2020-10-07 at 13:15 -0400, Bruce Fields wrote: > > Yeah, honestly I don't understand the details of that case either. > > > > (There is one related thing I'm curious about, which is how close we > > are > > to keeping clients in different containers completely separate (which > > we'd need, for example, if we were to ever permit unprivileged nfs > > mounts). It looks to me like as long as two network namespaces use > > different client identifiers, the client should keep different state > > for > > them already? Or is there more to do there?) > > The containerised use case should already work. The containers have > their own private uniquifiers, which can be changed > via /sys/fs/nfs/net/nfs_client/identifier. I was just looking at that commit (bf11fbd20b3 "NFS: Add sysfs support for per-container identifier"), and I'm confused by it: it adds code to nfs/sysfs to get and set "identifier", but nothing anywhere that actually uses the value. I can't figure out what I'm missing. --b. > In fact, there is also a udev trigger for that pseudofile, so my plan > is (in my copious spare time) to write a /usr/lib/udev/nfs-set- > identifier helper in order to manage the container uniquifier, to allow > generation on the fly and persistence. > > -- > Trond Myklebust > Linux NFS client maintainer, Hammerspace > trond.myklebust@hammerspace.com > >