Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp994316pxb; Wed, 3 Mar 2021 23:53:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZFNHOCZwSvKxg//xwRusfKZwWRP+Qf/AzqW4qFpX4af/UrkXDSJBQQrmUB8VFMDW7q79T X-Received: by 2002:a17:906:c181:: with SMTP id g1mr2815813ejz.96.1614844432076; Wed, 03 Mar 2021 23:53:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614844432; cv=none; d=google.com; s=arc-20160816; b=0KBR3oBoYwXq2+vo9NMV/FBn5gApPekKiSwowAV+695rvZ2UuTgPgilRN7TzBUHpJr doU2zVjwL2iU+1bGGeen1u5XCZy428KfsS7Gt0DEkKej2xKm+R757ymht/guAYblJ7g3 gEkkE2ROJFutdWq7uq879R2vtc/itokDE0ZGQA9HPQgMeHg/vZ/DuSufroIORRiO7pfi 8W4a4ZzwR1eh6JpECfeGnes12kyiVCKQc/MhqSKPdofWKUOrmhkVe4oESekXZdWZEzob wUssSIeASgkMikGwMsFqOQPnebx/zcHOoI8Ym2+N7hmKbwSf9wBCwriaJxQTVCOj5H2a cnTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=9SHG2cGMqrDhCQqqOFzuCqo7EkLMav0c7Mw1UaRtYVk=; b=zJzVKNtawqJT80PjUuvYDtRbqYKDE9adwtBvg9OjtXGGRZuhA2uDaS2q/vDWp7oYxo JdNbKdmgSnXycHfnki6lwnQgi+bv6HmO/2irxhw67umo2ioavrQ7kV4iJxsVGuK/wSEQ Uq4n/IZM5mDJB4cKlTaGZPo/Icbyp80IL3TE89vGdotKH/H6efav6In+tBdbrSE2DUzl 2bBJGLh47hGOT67x6jbUBcRXXep/Gua4/D8Wyu8MyX59E9mhsFEBAnn0MW8GFl/CKlp0 y/b+GOAfebGMcxLPJr+UZxeOHxS1LB7MkhlmZQt0SD5S+62oRMViVSbARHYOjbm5lk5j CKJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EZrUOJQy; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si16629217ejs.315.2021.03.03.23.53.29; Wed, 03 Mar 2021 23:53:52 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=EZrUOJQy; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241857AbhCCK6J (ORCPT + 99 others); Wed, 3 Mar 2021 05:58:09 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:26164 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383541AbhCBWi7 (ORCPT ); Tue, 2 Mar 2021 17:38:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614724652; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9SHG2cGMqrDhCQqqOFzuCqo7EkLMav0c7Mw1UaRtYVk=; b=EZrUOJQy+907pgodmWt8q/kDShTacU7EQSdXb2BJeL3ihfIwzJSpgC+WOrLSq9c2/CqJs4 GxTSxqeSwRrfpv5k+RFrphmGYZkgGK899P81VWOVs1usln8X1HIb8y5/1og5+XcrxwhyMM UzFQIa3zQ89/0Kb1Qgmm4iLRFrInenw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-383-4FhX-U0wO_aLhuV_2qVxCQ-1; Tue, 02 Mar 2021 17:37:21 -0500 X-MC-Unique: 4FhX-U0wO_aLhuV_2qVxCQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 93035804023; Tue, 2 Mar 2021 22:37:20 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-112-24.phx2.redhat.com [10.3.112.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3D0A61346D; Tue, 2 Mar 2021 22:37:20 +0000 (UTC) Subject: Re: [PATCH 0/7 V4] The NFSv4 only mounting daemon. To: "J. Bruce Fields" Cc: Linux NFS Mailing list References: <20210219200815.792667-1-steved@redhat.com> <20210224204944.GG11591@fieldses.org> From: Steve Dickson Message-ID: <0dcefec0-1fbf-d43a-b508-cb06edfea866@RedHat.com> Date: Tue, 2 Mar 2021 17:39:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210224204944.GG11591@fieldses.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 2/24/21 3:49 PM, J. Bruce Fields wrote: > 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. >> >> 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. >> >> V2: >> * Added two systemd services: nfsv4-exportd and nfsv4-server >> * nfsv4-server starts rpc.nfsd -N 3, so nfs.conf mod not needed. > > We really shouldn't make users change how they do things. If they only want v4 support... I'm thinking is a lot easier to simple do a nfsv4.server start verse edit config files. > > Whatever we do, "systemctl start nfs-server" should still be how they > start the NFS server. Again.. if they install the nfsv4-utils verse the nfs-utils package they should expect change... IMHO.. steved. > > --b. > >> >> 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 >