From patchwork Fri Jan 3 17:35:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Wurmus X-Patchwork-Id: 19562 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 615A2179EA; Fri, 3 Jan 2020 17:36:42 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 2CFEF17979 for ; Fri, 3 Jan 2020 17:36:42 +0000 (GMT) Received: from localhost ([::1]:55250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inQsL-0007dM-IH for patchwork@mira.cbaines.net; Fri, 03 Jan 2020 12:36:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37581) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inQrm-00079Z-Se for guix-patches@gnu.org; Fri, 03 Jan 2020 12:36:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inQrl-0003Jm-Cz for guix-patches@gnu.org; Fri, 03 Jan 2020 12:36:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35441) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inQrl-0003IO-5M for guix-patches@gnu.org; Fri, 03 Jan 2020 12:36:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1inQrl-0008HJ-2m for guix-patches@gnu.org; Fri, 03 Jan 2020 12:36:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38902] [PATCH 7/9] services: nfs: Add verbosity control to idmap-service-type. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Jan 2020 17:36:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38902 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38902@debbugs.gnu.org Cc: Ricardo Wurmus Received: via spool by 38902-submit@debbugs.gnu.org id=B38902.157807294531728 (code B ref 38902); Fri, 03 Jan 2020 17:36:05 +0000 Received: (at 38902) by debbugs.gnu.org; 3 Jan 2020 17:35:45 +0000 Received: from localhost ([127.0.0.1]:41402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inQrR-0008Fg-DL for submit@debbugs.gnu.org; Fri, 03 Jan 2020 12:35:45 -0500 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21165) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inQrP-0008FW-Pj for 38902@debbugs.gnu.org; Fri, 03 Jan 2020 12:35:44 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1578072941; cv=none; d=zohomail.com; s=zohoarc; b=VKoNZK2be8wkBuZBJqlSYVNjZPKrwzFNL59KYSQV9sF+zKOahhTaWP6MpDV5ybs4AUkjelz5n6NnuQVg4Zcq6A0PPFYYuj3MzA/hH1rOxK+cGi/V2VRLrLnbVBarFefkDBRPED+0pJX7YGBR77OkRbvavYEbWVUN1msc0QbaU4g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578072941; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=IvlPM5W8v9firrVsU1VJ4h0cKhus/G1TXS4O1c2jItQ=; b=Lwqwd1Evv5RCbG0qy+VAevbztpLm9HgmGp9snUkb/jbkhqjRlKHI62Cw6O42B1NjoTESMmbICTn8MUuEcQJcMxnLhkK21mj1J0Q8N4k6H7VGVyWLNXNo/+gbNTiuQCvYQWpPehH/J455fEre+udwCy1KYYbGGl9O2kWicvqXc8U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1578072941; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=IvlPM5W8v9firrVsU1VJ4h0cKhus/G1TXS4O1c2jItQ=; b=NWl2MKuQrIV43pzWkFcLktW5SzrBP686s10gQ0LGQIIK7PKOnmWw1qaut9kXZuVf 9YgUnfPItGUQS/QmCE0QEV1m+SqbB1Issz6DV19vY1dTbii5l48WqkpUcjVuFhc/12W XsC2BY8qb2MVI7ZUGpDJGL/HENb7xNZitJ/eclkk= Received: from localhost (p54AD4FBF.dip0.t-ipconnect.de [84.173.79.191]) by mx.zohomail.com with SMTPS id 1578072939253788.4490502714638; Fri, 3 Jan 2020 09:35:39 -0800 (PST) From: Ricardo Wurmus Message-ID: <20200103173506.9779-7-rekado@elephly.net> Date: Fri, 3 Jan 2020 18:35:04 +0100 X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200103173506.9779-1-rekado@elephly.net> References: <20200103173506.9779-1-rekado@elephly.net> MIME-Version: 1.0 X-ZohoMailClient: External X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/services/nfs.scm ()[verbosity]: New field. (idmap-configuration-verbosity): New procedure. (idmap-service-type): Use it. * doc/guix.texi (Network File System): Document it. --- doc/guix.texi | 3 +++ gnu/services/nfs.scm | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/guix.texi b/doc/guix.texi index 70e3dfea6a..a26056899e 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -22030,6 +22030,9 @@ The local NFSv4 domain name. This must be a string or @code{#f}. If it is @code{#f} then the daemon will use the host's fully qualified domain name. +@item @code{verbosity} (default: @code{0}) +The verbosity level of the daemon. + @end table @end deftp diff --git a/gnu/services/nfs.scm b/gnu/services/nfs.scm index 9fb95bde7e..054dad08b6 100644 --- a/gnu/services/nfs.scm +++ b/gnu/services/nfs.scm @@ -167,7 +167,9 @@ (domain idmap-configuration-domain (default #f)) (nfs-utils idmap-configuration-nfs-utils - (default nfs-utils))) + (default nfs-utils)) + (verbosity idmap-configuration-verbosity + (default 0))) (define idmap-service-type (let ((proc @@ -185,6 +187,10 @@ (plain-file "idmapd.conf" (string-append "\n[General]\n" + "Verbosity = " + (number->string + (idmap-configuration-verbosity config)) + "\n" (if domain (format #f "Domain = ~a\n" domain) "")