Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13909753rwb; Sun, 27 Nov 2022 13:51:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5LbDir8H388fwSeedSuTNK88oM4sClHa+ypzRLr8RQoQQ9BhRABlHMPZS+Ap+v4+6fUj/N X-Received: by 2002:a62:18d3:0:b0:575:26e3:ed7a with SMTP id 202-20020a6218d3000000b0057526e3ed7amr2704504pfy.67.1669585868240; Sun, 27 Nov 2022 13:51:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669585868; cv=none; d=google.com; s=arc-20160816; b=yOoFK8SpeBFw9Twov4fysqW4sscpNDwLmNHdEUndHv4KKl+t0SjbuByek5Lt4dOUOb Oc05848PIR/nSr/o+dfIsYpJSFrwvIzgAY+DSNgVYC9Z7XkZ6S5KX5bjD11BV5D64JaP n6PkIIWpm+YwTxivgOXE6pBh0ZwxX3Ylm5xZBTZE5e4sBEOw3hiYe71EHah/ToNLBQbo 9IVZMfR5XRMBCK2pugxCO4l9gYNbmjC7JahU/TrxqOrKzyJMKXbj1BW/CmDpTSI4upmY V2VIzaIGQhKLIMGvT6WPJ1dmtmRo84NxfGb1wbOciux6R7VyuJoU+9U/kXV9EfOkYfKs 1Uhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=Ys6fpn/xlwN4zW8NrKRmWLy19kLqJVXemu8UiYD5Tq8=; b=wzLZaEK5qPmC2CBzAXLDIFFE3ZTdZT08itVcYz7IQin7+Wk5SnLhUIEcyXnZbrt48e DbeVgJeURckQA8ul/M/w/EgW4/NcF83Zh0+EIrgxf2CgfXmWpnVMeyMJU3odIJf6GYoz OUi9r9MqQ2rd/lB2JKgxemtuO3XSjZAMD6o4oAyUIyr60R4AchFqb8msLBD7/bkI08Mn qL9n31mfnejRejr4yzBMEQ8tDWV/IgQwtsEwCcfoJtHzaO3TKJ9yWwCn4CR3KGgRT2ft Nst6l7ZwjXWQCJaQAmJ5Fnn4ttXzpyD9r7utzDOY34bZiDWhTWPMxma5Sg63PZTv0H2z chpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa12-20020a17090b1bcc00b00218e1e7534bsi14407777pjb.180.2022.11.27.13.50.48; Sun, 27 Nov 2022 13:51:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229585AbiK0V3w convert rfc822-to-8bit (ORCPT + 99 others); Sun, 27 Nov 2022 16:29:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiK0V3v (ORCPT ); Sun, 27 Nov 2022 16:29:51 -0500 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B21FA1B8; Sun, 27 Nov 2022 13:29:49 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0FD126495E62; Sun, 27 Nov 2022 22:29:46 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id DOUHMhrDNvOa; Sun, 27 Nov 2022 22:29:45 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id ACF886495E7E; Sun, 27 Nov 2022 22:29:45 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FYpMhiFZPMSA; Sun, 27 Nov 2022 22:29:45 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 879AC6495E62; Sun, 27 Nov 2022 22:29:45 +0100 (CET) Date: Sun, 27 Nov 2022 22:29:45 +0100 (CET) From: Richard Weinberger To: Jeff Layton Cc: linux-nfs , linux-kernel , linux-fsdevel , chuck lever , anna , trond myklebust , Al Viro , raven , chris chilvers , david young , luis turcitu , david Message-ID: <1045320558.283423.1669584585412.JavaMail.zimbra@nod.at> In-Reply-To: <29d007755c6066552ac2a1b5bc498ce1ce28ab3b.camel@kernel.org> References: <20221117191151.14262-1-richard@nod.at> <20221117191151.14262-3-richard@nod.at> <1805608101.252119.1668719538854.JavaMail.zimbra@nod.at> <29d007755c6066552ac2a1b5bc498ce1ce28ab3b.camel@kernel.org> Subject: Re: [PATCH 2/3] fs: namei: Allow follow_down() to uncover auto mounts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: namei: Allow follow_down() to uncover auto mounts Thread-Index: NMMtBM4gmoztCH6iGDr1qiHlAQw/TA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org ----- Ursprüngliche Mail ----- > Von: "Jeff Layton" >> So, in nfsd_cross_mnt() the follow_down() helper should use LOOKUP_AUTOMOUNT >> only >> if exp->ex_flags & NFSEXP_CROSSMOUNT is true? >> Sounds sane, thanks for the pointer. >> > > Yeah, I think so. I do wonder if we ought to make any provision for > "nohide" exports, but since you have to enumerate those explicitly, it > shouldn't be a huge problem for someone to just ensure that they're > mounted beforehand. TBH, I didn't invest much into the nohide feature wrt. NFS re-exporting. What problem do you have in mind? I wonder also what NFS client folks think about my changes before I send the next revision (with Jeff's comments addressed). Thanks, //richard