Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp268192pxt; Fri, 6 Aug 2021 01:17:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4qGv96Bda6rYEWIrxuDWsiSb1Cwj5+s6qAgIesP7nIlXL2AE/OWwTQCHzlYoHGDdgX7b1 X-Received: by 2002:a17:906:b34c:: with SMTP id cd12mr8745429ejb.104.1628237874854; Fri, 06 Aug 2021 01:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628237874; cv=none; d=google.com; s=arc-20160816; b=gucuZsO6LN+Gde71FNKMWTwe/S7ac/ejhaZ0iuqDmHJHFHwgvi+XkSvpkggCsQf8ss M8Y4WMcoEKpWnNmobJ30yx0t3DzBpzCNUz30RDXxXN/8oze5+DTizNgc625E6jOPA+8v 4KyiyDRHcileUkWar74+AOE87cjFrNNC6rLk13X5ZYf0NXDex30Ji6atdUqWURtSBkW6 NfiLpsAFqRAKBzOcs6oUxGvw57Oq3z2Nb8RrdgTKiHtR5e2DFRJMQHqkbTvng1IOMcO8 Hvyg0Qnok+/wQBVyw9ollO0rVF2jMXAQXOmkkpseeGvzxw26BL2DDZkFL03xayrVUXQt eDRg== 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=u2iJjJFlry6ovGIgHXp8jdUKenmn9J5pRKg6h9IJBLE=; b=gJkTAKVJLvofNv6xbM4OcRoBhUUdCJnhiMh5wnrxD/bYjF9vSuh1iSj+8jylCtc9Le VFaugG2NgOu3zZAWo9ouj5YzvpykIJocmqKkAiXerQF+LQ2zGMLGtCeihy9LJTwe+fAo 1FPOC1zfp28MSOKoN8pGrFn1YcBElR5uXka5QCrm5x90o3eKcX+gCc7S/S9hCL+zLtxD U1chy0N8Sut9hMF7hgwj10ERppYyIcbqfK+bJR2K5Szg4nu2il58RHLMhPk6Rz0y4B5k ujVeS/Atfhg1XJji85tc1CbC31b47wq4Hi6Y4efRcpYLaXUogRGTiqLXRy48UC6gRVYp Ke1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QppjZKuw; 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 b4si8049302edv.347.2021.08.06.01.17.31; Fri, 06 Aug 2021 01:17:54 -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=QppjZKuw; 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 S242775AbhHFIIw (ORCPT + 99 others); Fri, 6 Aug 2021 04:08:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236751AbhHFIIw (ORCPT ); Fri, 6 Aug 2021 04:08:52 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07729C061798; Fri, 6 Aug 2021 01:08:36 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id c3so7961632ilh.3; Fri, 06 Aug 2021 01:08:36 -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; bh=u2iJjJFlry6ovGIgHXp8jdUKenmn9J5pRKg6h9IJBLE=; b=QppjZKuw1aICGs/ZKOPmXanV4OJyMgg6oZLmrMF5DHQMbge1xiVbFCfktXZddUZV/N UCxGvWkL+cEVux4C4+jPiyB5jvHCNoOmOSOBlHZO3u8pcGDHLH3g/6kZbGboouH1o7/I kqd/49zQexQmjrAzZG4VBgYNjJAw8yDoAMcTskZwYA+LQsmDnmMQ1zWhXjce5HTtvL4M 1sjsnwp/rWwZPa3hnAXVU9REf5VZ92laZ5yjesP+8FwK+Gbejl49dhAYGl6zkwOBIspG tUp+szq/hMUsPq4D3iyZmH9Z5eO7LJHYxNTAi9ATdGVYeXHnzn0UULeY1xfA6aFZFDid C4Bg== 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=u2iJjJFlry6ovGIgHXp8jdUKenmn9J5pRKg6h9IJBLE=; b=gMz/1ggry7smRb2uLeXvKrroY/soEx9XsHUxnYZ7WII+MP5otNkJP0z/gj8MScfdrL Qm0MO5uEDIm3fkweQgnKaazEI/7xXoT4cKbsw/gK3WMDo/75OulS51cM4cQQkf7GdZmg vgACAZER+ZEv5TUEyUOdHoW8jzGy6QUnxu5WoMN78NgJzKR3nKwzwPikQcQMwcNcVugi EtDKnIlLwuKhvxkYtdqBqqbIH9UTPxiRT2rIjvg1ZL3/eD9lI+PnPlITJponS9ICBnaZ uaDPMpMhPcY59jrQrQGcrltH5vcZBFbY69vzv50Dr2LjBwvfmVsSNBqzJ/XtpmUEWXyJ c+aQ== X-Gm-Message-State: AOAM532umVd+Pz5EobUCeCRmVerWaet3xZjydMtGwvDF8pRSdkU1aEBQ pcbFyJnDGI9nYJanrS88oMCce8LkiS0fysuM1c8= X-Received: by 2002:a92:c94f:: with SMTP id i15mr21326ilq.72.1628237315091; Fri, 06 Aug 2021 01:08:35 -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: Amir Goldstein Date: Fri, 6 Aug 2021 11:08:23 +0300 Message-ID: Subject: Re: [PATCH 07/11] exportfs: Allow filehandle lookup to cross internal mount points. To: Miklos Szeredi 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, 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? Thanks, Amir.