Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp38790pxb; Mon, 8 Feb 2021 14:31:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCXcFAL9QwjvXUA7xxdDORJOIMERuCM06Ub6uBMA+h4EwbozJ+7AZADsxDOYeJN0OFdYqr X-Received: by 2002:aa7:c751:: with SMTP id c17mr12028807eds.324.1612823463697; Mon, 08 Feb 2021 14:31:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612823463; cv=none; d=google.com; s=arc-20160816; b=Gux7nKYbEPq18Nsbaq/qU49OxFRWmZpyARHDrn81uzxZzZbIOr7YBhh9McaOWFpUfm kjhmzWejakraFcwO1cBSUXCdwzSPZWQO4YvZ7m/GyyPmx4jlRoHv4v3YVNE/Ta1+5XR2 +AEHPDET3JIKlobLJS0Id0PcwPuZ4Z3xAjXvjewm4aixySIIU1G/kIrzTWq0wCGfVaK7 R+i3EulHhdk1NebEn7OSLvV+5CJ2wk3Qa0+cpcW+nn+UVY9o3hMsxkRtLypRhww69fsP 4I69fHDfPzj+Q/tuIfzDVDkNGezwWHzr0rk02orB0J5aPGNffM/jZ7vZ+YW5A0Vk5Jl0 svYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:references:in-reply-to :subject:date:to:from; bh=oAOjRsd+cvtJ5bIkSxhnIi3Zvb0tG/gO8QROKtVFnos=; b=K3R6Wy99rJDZq02fA0zu6D3j2K/gcUNYpzfL3wLvLjJjFVSOmYSDu27eqr0Wkw70rk h4B3y4s++cAUYcsrBOJoGbC2V54usDtu/DHrXTtjtJcKjPaO0BzGf7tvYT8hxIb4/K8X 2GH4gVEl8Zp3CLBub43xwgSwcEToEGBVwQ/HMwoEvEx/mlc6RL5c6Z1LQLDC0wAs7QXw IXiZvGpi9LqBaFp1DBcb8YV7CzsF7Ow6VWYZPNc3p0F0kyRLPxIrRop7Zk5Ly847dhTE NjE4LEAJsD40WPsgWdJfD1CPtgNRy/BkqaUopBOMRN106lurdIlppSNe91p/crhxV32M /YKQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si4858198edq.459.2021.02.08.14.30.32; Mon, 08 Feb 2021 14:31:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231480AbhBHW2b (ORCPT + 99 others); Mon, 8 Feb 2021 17:28:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:49076 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231235AbhBHW2W (ORCPT ); Mon, 8 Feb 2021 17:28:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 91CADACF4; Mon, 8 Feb 2021 22:27:33 +0000 (UTC) From: NeilBrown To: Steve Dickson , Linux NFS Mailing list Date: Tue, 09 Feb 2021 09:27:29 +1100 Subject: Re: [PATCH 2/2] mountd: Add debug processing from nfs.conf In-Reply-To: <66fbe743-aa9d-ca60-8955-c2859d9ab9df@RedHat.com> References: <20210201230147.45593-1-steved@redhat.com> <20210201230147.45593-2-steved@redhat.com> <87y2fzcsfc.fsf@notabene.neil.brown.name> <66fbe743-aa9d-ca60-8955-c2859d9ab9df@RedHat.com> Message-ID: <87sg66ci0e.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, Feb 08 2021, Steve Dickson wrote: > On 2/7/21 7:30 PM, NeilBrown wrote: >> On Mon, Feb 01 2021, Steve Dickson wrote: >>=20 >>> Signed-off-by: Steve Dickson >>> --- >>> nfs.conf | 2 +- >>> utils/mountd/mountd.c | 3 +++ >>> 2 files changed, 4 insertions(+), 1 deletion(-) >>> >>> diff --git a/nfs.conf b/nfs.conf >>> index 186a5b19..9fcf1bf0 100644 >>> --- a/nfs.conf >>> +++ b/nfs.conf >>> @@ -30,7 +30,7 @@ >>> # udp-port=3D0 >>> # >>> [mountd] >>> -# debug=3D0 >>> +# debug=3D"all|auth|call|general|parse" >>> # manage-gids=3Dn >>> # descriptors=3D0 >>> # port=3D0 >>> diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c >>> index 988e51c5..a480265a 100644 >>> --- a/utils/mountd/mountd.c >>> +++ b/utils/mountd/mountd.c >>> @@ -684,6 +684,9 @@ read_mount_conf(char **argv) >>> if (s && !state_setup_basedir(argv[0], s)) >>> exit(1); >>>=20=20 >>> + if ((s =3D conf_get_str("mountd", "debug")) !=3D NULL) >>> + xlog_sconfig(s, 1); >>> + >>=20 >> Why is this needed? >> A few lines higher up is >> xlog_from_conffile("mountd"); >> which calls >> kinds =3D conf_get_list(service, "debug"); >> and passes each word that it finds to xlog_sconfig() >> ?? >>=20 >> I just tested setting "debug=3Dall" in the mountd section of nfs.conf, >> and it seems to work without this patch. > No it is not... I didn't realize xlog_from_conffile() process > the debug config variable... maybe we should change the name > to something like xlog_debug_conffile()... something more > descriptive as to what it does. > > I will clean it up... in a bit. Thanks. I agree that including "debug" in that function name would help. Maybe "conffile_set_debug()", or your suggestion. Thanks, NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAmAhutEQHG5laWxAYnJv d24ubmFtZQAKCRA57J7dVmKBuXcTEACoZJXrmp2B+ruTDCThBg37IhG3c8MpGFyU PeV7gvK9wm0Cnps2K2mREAgfcmpfeITpVFeFdTmpnEwyzLGw3PdC/iPjP+Lt3Dz+ vdTien4r82aQkzZYNSloUlOxj3sxBdUKpI0TNA7zjU7hW2MymOrzfdJzHvTPTqq5 oV7E9e04v+9gXjOmKbO8taO1Y+oQBVNdVv5TXMpN6/ptKEx4C1/9G+w3hMNo5Mjy hGoSSNgJFXjJgOCKP83JNuyxgfHh5Hi4viIhz4kNIjXTbR4vhzDMkfbvMqugqtgC gDAbTjzrL6UFizh+B3/U4Scfs52HF8F4bLWDAywu0qB1UXyXJ0QYV4kjEzKIiSXe 3Om5B3JPN0lNpOgspPlIhhD0zKg0AMYMM5d8q20oKU/yJVh67l6Tt9MGPKVzLVJE gVQRxse22YJ4RxPOYVWcHSGut0VVBG2gxrYiZsmTnrSATHH5OjlFFZl74ZLZr4O7 siEHN9s235VJB8bmnY4GrIFMEFCsOQFdgEcnlv4skHefZg6/4O7OFWLXxw3CVKyt mFyd7EquoIKdta1lAswRUhWblm+LWDP6ysaWsaNd5ohpOMEOLgAZVj7ViHk7eOcp S1C/iH9OlFtJ39TQOttTdWmVi8YsxZu/x3TO5bzHNEA8yYQutSvPfQGAb5BvhfEI knSZxqj6Qg== =/YU1 -----END PGP SIGNATURE----- --=-=-=--