Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1912794pxy; Mon, 2 Aug 2021 13:42:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYFZxnJhnowghDyhQao5eSv7SSrddqOgdIhRxMrjmX8ZKQNNRwUjBeP7g3TJFgrekcWjcF X-Received: by 2002:a5e:dc0c:: with SMTP id b12mr1975918iok.141.1627936931604; Mon, 02 Aug 2021 13:42:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627936931; cv=none; d=google.com; s=arc-20160816; b=tQfZD1/2yK9ejKm2YGdp6dgLGaALAMOYk/9faHiqypHTd1KGn0mToOVw8N7zLUjSe7 /YQFYkRb64Bc/tlEvPRDjqc6TZAGmziiyX4wBeku9JXQRqlcUUtYUQ79Nv/g48/7dlvF 57UsuYe8gC5CLWb/9epYIUImPrH6zisgKb6fMLUNDWN6jCZ6bo+ELLsZeL2hospvgpPC un8Cs9Yz/e/dx9E15Lf8LRjzFsO2krZEFav5/3SU4nFW1bruWTGoGgM5lFcMgyMEusm1 5dACVwz8V8+dajAE2vq3FoLQ9gZfxcF9Z/oBqYMEHslN/5DwRfP9yI9eDQ/lVe17PKcb Olpg== 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=q/UuuHCbZV3tHIdfne8YVZJEixvdkw4Um1I/o0Jqicg=; b=ZyQ9X7UyjCm5fcDB6JLwBkBVIBZjfeEd3jT52SnQIS3jRK3/ql8GBXyYLk54Hb+wDo hfT7K/Uy8hXKhsIW615CC+nwBnm4o8ayDiznooo2iBRPzYB694iaZhqMXBwKIhY/dkmH j3hGs/YgrJ5h/qq2EZWRzv4yJcabpjpMBnyYBudp67CfMKauO3cDDR5OK6WrxdWdg1m5 w5bMpSAzH4mE/9lHlg2dGN8sYdj5MLzgA+4TJ+7gx8JUekdQ9k2dtykriz2CMX4nsFjj SYF2xr+FsKRG3I2Mn/7/lNuSHD/6tYGrQuyX4h1djCijwzg/WIEUqhHRMljhp7wCHHyb SDfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=IcfNcaGl; 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 b8si13123783jav.94.2021.08.02.13.41.58; Mon, 02 Aug 2021 13:42:11 -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=IcfNcaGl; 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 S231338AbhHBUlg (ORCPT + 99 others); Mon, 2 Aug 2021 16:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231165AbhHBUlg (ORCPT ); Mon, 2 Aug 2021 16:41:36 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45561C06175F; Mon, 2 Aug 2021 13:41:26 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 304A86C0C; Mon, 2 Aug 2021 16:41:25 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 304A86C0C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1627936885; bh=q/UuuHCbZV3tHIdfne8YVZJEixvdkw4Um1I/o0Jqicg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IcfNcaGlpP6lHk2GKC5A2fO2xG/cg+HjALtkJo/TVtEcP0ElO4H+6JV/IP17JHEp6 ZWEJYj2SrqQQ/yFASOtKqCxEdkHzL11TWT70253S8kAuoXf+guvYScad2rCziLALFF rKZ/deGSqCkmXEwi65n7rYZcnM7/l7PPN+qCWZ9o= Date: Mon, 2 Aug 2021 16:41:25 -0400 From: "J. Bruce Fields" To: Patrick Goetz Cc: NeilBrown , 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: <20210802204125.GE6890@fieldses.org> References: <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> <20210802123930.GA6890@fieldses.org> <47101630-9d59-5818-34dd-3755e101fc18@math.utexas.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47101630-9d59-5818-34dd-3755e101fc18@math.utexas.edu> 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 03:32:45PM -0500, Patrick Goetz wrote: > On 8/2/21 7:39 AM, J. Bruce Fields wrote: > >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. > > For copy on right systems like ZFS, how could it be otherwise? I'm reacting to Neil's suggesting above, which (as I understand it) would result in different inode numbers. --b.