Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1245838pxy; Sun, 15 Aug 2021 15:03:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYgbVT8CCUd08loHjmnXEehHH4R17WfvK2uORvu3OvFip6L1/1ZRYhKQpOf9L/ci2wkRbX X-Received: by 2002:a17:906:b782:: with SMTP id dt2mr12977755ejb.294.1629065010391; Sun, 15 Aug 2021 15:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629065010; cv=none; d=google.com; s=arc-20160816; b=ZXy1GEutmZEKPKnNqNNQseTB4qwhV13pDt510B40OUgf+j1AqPBMBNcspXeJ0tRSpY WXNpRQRW+ikHUPuUQTub/i+y0vc/pEFmkvYg8gpocio8M0bfCALnEp59Z4fVWTmnqpyD 9Smug4jIRF51+MCizWVUG57yG7ai8GbhfNQ7NNlWfcTP7F7iWHi7S+XjhlO5mprVwoAr lpnT+oe+Aw7/SxXyB7ES4zal1vacHbTLzhaXsuq59XTVKgjL0Zmekw6qQbVUJfp5lTYt I5wovQMyDoP6SCQrf9imoKu3VLb9aBC+I7D8UbN9/U/IXht/YB5QYUzmeTdpyKGbU+rL cLEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=56y/Def2nMkNp3coJSSqIPb+5JvFWXIr2Sjjvt/Soug=; b=AYsN/6YgVKTcMd+KthfXevM6tUwAgiu+xVkIxgaseFOVDfsW0KOGLssT1iHs7TMdPA G03kwyvEeCPVoYemtsBn4m/AC2CEm+IF355R9kRdQ7NaCErw/mpNZkUk6IL216UGkTrN KURyZjiTzUObNix6X1wW9jc7095x9RX2VI+dsNw94xfpOsVhdDKghK50eprS6yff/+Pp LBKaEKd5dnEfEglppNaUFUBpBo/2Rd0T24Dj0llSMiwtHq/9lZ82ZOeE7p23urAEqiJj wHsl8McOGD2tfwBXq1M+7TucsDZghPkG2KnMld/WTdjcQBF8vDl8Tp0qp5Py626CF6xr fp2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=b7BNsdnY; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si9814761ejk.210.2021.08.15.15.02.54; Sun, 15 Aug 2021 15:03:30 -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=@suse.de header.s=susede2_rsa header.b=b7BNsdnY; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231346AbhHOVyh (ORCPT + 99 others); Sun, 15 Aug 2021 17:54:37 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:48370 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbhHOVyg (ORCPT ); Sun, 15 Aug 2021 17:54:36 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 01A8F1FE49; Sun, 15 Aug 2021 21:54:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1629064445; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=56y/Def2nMkNp3coJSSqIPb+5JvFWXIr2Sjjvt/Soug=; b=b7BNsdnYAibTL13hBupU22Jz8E+9hFXD6OKZ62SAstQ2NLSe/9wf3WRT1tCZMPgb6LZjjj iEfYGgQJvtUvG8Y3l7y5sChekJNUZBJCWUL0veYdV9VsGNL1L1eyVLcEmHpDQJ/gfBrxzc k5C2K72jhV2T5ysiYI598FARvXHeonw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1629064445; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=56y/Def2nMkNp3coJSSqIPb+5JvFWXIr2Sjjvt/Soug=; b=a0fj8xB25GCYDqR5DEM5VQwPIcNGQQYE+hfqum36UfX3RV+KnpLQxtGbaGEHaIOsubvKpm D6Ov5v2CKti8vfCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 90AEB147F9; Sun, 15 Aug 2021 21:54:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GcjcE/mMGWFuZwAAMHmgww (envelope-from ); Sun, 15 Aug 2021 21:54:01 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: kreijack@inwind.it Cc: "Roman Mamedov" , "Christoph Hellwig" , "Josef Bacik" , "J. Bruce Fields" , "Chuck Lever" , "Chris Mason" , "David Sterba" , "Alexander Viro" , linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-btrfs@vger.kernel.org Subject: Re: [PATCH] VFS/BTRFS/NFSD: provide more unique inode number for btrfs export In-reply-to: References: <162742539595.32498.13687924366155737575.stgit@noble.brown>, <162881913686.1695.12479588032010502384@noble.neil.brown.name>, , <20210816003505.7b3e9861@natsu>, Date: Mon, 16 Aug 2021 07:53:58 +1000 Message-id: <162906443866.1695.6446438554332029261@noble.neil.brown.name> Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, 16 Aug 2021, kreijack@inwind.it wrote: > On 8/15/21 9:35 PM, Roman Mamedov wrote: > > On Sun, 15 Aug 2021 09:39:08 +0200 > > Goffredo Baroncelli wrote: > >=20 > >> I am sure that it was discussed already but I was unable to find any tra= ck > >> of this discussion. But if the problem is the collision between the inode > >> number of different subvolume in the nfd export, is it simpler if the ex= port > >> is truncated to the subvolume boundary ? It would be more coherent with = the > >> current behavior of vfs+nfsd. > >=20 > > See this bugreport thread which started it all: > > https://www.spinics.net/lists/linux-btrfs/msg111172.html > >=20 > > In there the reporting user replied that it is strongly not feasible for = them > > to export each individual snapshot. >=20 > Thanks for pointing that. >=20 > However looking at the 'exports' man page, it seems that NFS has already an > option to cover these cases: 'crossmnt'. >=20 > If NFSd detects a "child" filesystem (i.e. a filesystem mounted inside an a= lready > exported one) and the "parent" filesystem is marked as 'crossmnt', the cli= ent mount > the parent AND the child filesystem with two separate mounts, so there is n= ot problem of inode collision. As you acknowledged, you haven't read the whole back-story. Maybe you should. https://lore.kernel.org/linux-nfs/20210613115313.BC59.409509F4@e16-tech.com/ https://lore.kernel.org/linux-nfs/162848123483.25823.15844774651164477866.stg= it@noble.brown/ https://lore.kernel.org/linux-btrfs/162742539595.32498.13687924366155737575.s= tgit@noble.brown/ The flow of conversation does sometimes jump between threads. I'm very happy to respond you questions after you've absorbed all that. NeilBrown