Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp274202pxt; Fri, 6 Aug 2021 01:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQXeB4OsT7yWFpcHrAST6WX3jYeooJSRlDZG6D9fvJdqNtx33N1jlO1fkgGWnmM85/bBPs X-Received: by 2002:a50:d091:: with SMTP id v17mr11796822edd.4.1628238556831; Fri, 06 Aug 2021 01:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628238556; cv=none; d=google.com; s=arc-20160816; b=0hb4I6POufRaXYgLFAaYOgnlbq+koMpxDTiU3B0NRDHlYIPUMY8yun+81rgVlr838j XM+0w+EFq9pLNdviXpwWUhwClym2L05N+PtHqtpcoLPQOQi3YOFYZFM8/JGm2QvDFpOK H+JxMKRFe/X6/na5gVgv1zSW56W2jOCnkGfbrZuAy2FqdNetbtK5/SDgWn1hTTg5UvyG mfKoOFqu8u59s1TW+S5aeKEhmR8uPRD5gPfg41hLlMVUezt7hz5AloP6bqf1Uz0MrNaM glDlN9uHvJpXrlABw8E16ZLWy/qtlNNxqrZG1jQRKM58MWqXp4sngFcGdNB3JgYXyw8H ZlPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=oRINHIhGfpdECjbAWjxe8NCFfhDC/n86ssJULKDPhmA=; b=JC6g3F/W1oJtlRUfzvi/Zfj5XHIL19Q6twV0aAH2t5kC+Qcp4JZBkzm6XmOltNfFjC kJV0FgJ2lVJzlsTfEko+haOtpg40b2Hx/vRBRfkDySe3JkyClsBRISHjGekN4CDJajmT Ela90QkK5PYaeZXxysWxKmg76msqQsFn9PRu1KE7KV6TgH9JSYxun8ps5NS+xXnrtsyy uDgPLsLgpoGBrwW90VYeIX05Zm1PojYK3D7VQkVCAur5/KEDVcI0N1kHg8pCip9EA6y9 OiAelQNFUK0vjc+JwlouwIUxK1ND9hPCufOtl97bEy5DsRpmkCcNa/OwsQdF6kpgSFJU aHqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=OvVgEpKz; 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 t6si8361749edr.477.2021.08.06.01.28.46; Fri, 06 Aug 2021 01:29: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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=OvVgEpKz; 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 S244560AbhHFI0n (ORCPT + 99 others); Fri, 6 Aug 2021 04:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244106AbhHFIZ7 (ORCPT ); Fri, 6 Aug 2021 04:25:59 -0400 Received: from mail-ua1-x92b.google.com (mail-ua1-x92b.google.com [IPv6:2607:f8b0:4864:20::92b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 150BAC0619C0 for ; Fri, 6 Aug 2021 01:18:31 -0700 (PDT) Received: by mail-ua1-x92b.google.com with SMTP id d6so3292501uav.2 for ; Fri, 06 Aug 2021 01:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oRINHIhGfpdECjbAWjxe8NCFfhDC/n86ssJULKDPhmA=; b=OvVgEpKzEDMU8cgihSAEKuEjP5IfZ8rbtWlFLdngFqtrTL5fK1CX0NS4xQj++RKSVB yVez7hdiedBIpuLGnZoKY5PPD4mryOnVQh31czsX1KY5p84kn/zeyXojCmSM2Dkqw1jz xAZyFZz7o/659lHhsG5JSIw1m3Pz+HLGSd6kw= 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; bh=oRINHIhGfpdECjbAWjxe8NCFfhDC/n86ssJULKDPhmA=; b=AmMrvLGDbUbxWl8HEFMEEJ4kRm1lQhnZo2CcOkfMg0BrTUv8HiDzsjczf2DGa5A8W0 Iar7vZy/cmvkiYrCcpYuyf3GdkCZOd/J0W/5Sx48JmMP2zABRV8Sxc6SDhCf8pqIZceN lckQW3Fpyj22CGE/qU0/Amjt87AjxHSvOKPqHpGCIi7lTEnUfXU/JIj8oh1hBhyHeiNF EhX46tgcCpLLQHqYfnhpELtVuKRqP2rkaT6cPehI44u3fEFl9b/nXEOeM+2PWufObyYG 7vCVxBbkmTphbBZ8uoqZBtY7BqSJ4tuBDfrcbnFwJn8QByODi/tJCyiFJOEL0jYmb00S FlTg== X-Gm-Message-State: AOAM53396w5XWqOetZpmEANa3ic9dCpmptiQufLx7fU/S16ers3a8R41 rVh/naXExAvsDPvju/k3QsmSAm9CkTNmoKgIb8kQWQ== X-Received: by 2002:ab0:36af:: with SMTP id v15mr7156096uat.8.1628237910214; Fri, 06 Aug 2021 01:18:30 -0700 (PDT) MIME-Version: 1.0 References: <162742539595.32498.13687924366155737575.stgit@noble.brown> <162742546554.32498.9309110546560807513.stgit@noble.brown> <162751852209.21659.13294658501847453542@noble.neil.brown.name> In-Reply-To: From: Miklos Szeredi Date: Fri, 6 Aug 2021 10:18:19 +0200 Message-ID: Subject: Re: [PATCH 07/11] exportfs: Allow filehandle lookup to cross internal mount points. To: Amir Goldstein Cc: NeilBrown , Christoph Hellwig , Josef Bacik , "J. Bruce Fields" , Chuck Lever , Chris Mason , David Sterba , Alexander Viro , linux-fsdevel , Linux NFS Mailing List , Linux Btrfs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, 6 Aug 2021 at 10:08, Amir Goldstein wrote: > > On Fri, Aug 6, 2021 at 10:52 AM Miklos Szeredi wrote: > > > > On Thu, 29 Jul 2021 at 07:27, Amir Goldstein wrote: > > > > > Given that today, subvolume mounts (or any mounts) on the lower layer > > > are not followed by overlayfs, I don't really see the difference > > > if mounts are created manually or automatically. > > > Miklos? > > > > Never tried overlay on btrfs. Subvolumes AFAIK do not use submounts > > currently, they are a sort of hack where the st_dev changes when > > crossing the subvolume boundary, but there's no sign of them in > > /proc/mounts (there's no d_automount in btrfs). > > That's what Niel's patch 11/11 is proposing to add and that's the reason > he was asking if this is going to break overlayfs over btrfs. > > My question was, regardless of btrfs, can ovl_lookup() treat automount > dentries gracefully as empty dirs or just read them as is, instead of > returning EREMOTE on lookup? > > The rationale is that we use a private mount and we are not following > across mounts from layers anyway, so what do we care about > auto or manual mounts? I guess that depends on the use cases. If no one cares (as is the case apparently), the simplest is to leave it the way it is. Thanks, Miklos