From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C466C433E0 for ; Wed, 24 Feb 2021 20:31:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 48D6964E09 for ; Wed, 24 Feb 2021 20:31:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235560AbhBXUbo (ORCPT ); Wed, 24 Feb 2021 15:31:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235559AbhBXUbf (ORCPT ); Wed, 24 Feb 2021 15:31:35 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E698DC061574 for ; Wed, 24 Feb 2021 12:30:54 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id C46832050; Wed, 24 Feb 2021 15:30:53 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org C46832050 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1614198653; bh=MXykIT61z2hZ1T34raGBdkozDwV87aMHLYM5MSKT3/g=; h=Date:To:Cc:Subject:References:In-Reply-To:From:From; b=nl8KYi581bN7fxPLVUWn4P5qRCCQqgxThgy/+MNhIc/8DR0rEdhWobvOlLCRp8gMc ogOh7hfF+3kBKaj9t1/JQClSW05GweZeYOKYw4HisVQIoAbfDkoGeT+a1KOL3rDAMv blVNJ2yTcuXKAyfEVAGuHIe/VKipLUNGAb+FKs00= Date: Wed, 24 Feb 2021 15:30:53 -0500 To: Steve Dickson Cc: Linux NFS Mailing list Subject: Re: [PATCH 0/7 V4] The NFSv4 only mounting daemon. Message-ID: <20210224203053.GF11591@fieldses.org> References: <20210219200815.792667-1-steved@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210219200815.792667-1-steved@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) From: bfields@fieldses.org (J. Bruce Fields) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Feb 19, 2021 at 03:08:08PM -0500, Steve Dickson wrote: > nfsv4.exportd is a daemon that will listen for only v4 mount upcalls. > The idea is to allow distros to build a v4 only package > which will have a much smaller footprint than the > entire nfs-utils package. > > exportd uses no RPC code, which means none of the > code or arguments that deal with v3 was ported, > this again, makes the footprint much smaller. How much smaller? > The following options were ported: > * multiple threads > * state-directory-path option > * junction support (not tested) > > The rest of the mountd options were v3 only options. There's also --manage-gids. If you want nfsv4-only at runtime, you can always run rpc.mountd with -N2 -N3 to turn off the MOUNT protocol support. If you don't even want v2/f3 code on your system, then you may have to do something like this, but why is that important? --b. > > V2: > * Added two systemd services: nfsv4-exportd and nfsv4-server > * nfsv4-server starts rpc.nfsd -N 3, so nfs.conf mod not needed. > > V3: Changed the name from exportd to nfsv4.exportd > > V4: Added compile flag that will compile in the NFSv4 only server > > Steve Dickson (7): > exportd: the initial shell of the v4 export support > exportd: Moved cache upcalls routines into libexport.a > exportd: multiple threads > exportd/exportfs: Add the state-directory-path option > exportd: Enabled junction support > exportd: systemd unit files > exportd: Added config variable to compile in the NFSv4 only server. > > .gitignore | 1 + > configure.ac | 14 ++ > nfs.conf | 4 + > support/export/Makefile.am | 3 +- > {utils/mountd => support/export}/auth.c | 4 +- > {utils/mountd => support/export}/cache.c | 46 +++- > support/export/export.h | 34 +++ > {utils/mountd => support/export}/fsloc.c | 0 > {utils/mountd => support/export}/v4root.c | 0 > {utils/mountd => support/include}/fsloc.h | 0 > systemd/Makefile.am | 6 + > systemd/nfs.conf.man | 10 + > systemd/nfsv4-exportd.service | 12 + > systemd/nfsv4-server.service | 31 +++ > utils/Makefile.am | 4 + > utils/exportd/Makefile.am | 65 +++++ > utils/exportd/exportd.c | 276 ++++++++++++++++++++++ > utils/exportd/exportd.man | 81 +++++++ > utils/exportfs/exportfs.c | 21 +- > utils/exportfs/exportfs.man | 7 +- > utils/mountd/Makefile.am | 5 +- > 21 files changed, 606 insertions(+), 18 deletions(-) > rename {utils/mountd => support/export}/auth.c (99%) > rename {utils/mountd => support/export}/cache.c (98%) > create mode 100644 support/export/export.h > rename {utils/mountd => support/export}/fsloc.c (100%) > rename {utils/mountd => support/export}/v4root.c (100%) > rename {utils/mountd => support/include}/fsloc.h (100%) > create mode 100644 systemd/nfsv4-exportd.service > create mode 100644 systemd/nfsv4-server.service > create mode 100644 utils/exportd/Makefile.am > create mode 100644 utils/exportd/exportd.c > create mode 100644 utils/exportd/exportd.man > > -- > 2.29.2