Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp546094pxb; Thu, 5 Nov 2020 06:57:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5ux09t7LF3043ShqRGil5Wio2Mr5WzFOtEVDxeHT60O2wUVfgeh5o/Y2WjXdCtAZhJcjG X-Received: by 2002:aa7:c5d0:: with SMTP id h16mr3028858eds.7.1604588245797; Thu, 05 Nov 2020 06:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604588245; cv=none; d=google.com; s=arc-20160816; b=u60QoaDMuOvuj/qAYlFphH88KUjghQk/mXPzgzwbdQ9nPcPTZ+Er3OolUmJTSgAG6o jTPruebOk8e0pK4NCb1yZR/PC8bhJ0oPH9h1YegHk9MKKlNVBcOZTQ0GHW4I/qRfdUmm ohDZZfveTyiACb09J8HJb62hdbmSaCidjW5PdJoi/gHjFUhJsNRDRLLnT9Fr66/pvL1C RmCQ7jLkoxA9cM+gZ09zIX9CR90Eox5FIP3aluegExKCyy3x3WjiTEY2HVbfPBjuPlki Sv/PxWFvG4CchZA6dNRwM7kYZiA4vSV8hx2/x8Z+Tv/odtuEiZaQOSmHPF2lxsWdavhA wwug== 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 :message-id:date:subject:to:from:dkim-signature; bh=CO0ef8bt9ylRv+llSmqcCxmoaQJr2ZgHJ+38avSgMFo=; b=CPeno4jtiG3sjlXCccuJuWRYPzOj9R6vtwpz16K769Mvx/AjO3r0CCNbN1sLWQBray 3ODNwnVHfjbSSnCj1XIhyi93SidLCp7hGQCATSBaQrzgPusEDAAcBN2TJnMYIFxCwB7Z YUjh/eJZzTCUHdHgBM1NPpMQBY45UQEHOLkuE03ZVWx6xOIpuiHPBLwP8aCU3IOQ/BSz j2lFHkvkDyeP+Qn2XY0txe89tamKv0s5UKgZEYgHiDBGXRbbE02lekP/tQA+6RmmuQOF a8vxWHat2LvVjKcPvty8afvlqi1brdFuUAw6PxA5m+8ATI2Vh1L8hmfXZ0hmFdSYbAzc tQHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QVn3mIhM; 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 m6si1282362edb.517.2020.11.05.06.56.50; Thu, 05 Nov 2020 06:57:25 -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=QVn3mIhM; 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 S1728371AbgKEO4q (ORCPT + 99 others); Thu, 5 Nov 2020 09:56:46 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:27383 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730721AbgKEO4q (ORCPT ); Thu, 5 Nov 2020 09:56:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604588205; 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; bh=CO0ef8bt9ylRv+llSmqcCxmoaQJr2ZgHJ+38avSgMFo=; b=QVn3mIhMwuTCQxRhIzHnXFwXAZzv+gUWk8hFb76DVYQBE12qxTM6eUm34W/0HzYv5d3wCm hP6+/0q34Q7fi2kcugYxaWyLsnKRyX31BO4SeuMW8u+FgH7Ng78lZw8eMlHn32QcblqiJg HhvnJUCt+0Pq2X61klgHS2ipeV9dZWc= 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-185-I_RWUVVGM5ySZy7oabsvpA-1; Thu, 05 Nov 2020 09:56:44 -0500 X-MC-Unique: I_RWUVVGM5ySZy7oabsvpA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 02E4E8DF0AE for ; Thu, 5 Nov 2020 14:56:43 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-112-68.phx2.redhat.com [10.3.112.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id B6E0A5D9D5 for ; Thu, 5 Nov 2020 14:56:42 +0000 (UTC) From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH 0/3 V2] Enable config.d directory to be processed. Date: Thu, 5 Nov 2020 09:56:31 -0500 Message-Id: <20201105145634.98281-1-steved@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Here is the second attempt to use conf.d directories to set configuration variables. When a conf.d directory exists and files with the ".conf" extension exist they will be used to set configuration variables. Files not using that extension or files beginning with a "." (ex .nfs.conf) will be ignored. The conf.d files will take priority over the main config files. Meaning a variable set in both the main config and the conf.d file, the conf.d file will have priority over the variable in the main config. The ordering of when the conf.d are processed can be set by alphabetical naming convention. Prefixing file name with a 001-nfs.conf, 002-nfs.conf will control when the config is process. Note the last config file process with have the highest priority. Steve Dickson (3): conffile: process config.d directory config files. conffile: Only process files in the config.d dirs that end with ".conf" manpage: Update nfs.conf and nfsmount.conf manpages support/nfs/conffile.c | 139 +++++++++++++++++++++++++++++++++- systemd/nfs.conf.man | 8 ++ utils/mount/nfsmount.conf.man | 7 ++ 3 files changed, 151 insertions(+), 3 deletions(-) -- 2.26.2