Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5191697pxv; Wed, 28 Jul 2021 05:30:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI8I1PtAX4oE2APT1D3pmL5jamhXwTXmsIWNnV60HUATbpCRGKFZd6vrG1EHuuYCmg+7E0 X-Received: by 2002:a05:6638:3460:: with SMTP id q32mr25767611jav.70.1627475416151; Wed, 28 Jul 2021 05:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627475416; cv=none; d=google.com; s=arc-20160816; b=MZ5/n007oiMITuMReSPppOw+i+qE0f5YQIJ7XYz+q2ASJbnzfPnCiyORaQUMKwqMrX qQPAIMcQEl07rHdg7Hiyu5xKKnEthQ7wfK3EdXbyRF8h+OAIaoJoM750oWYaMbse7mw6 I/8ixAiPt7S9pClNZYk2Rk8Z4BzxqoJ1Iqfu1bgO+r8pCbkuEsrlWC2lwAGmRfGMDGzK ujhV8/ljVbEo+C6cBlMyLO5Cj4fhipqW7q8NXsMNM+nwMvP9lI8w9aY/uOpAhssTAsyV PIqHaVl3OVBMR/8RjebqHR79VCPwMin2+6euvljb/PiDeBt939h/PYrHqiV9OWtCk4R+ HsOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=g9LwHxHXC5qDgh7Rw7rbXvgKOrYZgamIabLRMHDDPdE=; b=cZXLPzayyWPMQpCZkW265od0eWcAEEOq+5+v2m42TEITBXc+cO2hJArc0ZjATcb+A0 XAaFG/WXx35SYQ9d59DGYFT3jgmiq6Z3DBQLvcK7PVwO0gfq0wHB3TlbzaIEgX8hZs8Z LObnbAME2ExuYfydyk0o2apq8ueTsuTL84y0YIU1ccTvkAoEcQmLymzcLHa4x1wnFiyD xjBVoMQ7yposX5/IoMfdEHaErMcRoOFHudavVGaNvlhh34R7/Nrkh33eH0RKOUMSg3tq CODOlusXVROKVrkOkJs9RPPv/IyBCgKf75iv+TrxpkYQjoeGr6/qBDTT2GOqMv7WLbfM WZzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZdrteGW1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si980519ioh.46.2021.07.28.05.29.51; Wed, 28 Jul 2021 05:30:16 -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=@gmail.com header.s=20161025 header.b=ZdrteGW1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236285AbhG1M07 (ORCPT + 99 others); Wed, 28 Jul 2021 08:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235204AbhG1M0v (ORCPT ); Wed, 28 Jul 2021 08:26:51 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BBC6C061798; Wed, 28 Jul 2021 05:26:48 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id w17so3545638ybl.11; Wed, 28 Jul 2021 05:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=g9LwHxHXC5qDgh7Rw7rbXvgKOrYZgamIabLRMHDDPdE=; b=ZdrteGW1nA7xRsM+S5I+KtW+WeCk1f8i+onuIgcTnHADESJYRGWFzT3WNa3EzSpZdY eg83oGEjb9tAKShV8EfcMYQxiBOnrxHehB7SwHpTOPF0WtIGqPtgQtd3ifX4YU+Ayra0 JCObS1GSLlfgfFO0tueehM6US/7hl2GhKRBclk11+2HPW4fvviNY12tX18M6ymvxNRJ0 AHvB5VtXzXa2rCFqbh7+9qzhuLesskcWY5h/SzAHvdFrp0/VJkp00rX30INx6ZVzMNiG RUWOiRWeDm7nhiYhJWgoUn7uOmRAbD6Pbqa0zpx0yH8uxxBw+XxjLqdQRyfJH9aWgxSk 1UXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=g9LwHxHXC5qDgh7Rw7rbXvgKOrYZgamIabLRMHDDPdE=; b=rtwp4PotH6C1rWraPgdImD4l6vMmB7HKDfR/CXXdtO1K93g0wikedpsagfmogUL9IP 0LDR0CNkh/kWMt60CbPn67XO8HntFYRB2V+NOq5A6OEd6x4QLUVf1Q6ZUj7m3y6s6g5u ELMlzC63k8UukZW+59/x1i6GhDmTK4TJaQdbNkJ0uTAkmrdOViak1gNP0fzOIBWUm0RG EVntNpRxqzP9O/Jb6jdmARVrgUZwxrsMcxEzHptjWMuhW2r1KMo8tTIxQ8IoC/HbVnAl 7Hms/KgYLNeRWCt2eDnsY6+14dXtKn1wQX5nPgeXQmt//98buEje25fKVsmvpBzMjCSz X8lg== X-Gm-Message-State: AOAM532SrbrDtJUXwuqeNVxRcH5G/wUx7J21QguQKR8ln/OmpcECexHE 5+U7t1CN9rvmfXUI/zJp2jj5ZgF3lKxl8W6Il3g= X-Received: by 2002:a5b:286:: with SMTP id x6mr2835851ybl.59.1627475208122; Wed, 28 Jul 2021 05:26:48 -0700 (PDT) MIME-Version: 1.0 References: <162742539595.32498.13687924366155737575.stgit@noble.brown> <20210728125819.6E52.409509F4@e16-tech.com> <20210728140431.D704.409509F4@e16-tech.com> <162745567084.21659.16797059962461187633@noble.neil.brown.name> In-Reply-To: <162745567084.21659.16797059962461187633@noble.neil.brown.name> From: Neal Gompa Date: Wed, 28 Jul 2021 08:26:12 -0400 Message-ID: Subject: Re: [PATCH/RFC 00/11] expose btrfs subvols in mount table correctly To: NeilBrown Cc: Wang Yugui , Christoph Hellwig , Josef Bacik , "J. Bruce Fields" , Chuck Lever , Chris Mason , David Sterba , Alexander Viro , linux-fsdevel , linux-nfs@vger.kernel.org, Btrfs BTRFS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Wed, Jul 28, 2021 at 3:02 AM NeilBrown wrote: > > On Wed, 28 Jul 2021, Wang Yugui wrote: > > Hi, > > > > This patchset works well in 5.14-rc3. > > Thanks for testing. > > > > > 1, fixed dummy inode(255, BTRFS_FIRST_FREE_OBJECTID - 1 ) is changed t= o > > dynamic dummy inode(18446744073709551358, or 18446744073709551359, ...) > > The BTRFS_FIRST_FREE_OBJECTID-1 was a just a hack, I never wanted it to > be permanent. > The new number is ULONG_MAX - subvol_id (where subvol_id starts at 257 I > think). > This is a bit less of a hack. It is an easily available number that is > fairly unique. > > > > > 2, btrfs subvol mount info is shown in /proc/mounts, even if nfsd/nfs i= s > > not used. > > /dev/sdc btrfs 94G 3.5M 93G 1% /mnt/test > > /dev/sdc btrfs 94G 3.5M 93G 1% /mnt/test/sub1 > > /dev/sdc btrfs 94G 3.5M 93G 1% /mnt/test/sub2 > > > > This is a visiual feature change for btrfs user. > > Hopefully it is an improvement. But it is certainly a change that needs > to be carefully considered. I think this is behavior people generally expect, but I wonder what the consequences of this would be with huge numbers of subvolumes. If there are hundreds or thousands of them (which is quite possible on SUSE systems, for example, with its auto-snapshotting regime), this would be a mess, wouldn't it? Or can we add a way to mark these things to not show up there or is there some kind of behavioral change we can make to snapper or other tools to make them not show up here? --=20 =E7=9C=9F=E5=AE=9F=E3=81=AF=E3=81=84=E3=81=A4=E3=82=82=E4=B8=80=E3=81=A4=EF= =BC=81/ Always, there's only one truth!