Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp846020pxb; Tue, 9 Feb 2021 14:16:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNrK8Yb5c3jXyAPfJh67alquFlFhMTtd+Q1yAoLSS7EvHWzXD9sZn9TlfwgCXdS/ndmtQA X-Received: by 2002:a05:6402:b45:: with SMTP id bx5mr214592edb.235.1612908968188; Tue, 09 Feb 2021 14:16:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612908968; cv=none; d=google.com; s=arc-20160816; b=NWTA7ESlu2kNc2Yypg9PQcSpCA0rXgOWp6KgRoCwNRCBvbGVo5w1c9u+GnHSMXI97U 6/7i2O7RKXJ9Wj9j2iOMJ8RxE03WgpLFpIX54u56gf6z80zyOAqFzXAj+Q8+i5zfxkvk cJUodrr8d10STNbINz9fQIVMI6N3Dhn5lYxNmICVc0YRFagQDazmFmfB4PgM1tBmVz+L ibfxt7NNoR7c1pye814YlUrtPpyaXA28J/EqAbCD/sCuHHBt5qBphNCQAuQeKgNVwMNT quwlf7AXDZwKfCLpBrB2qCHGE66/DZbTbsDBvRnW52CfNMaeJqSRcFsFShhcPe/DUI3X cBXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=YjLy6YN3S+l95caWxK/rirUFWldIASYd7wSIow/0VnU=; b=Sh2Syvq1RqJKJeJL3VZIZ9jfMmN8ZvKi66ll0AX8MSOYl1z2ZSxA7RClZXN7ssosbi N310gwUHt7EzXu1Ss0W/+r0DE96+w/FnNX27iefnDAm+9bRxrwLxe4CGzp3VtJJw+WQK Bj4dqFBJ9Hm4u8Ot2ULnLgZLIu7rZ8HbrWw29YjmlBLWRpStJHlN/V5XbdNaWoIvQwJs ySkxBNxC4BzzF00/XrWvBwaegAmvSYyF3pm5hxMVKILJ27GPA92jGrYFWAXA7j6DDTBA tBkO1/adEbJuSuCf15ZDKC0y9cFi278ZwZTNqcfh/EvR8qOsKxKeygls31h5BauA2VGS tGUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ahha3XE7; 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 k5si40383edq.211.2021.02.09.14.15.36; Tue, 09 Feb 2021 14:16:08 -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=Ahha3XE7; 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 S233965AbhBIWLu (ORCPT + 99 others); Tue, 9 Feb 2021 17:11:50 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:41306 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232974AbhBIWH6 (ORCPT ); Tue, 9 Feb 2021 17:07:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612908391; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YjLy6YN3S+l95caWxK/rirUFWldIASYd7wSIow/0VnU=; b=Ahha3XE79uqQDyXXDsSkUX3iWDWn4sYTE4zNXAa1qS9rNaipSB7Mzf0aJdBxqlaJFX+Fy9 XwJwEWTtRs/jlwyn0Ws8O5Vz9OKW9SVS1PCX+/mEyoxXeAk4NpxXPt0IP5jR6tvXC3K5Kv Vk1yvAb8ps5oLsLuACPBmWgEONmS/XY= 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-355-yEc3RT34P_uzxK8TgWYTxw-1; Tue, 09 Feb 2021 16:22:18 -0500 X-MC-Unique: yEc3RT34P_uzxK8TgWYTxw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 57EF5CC621 for ; Tue, 9 Feb 2021 21:22:17 +0000 (UTC) Received: from madhat.home.dicksonnet.net (ovpn-113-50.phx2.redhat.com [10.3.113.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id 175BF2B394 for ; Tue, 9 Feb 2021 21:22:17 +0000 (UTC) From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH 5/5] exportd: Enabled junction support Date: Tue, 9 Feb 2021 16:23:42 -0500 Message-Id: <20210209212342.233111-6-steved@redhat.com> In-Reply-To: <20210209212342.233111-1-steved@redhat.com> References: <20210209212342.233111-1-steved@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Moved the junction support from mountd to libexport.a so both exportd and mountd can use the code. Signed-off-by: Steve Dickson --- support/export/Makefile.am | 2 +- {utils/mountd => support/export}/fsloc.c | 0 {utils/mountd => support/include}/fsloc.h | 0 utils/exportd/Makefile.am | 5 ++++- utils/mountd/Makefile.am | 3 +-- 5 files changed, 6 insertions(+), 4 deletions(-) rename {utils/mountd => support/export}/fsloc.c (100%) rename {utils/mountd => support/include}/fsloc.h (100%) diff --git a/support/export/Makefile.am b/support/export/Makefile.am index 7de82a8..a9e710c 100644 --- a/support/export/Makefile.am +++ b/support/export/Makefile.am @@ -12,7 +12,7 @@ EXTRA_DIST = mount.x noinst_LIBRARIES = libexport.a libexport_a_SOURCES = client.c export.c hostname.c \ xtab.c mount_clnt.c mount_xdr.c \ - cache.c auth.c v4root.c + cache.c auth.c v4root.c fsloc.c BUILT_SOURCES = $(GENFILES) noinst_HEADERS = mount.h diff --git a/utils/mountd/fsloc.c b/support/export/fsloc.c similarity index 100% rename from utils/mountd/fsloc.c rename to support/export/fsloc.c diff --git a/utils/mountd/fsloc.h b/support/include/fsloc.h similarity index 100% rename from utils/mountd/fsloc.h rename to support/include/fsloc.h diff --git a/utils/exportd/Makefile.am b/utils/exportd/Makefile.am index 0fcd92f..2fd3ba1 100644 --- a/utils/exportd/Makefile.am +++ b/utils/exportd/Makefile.am @@ -1,6 +1,9 @@ ## Process this file with automake to produce Makefile.in -OPTLIBS = +OPTLIBS = +if CONFIG_JUNCTION +OPTLIBS += ../../support/junction/libjunction.la $(LIBXML2) +endif man8_MANS = exportd.man EXTRA_DIST = $(man8_MANS) diff --git a/utils/mountd/Makefile.am b/utils/mountd/Makefile.am index cac3275..859f28e 100644 --- a/utils/mountd/Makefile.am +++ b/utils/mountd/Makefile.am @@ -12,9 +12,8 @@ RPCPREFIX = rpc. KPREFIX = @kprefix@ sbin_PROGRAMS = mountd -noinst_HEADERS = fsloc.h mountd_SOURCES = mountd.c mount_dispatch.c rmtab.c \ - svc_run.c fsloc.c mountd.h + svc_run.c mountd.h mountd_LDADD = ../../support/export/libexport.a \ ../../support/nfs/libnfs.la \ ../../support/misc/libmisc.a \ -- 2.29.2