Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3837042pxj; Mon, 21 Jun 2021 07:41:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpiQoc+vm2hnDFEzJQh3/4k9W/jYh3+Y66dXNnWrRp4us9VIPfGBge0SAN8IL742ycG108 X-Received: by 2002:a92:c886:: with SMTP id w6mr16631140ilo.227.1624286463070; Mon, 21 Jun 2021 07:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624286463; cv=none; d=google.com; s=arc-20160816; b=Ol6SSevAgDJJyL6bMAG0WHXQHucF2Xc0p97hVd1d74sCrGIDsrZpmzVI0RauluCKVv ZvZkpoGoqIWD1XMKpGfQq34yg18Sty5W/EULpfinzAjAsqV1qiMgsaIeLgLOETJt/Olk 797Mm1yixxQRxtB8RbcvSF7szU2Lsxe4aQeF4NJYIWf8qcBVWAF1p+Ww9gkhXPbisISq dQ4uXq90b/7i5fxc0uSl9RVfImqf7FPDA0ZnTxduEbzOg/yZJ3PE9B8pDn560gQhMekb XupZW74skuyT5/ZQChwXB5GoBMqhvSyBSejhGncHzBsfFxI2tLLa+eHVyEnK2L3Nc49u A6FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=/65HdiEyg1ggpFdUR6NllUZtiOgzL7wsnWkVj/Ja13E=; b=fmCKhoQ/UaCfAHuaKLY0ZuI0NDODq5TEcE2k2RvMhMm8HmtTU/GZ6n2jbUAs2Rdax5 Kc0crM3dTmghUifd165wxGdszt0KnUwDvNmMxlg2HYbBGXUiGOD43nq1Vd2M18rDdvP8 rlby24G3P0SWu7dVSqkyzU/0Q2krB4vaGuZeIqFVB4O238o5cIHOTMinSBcHga+HDl7z 3QLs8DCZnaryr+fb2/5bf2F5hdWhfTBVuMqf0BPTCcqCNU5/iPQBPHO+lHZfVSQt0Qcv GNP9d7fOI9AMinAjFx9dANr3mA8AudyaiEU7MTSGAtjczRgV5dse3UZ6oRFZngZVxFyk n+SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earthlink.net header.s=dk12062016 header.b=AQeH2LG2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mindspring.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si17127644iod.29.2021.06.21.07.40.42; Mon, 21 Jun 2021 07:41:03 -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=fail header.i=@earthlink.net header.s=dk12062016 header.b=AQeH2LG2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mindspring.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229807AbhFUOmv (ORCPT + 99 others); Mon, 21 Jun 2021 10:42:51 -0400 Received: from mta-101a.oxsus-vadesecure.net ([51.81.61.60]:51429 "EHLO oxsus1nmtao01p.internal.vadesecure.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229765AbhFUOmv (ORCPT ); Mon, 21 Jun 2021 10:42:51 -0400 X-Greylist: delayed 314 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Jun 2021 10:42:51 EDT DKIM-Signature: v=1; a=rsa-sha256; bh=/65HdiEyg1ggpFdUR6NllUZtiOgzL7wsnWkVj/ Ja13E=; c=relaxed/relaxed; d=earthlink.net; h=from:reply-to:subject: date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to: references:list-id:list-help:list-unsubscribe:list-subscribe:list-post: list-owner:list-archive; q=dns/txt; s=dk12062016; t=1624286106; x=1624890906; b=AQeH2LG2oJx6wf9UVK+u2kD4uNbUAxQOYppxX4WDExGNfGWlsLX9Skg bcXsFF6shq/zgzGfNV2HcmDGc7mB3f0vQW8BjXIsRwXuwcw5eXi6SKNCJsd0YpvLXH71b/O 5/bsC2VeoH5SCTnU9yTGdh7gmk8w2VbxAT5744E9Jwiu11wV7llk8o4/Gnruk9q10GooBXB mKq0y4QvFqe6SQ9zRUH+yjS2Huu9uojH4xYWTV0+G3RebrHgoOaavSYZqO59fFXzKNxtZce hhdfUmvmaSGoiYB3j1VnUV+EyxTxL46XszTXARdAwJtsryfA1E0zveMuop/mkw/aZ+fwOt0 r8g== Received: from FRANKSTHINKPAD ([76.105.143.216]) by oxsus1nmtao01p.internal.vadesecure.com with ngmta id ea035de9-168a9f9b74b8bc05; Mon, 21 Jun 2021 14:35:05 +0000 From: "Frank Filz" To: "'NeilBrown'" , "'Wang Yugui'" Cc: References: <20210617122852.BE6A.409509F4@e16-tech.com>, <162397637680.29912.2268876490205517592@noble.neil.brown.name>, <20210618152631.F3DE.409509F4@e16-tech.com> <162425113589.17441.4163890972298681569@noble.neil.brown.name> In-Reply-To: <162425113589.17441.4163890972298681569@noble.neil.brown.name> Subject: RE: any idea about auto export multiple btrfs snapshots? Date: Mon, 21 Jun 2021 07:35:05 -0700 Message-ID: <000001d766aa$a16b3470$e4419d50$@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQGgjb0JmyjTlu+qHq6E792GRQrYXwDUVoz+AX4+uU8CMxYmZKtoCsXQ Content-Language: en-us Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org > I think the problem is that the submount doesn't appear in = /proc/mounts. > "nfsd_fh()" in nfs-utils needs to be able to map from the uuid for a = filesystem to > the mount point. To do this it walks through /proc/mounts checking = the uuid of > each filesystem. If a filesystem isn't listed there, it obviously = fails. >=20 > I guess you could add code to nfs-utils to do whatever "btrfs subvol = list" does to > make up for the fact that btrfs doesn't register in /proc/mounts. >=20 > NeilBrown I've been watching this with interest for the nfs-ganesha project. We = recently were made aware that we weren't working with btrfs subvols, and = I added code so that in addition to using getmntent (essentially = /proc/mounts) to populate filesystems, we also scan for btrfs subvols = and with that we are able to export subvols. My question is does a = snapshot look any different than a subvol? If they show up in the subvol = list then we shouldn't need to do anything more for nfs-ganesha, but if = there's something else needed to discover them, then we may need = additional code in nfs-ganesha. I have not yet had a chance to check out = exporting a snapshot yet. Thanks Frank Filz