Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1587247pxy; Mon, 2 Aug 2021 05:40:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeLOWK2l/YFwyPujn5GL/IMZKQd4i8//0p6PSc/sQc7pP6Mxk1ZDsxLQYQ9ubxIhiI2qAZ X-Received: by 2002:aa7:ce08:: with SMTP id d8mr16508708edv.174.1627908027805; Mon, 02 Aug 2021 05:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627908027; cv=none; d=google.com; s=arc-20160816; b=s2KK+//dnKnLK8d9nCd/qxiEzrbfmm2o3JIlvR19Bsr5vH/0jowR15+bFqZDDsfoPa dyyLw3JwRepZqS+Q/LLb+iLjyzzZFiDQyG7ffi//7ZXNGW/9JlZRD/dWrTKrJgn2eUvp rTWtXwi2azMH7A74klzHEbN9S0Mh7rX2dtw0ttMpDRBVz0Op5gMki8hfDUAv1Y1U/13l Vb7uNwCY7/VHPiEKCrJaadJ1kwa/S5rHNrNuaUDDOq5UV9usERQUbEQBniNNeTHbZGXy l9F6C7xsPCpTnx0XDev26DtzPC7h1kDp4SSzsllzrAMdIJVYQeVtJrGt777eEffdqkQr 4tRg== 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=zCce8ftdowQfi/L0q1jftMiDBXO9PLSkq+vXt4GZinM=; b=YbsMtRcQoyodRvG45lHZ74tSuIWv2CKtcsfVHkFi0obxI9v6WvO9V2BN6IRecih2b6 CMyWWalv0rgpqkAIAuNo/qj2jYMxqy/p0GsZS07jyoAlHlddOBLrx0QHAqns3PZHprqo JU4KFWBw3xKK7y7z9hs0AuO8hGyzTty2tBTT925zhwG3bVC7EdnCvvBGgmFkxDZa3jg/ ljwPlNVOCnew2w+iermLjRbL9vc4KfcTpk0uKgtA+HNm0WJ5zCu/FIbpDEH8XOHBqAp5 3JVIc/8+sNFBv4tOBGhsb2KGNUVnbRZvdOvak4CosVN3kpD7G2oPXXunN2am8NNgOQVL qEQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=QGgVB4gw; 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 w23si9373669edt.312.2021.08.02.05.39.53; Mon, 02 Aug 2021 05:40:27 -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=QGgVB4gw; 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 S232629AbhHBMjm (ORCPT + 99 others); Mon, 2 Aug 2021 08:39:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233663AbhHBMjm (ORCPT ); Mon, 2 Aug 2021 08:39:42 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E38C3C061760; Mon, 2 Aug 2021 05:39:32 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id CF8D47C76; Mon, 2 Aug 2021 08:39:30 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org CF8D47C76 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1627907970; bh=zCce8ftdowQfi/L0q1jftMiDBXO9PLSkq+vXt4GZinM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QGgVB4gwWgoiHBQM32jc7PjhkyETv3VD79IRBNfP8qCVrB+6Lrjmzqu6wLZodqfF3 ybMrKBrEZf7Rz1Yi6Vo1YiMLSG611FMqAyyQVa1psZzHtjF3y35z62whdBi2S1+RqC qA2u9NqkDqRwwABpsjEw0B3lN2dA+lvoxm19I2fk= Date: Mon, 2 Aug 2021 08:39:30 -0400 From: "J. Bruce Fields" To: NeilBrown Cc: Miklos Szeredi , Al Viro , Christoph Hellwig , Josef Bacik , Chuck Lever , Chris Mason , David Sterba , linux-fsdevel@vger.kernel.org, Linux NFS list , Btrfs BTRFS Subject: Re: A Third perspective on BTRFS nfsd subvol dev/inode number issues. Message-ID: <20210802123930.GA6890@fieldses.org> References: <162742539595.32498.13687924366155737575.stgit@noble.brown> <162742546548.32498.10889023150565429936.stgit@noble.brown> <162762290067.21659.4783063641244045179@noble.neil.brown.name> <162762562934.21659.18227858730706293633@noble.neil.brown.name> <162763043341.21659.15645923585962859662@noble.neil.brown.name> <162787790940.32159.14588617595952736785@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <162787790940.32159.14588617595952736785@noble.neil.brown.name> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Aug 02, 2021 at 02:18:29PM +1000, NeilBrown wrote: > For btrfs, the "location" is root.objectid ++ file.objectid. I think > the inode should become (file.objectid ^ swab64(root.objectid)). This > will provide numbers that are unique until you get very large subvols, > and very many subvols. If you snapshot a filesystem, I'd expect, at least by default, that inodes in the snapshot to stay the same as in the snapshotted filesystem. --b.