Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp543151pxv; Thu, 15 Jul 2021 09:53:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxY5UB41Yc+Q+FXCW04Yuci8TA92593dTLxqd/0/h8OawBYR4+SP7GdYZTi7iiYvuQPStn1 X-Received: by 2002:a17:906:f294:: with SMTP id gu20mr6675066ejb.292.1626367991198; Thu, 15 Jul 2021 09:53:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626367991; cv=none; d=google.com; s=arc-20160816; b=ozE7uEuQ6oG+wxkfNvVhf22l9gyIaUCt/dKZlgOGHMx6HSSa0tVjpu8uCqyW38HXUC hn9YhGlfukXQdX9hnTFo/ov65F4PI0yMRB5dYKUws+d2+vbq7rxGBUtlgdI03WwQMUzg j7S9lg1jZt27imui820DARbVZEg0jUt/PZ7s3xrL8KyWO2B2IcvMNed6JK4QCns8FdJL EPWOhisM/cApPHADIt67UnUk3+PBiwL1r0aHQm+WOjulE6iCAI250GtFeUq+1Rzxmll7 Shl/YnR2PwZ77qZmyJ72vubwRKNDyrXfVxGzx1ZjzWd0Y3uhUGgMRbFGZX3V8wifzUAl 0YhQ== 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=um4FevvC0GtfFwF+FGlJuSPjool50OiKU6H5RtnTrj8=; b=xrKPmhds8PiILb0LaJyTPvyoLYh3QwQIY+WvBqemj7w8VS7l4+hWuod41nmBcvTBEP qANfD+37YcH2qMpyRP90vH3czKcIC1uwi+jAikmJj/Hm98SXhnw5NHLrI/ZQyWBwB1uR CoKL2uDYzmxKeETVDOsujBQKo6o69H5+z97VLE1fcryj/U+hL0SLiBj10vXn81EGyTUY WSeqXcLRkBP/vOr/cgCTA/OpuJM5LN1smmqpxFsAMDW6TzKM1yVvreSwio3U0XBjrtPi fu+F9iYnbtkOhRpRVfkYHMDF422LzCtMp8QZ8eu+vOUZ1e8wnflyDo1g+yTM7EAUb4z5 i9VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b="cq6Lk/d7"; 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 a15si8649978edr.257.2021.07.15.09.52.35; Thu, 15 Jul 2021 09:53: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="cq6Lk/d7"; 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 S238465AbhGOPsa (ORCPT + 99 others); Thu, 15 Jul 2021 11:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238143AbhGOPsa (ORCPT ); Thu, 15 Jul 2021 11:48:30 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31629C06175F; Thu, 15 Jul 2021 08:45:37 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 033DF69D6; Thu, 15 Jul 2021 11:45:35 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 033DF69D6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1626363935; bh=um4FevvC0GtfFwF+FGlJuSPjool50OiKU6H5RtnTrj8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cq6Lk/d7wbZIHoGu+OoGye3oJ6Xznfft79zYQYSSSG5phg6puHj0kc4NiV4Sih7m9 X/60woOWJiB9I4y5dm5YfuzFM8nntYI5827nVBgv7LDrwxb8c90x+LN7xONxbIW7Ts 72FXCcHiTqOddWmTZfB7VZDaLo2UQ2ZFhgVQR0lw= Date: Thu, 15 Jul 2021 11:45:34 -0400 From: "J. Bruce Fields" To: NeilBrown Cc: Chuck Lever , Chris Mason , Josef Bacik , David Sterba , linux-nfs@vger.kernel.org, Wang Yugui , Ulli Horlacher , linux-btrfs@vger.kernel.org Subject: Re: [PATCH/RFC] NFSD: handle BTRFS subvolumes better. Message-ID: <20210715154534.GA24492@fieldses.org> References: <20210613115313.BC59.409509F4@e16-tech.com> <20210310074620.GA2158@tik.uni-stuttgart.de> <162632387205.13764.6196748476850020429@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <162632387205.13764.6196748476850020429@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 Thu, Jul 15, 2021 at 02:37:52PM +1000, NeilBrown wrote: > To fix this, we need to report a different fsid for each subvolume, but > need to use the same fsid that we currently use for the top-level > volume. Changing this (by rebooting a server to new code), might > confuse the client. I don't think it would be a major problem (stale > filehandles shouldn't happen), but it is best avoided. ... > Again, we really want an API to get this from the filesystem. Changing > it later has no cost, so we don't need any commitment from the btrfs team > that this is what they will provide if/when we do get such an API. "No cost" makes me a little nervous, are we sure nobody will notice the mountd-on-fileid changing? Fileid and fsid changes I'd worry about more, though I wouldn't rule it out if that'd stand in the way of a bug fix. Thanks for looking into this. --b.