Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3618149pxb; Sun, 7 Feb 2021 16:32:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHJ0IVgWarcQOQJHHhV5Ah/QFXuthoEnO0HVUK6GXlMomX02WWoS2aFXGtrtciNEHGgSey X-Received: by 2002:a17:906:2299:: with SMTP id p25mr14664183eja.279.1612744354351; Sun, 07 Feb 2021 16:32:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612744354; cv=none; d=google.com; s=arc-20160816; b=u1Fqyyl7Z8VknTqIvK1O9AaU09DwvS53Auhtl7tVf+dFaLucalOD0Zf8F3JSCAsReI uXayrkWzPMCdbJKLY4u12H7qcsBQBtPPE1HB3M+rdXVVwtataPUHNvehcH+lxNmxknnx y/qADj2n6fyRerZZGsN1yAblF1nVtDNvdVrBXCoKp7LPHjBbkgqJIYD5oTkkhbMyCMcv SADyKKba1oXVpsobAX2Zs9ZtNaMMZAZPUkD19gbhJl9ENC9kPfCnHjCibmNWpKr9ROao d5GWr96kKq0yxJt6XONPa6HFlGQhKBw4p5EIZKrU0fopFX1IubcBV6g5ow6sULtu+K10 ROlg== 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=UFuWJD362aqPkMwZCTXB0MHCTvRheF5NQlRdbu20E88=; b=iK9eC/6krcfR/XsO6zBZp6YGXTmtpQ7F6KMLwVcqlOtS1I2b0kA3NGfU++/qg3YxVn TgoE0LulxASBMFNwognteFAviFDdPqeWhnuMRBiTzfC2tJdGLmG04jPIziFgum4JYr8W C8fIEB7a5yIK3QPsc492BiFXIgUdXIGeTbxxzBOY/UkkOr5fqhxk164ejahHrM66Je0E GFXPoHRBXYHkmTxoKz93aof8KydjCeucO+HhNM8TC2BBGd+uB1BF/dl4yOVcFyBK35J3 vMk1GPXxgUH6nL3FIzOCxY7O/mK90Q6Vf82TdaJNHk8Zf4HRZEv1uUHlE6Bq8aV7qqQM 6G4g== 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 i25si11608760edb.99.2021.02.07.16.31.58; Sun, 07 Feb 2021 16:32:34 -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 S229564AbhBHAbB (ORCPT + 99 others); Sun, 7 Feb 2021 19:31:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:42890 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbhBHAbA (ORCPT ); Sun, 7 Feb 2021 19:31:00 -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 659E9AB98; Mon, 8 Feb 2021 00:30:19 +0000 (UTC) From: NeilBrown To: Steve Dickson , Linux NFS Mailing list Date: Mon, 08 Feb 2021 11:30:15 +1100 Subject: Re: [PATCH 2/2] mountd: Add debug processing from nfs.conf In-Reply-To: <20210201230147.45593-2-steved@redhat.com> References: <20210201230147.45593-1-steved@redhat.com> <20210201230147.45593-2-steved@redhat.com> Message-ID: <87y2fzcsfc.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 01 2021, Steve Dickson wrote: > 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); > + 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() ?? I just tested setting "debug=3Dall" in the mountd section of nfs.conf, and it seems to work without this patch. Thanks, NeilBrown > /* NOTE: following uses "nfsd" section of nfs.conf !!!! */ > if (conf_get_bool("nfsd", "udp", NFSCTL_UDPISSET(_rpcprotobits))) > NFSCTL_UDPSET(_rpcprotobits); > --=20 > 2.29.2 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAmAghhcQHG5laWxAYnJv d24ubmFtZQAKCRA57J7dVmKBudsfD/48XZqjRXqaxzn6QHqPd6UYQay5SD6soKL6 z+d9DYrvksVS/EZknFXp2j1ZAoz/a8U0to9dHF3b43podcZExaYFWn1qrHqHLhqJ sRcCQVr/nCrsWGux/abRhqFJzHguHBABY6bShTxg+uF5geyiJA13BMVbG5nuN6zb I8UDs+lNYTWC3NC8NayvWUu8gQVYzJFt0nu1uvoIQkiW7i9vs5eveK9fWujAoC2Q dKfpS1EG45+miMgjYYqgZ+iMVhGUdBvef7K/nlceOqpTKLIyKhtVQKRwKI28DzkN 1OFZzfgoFeUSht36Rca+F42WbPBNHAKCwoytokprw/fP5RhMk0OyVIwqlrNpEC3u 56fgjK3N+e3VnwR1peqAA5lb7+aUUFckDAlTvE9FA5OsEDl/4Q6ZeiX6sKJuiuCO MVzeYbCWDqTsW6OVvtgTDtfEvs81x4ivBmaqZPeXsfwCcs6M+DzsTXRYvK0NgMZO TxC5QiIPjcs3XmSRA41dKRydN2klxjz/hSNOa5gr6i8VgTga7gwDX/mfWW5AqkAu Rz22eNeEt4o83wRVSzdifLes72Qvb2yBYCtovj92OwVx6ax9/La+5DuUD1WvEqx5 OzwEwCTOQEJGk4btoerQHMqkV1UQYwwIBSrcuT6UZK4+gx+VnO5FfcjdDT2wpIYc iLzDu3UIhA== =z1Tf -----END PGP SIGNATURE----- --=-=-=--