Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6248603iob; Tue, 10 May 2022 13:56:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCACccDpTV2yVE9ve/0mEJVmaOxbactvCsv52Ufvk8scCYMTCWft7+8tLR39a06kBln3s3 X-Received: by 2002:a17:906:9c83:b0:6df:839a:a6d0 with SMTP id fj3-20020a1709069c8300b006df839aa6d0mr21467294ejc.419.1652216216692; Tue, 10 May 2022 13:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652216216; cv=none; d=google.com; s=arc-20160816; b=BBVmICa9OuSgI7nu2rGh9AW3B1GsMkhkJConVzwLzMJg2mb9imqZr69jGAPZaU4vmT RQMSLPBy8pQN8mCEiVzDUZlfA8GgKVQovwNJ/GPq7ZUMZeDVi7RuEpxJVlvaptQlUg6B 8zEzkhne+imJQHpC1UJVLAHl0+IsIw3lDLrzCOf0MmHq6UU9+5x2lGV7Jd2NMUPFsigz 8bGUyYt9NFO3Od+AGxKxHjgypO1EusZKAPS1HeubFWVEvIvzcq3H+zqmVNCmej0m+Wk3 07DGcq7Tgi/VCS5ydHCCMBj3iiWAbjvFwbYqdlXvx8j7UJzPOf6DvgjyyGKQXfnfLC7o wpqw== 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=6+07mwkgUH50FmpIrlQR0cmTlTzpn8vrM9kr3PJhD5A=; b=O5mdQ/zWBJxUq02CppDTlmCp1DA14F4oY9UlwMzkhrg/I1op+YYLBy0FpRaK4JYZif ukvFZNV9+tu3ufoeolAKWfAPPoalOM54Ud/Y2ovwBFU7rhnTdYTnoLYdfq8SFuNEjHTC XQaqjB2zOjcA8E2JPM3/dfTk7oh4zy4ritAClISpuD3Af0pMFiplieCgYog25TE13uxx IvvJGlhH8i8sTmsa218XXrfO6HUZDJ8jusbgyckhLQGCclvhT6a8NXLDzSr9gOx9JICh M5k7GzLUoqlCtaSzBB2fKcoVSh3nQb2n/9NcxHg1GJJH7d6TrK9iubanospyEWGVmo3d XKug== 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 n22-20020a170906b31600b006f372b0ce85si307145ejz.680.2022.05.10.13.56.30; Tue, 10 May 2022 13:56:56 -0700 (PDT) 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 S1345233AbiEJOn4 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 May 2022 10:43:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345944AbiEJOmR (ORCPT ); Tue, 10 May 2022 10:42:17 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C20552DFF73 for ; Tue, 10 May 2022 06:59:38 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 5AC6E614E2FD; Tue, 10 May 2022 15:59:36 +0200 (CEST) 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 aEJNozZixWx1; Tue, 10 May 2022 15:59:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 774EF616B590; Tue, 10 May 2022 15:59:35 +0200 (CEST) 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 unvB_OUHAWhb; Tue, 10 May 2022 15:59:35 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 4AA37611C99E; Tue, 10 May 2022 15:59:35 +0200 (CEST) Date: Tue, 10 May 2022 15:59:35 +0200 (CEST) From: Richard Weinberger To: chuck lever Cc: Steve Dickson , linux-nfs , david , bfields , luis turcitu , david young , david oberhollenzer , trond myklebust , anna schumaker , chris chilvers Message-ID: <688492887.48288.1652191175099.JavaMail.zimbra@nod.at> In-Reply-To: <1A6F1763-C95B-4678-B622-6D3300AF087E@oracle.com> References: <20220502085045.13038-1-richard@nod.at> <20220502085045.13038-2-richard@nod.at> <1A6F1763-C95B-4678-B622-6D3300AF087E@oracle.com> Subject: Re: [PATCH 1/5] Implement reexport helper library 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: Implement reexport helper library Thread-Index: AQHYXgHgoneWG2g3iEC82B/y61YHaq0YKM4AgAAEiIAmRXdifQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR,URIBL_BLOCKED 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: "chuck lever" > An: "Steve Dickson" > CC: "richard" , "linux-nfs" , "david" , "bfields" > , "luis turcitu" , "david young" , > "david oberhollenzer" , "trond myklebust" , "anna > schumaker" , "chris chilvers" > Gesendet: Dienstag, 10. Mai 2022 15:48:49 > Betreff: Re: [PATCH 1/5] Implement reexport helper library >> On May 10, 2022, at 9:32 AM, Steve Dickson wrote: >> >> Hello, >> >> On 5/2/22 4:50 AM, Richard Weinberger wrote: >>> This internal library contains code that will be used by various >>> tools within the nfs-utils package to deal better with NFS re-export, >>> especially cross mounts. >>> Signed-off-by: Richard Weinberger >>> --- >>> configure.ac | 12 ++ >>> support/Makefile.am | 4 + >>> support/reexport/Makefile.am | 6 + >>> support/reexport/reexport.c | 285 +++++++++++++++++++++++++++++++++++ >>> support/reexport/reexport.h | 39 +++++ >>> 5 files changed, 346 insertions(+) >>> create mode 100644 support/reexport/Makefile.am >>> create mode 100644 support/reexport/reexport.c >>> create mode 100644 support/reexport/reexport.h >>> diff --git a/configure.ac b/configure.ac >>> index 93626d62..86bf8ba9 100644 >>> --- a/configure.ac >>> +++ b/configure.ac >>> @@ -274,6 +274,17 @@ AC_ARG_ENABLE(nfsv4server, >>> fi >>> AM_CONDITIONAL(CONFIG_NFSV4SERVER, [test "$enable_nfsv4server" = "yes" ]) >>> +AC_ARG_ENABLE(reexport, >>> + [AC_HELP_STRING([--enable-reexport], >>> + [enable support for re-exporting NFS mounts @<:@default=no@:>@])], >>> + enable_reexport=$enableval, >>> + enable_reexport="no") >>> + if test "$enable_reexport" = yes; then >>> + AC_DEFINE(HAVE_REEXPORT_SUPPORT, 1, >>> + [Define this if you want NFS re-export support >>> compiled in]) >>> + fi >>> + AM_CONDITIONAL(CONFIG_REEXPORT, [test "$enable_reexport" = "yes" ]) >>> + >> To get this moving I'm going to add a --disable-reexport flag > > Hi Steve, no-one has given a reason why disabling support > for re-exports would be necessary. Therefore, can't this > switch just be removed? Sure can we remove it. My idea was that new/experimental features should be opt-in. Thanks, //richard