Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2800139ybb; Fri, 27 Mar 2020 12:16:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtx99IQi+UMUz34HxJQrcNYZvAplTvTBUfjJAphyURUhPT9ulpB7ERxOaGb6cyrfAkmAtbL X-Received: by 2002:a4a:e08b:: with SMTP id w11mr816527oos.62.1585336613010; Fri, 27 Mar 2020 12:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585336613; cv=none; d=google.com; s=arc-20160816; b=xvVZ36XSM9hUkedEcR40YVZ/6EbgZag1I5C70QupyUrJUO3BmQE41hYQHsD8AtzV9F lSsmvF1/RZCpze8bu02YZ6xr00rzCpsBm/SFU6YPeJjmuOrMLExCYtDdGq+JsK9SHfza 5ZAofbGRVWUx4xGxIp7tJ/weK2BqQFFBa3UsuaPBgWjhhO8SG6Qj7cJLMCkuXZn7h7LK ENw3r7LPu6aiOIQs5XzbdDo3YpL3F9W2h6Zep88pjHhijfUVvBzx/ERM5oVNYqDSpnK5 4+0mizCQ6t48mksaayJHwzSbk/WX4qJob/issbx6I5fzTOdFTH/b5LOkcQvY6zpxJoH7 Lp/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ClgdbfsN2BzyCiLhgFHe7L5SuiA1rMvZiylC76ARHq8=; b=W4yH7s/olOiqWYzDjbgudljDx6J4hbY/D1kqsaKYBmlK6Xgcjzc/mQFW/0913OqqbQ vORq30Aeq6v/+FT1c9v3BmUgNQizF+YQoss/gmwFP3Cs0p1I95vyTItXqGSRtNvxH64s 0a2D9fqNjL9Z+Ei2FuxsOUMnmarA4lSYfnWQ/hz77dEvlFGWYsG/xCxozuTCuRB18oLh zYQPK+5NyALVocKwFppmGTEqLG5P5qptRa9u0JHhlQfzI+wgDeQ+b+bBPn1XKszCRcIy EEjwDtDKUldVjVQxwcccxn+HGaOBy4eY1tmc/IA98dUOD22QEchSFonFy4o3SRi/Jneu kXxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="A/eNs6+e"; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id y10si2885234otk.128.2020.03.27.12.16.41; Fri, 27 Mar 2020 12:16:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="A/eNs6+e"; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 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 S1727335AbgC0TQg (ORCPT + 99 others); Fri, 27 Mar 2020 15:16:36 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:41464 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727143AbgC0TQg (ORCPT ); Fri, 27 Mar 2020 15:16:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585336595; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ClgdbfsN2BzyCiLhgFHe7L5SuiA1rMvZiylC76ARHq8=; b=A/eNs6+ebO0l47mwjGkDNOipTYxJSxsKyjHo7e/jAj22rCrR/hNCsmVk+AQQfiPvw08t96 GU6l/wgxM5gmf2zL/CjIWOOrQ1nv5jbSaxbsuAwBPCZa1F02gu8TFuemE9dqsWERPu7cpw aHka74eIkQbmwydaHl83K6fcbR5gpxQ= 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-324-FjqwnJsWNHm8_cyUuOET9g-1; Fri, 27 Mar 2020 15:16:31 -0400 X-MC-Unique: FjqwnJsWNHm8_cyUuOET9g-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4879B18B9FC1; Fri, 27 Mar 2020 19:16:30 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-114-250.phx2.redhat.com [10.3.114.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id F3E1E1001B28; Fri, 27 Mar 2020 19:16:29 +0000 (UTC) Subject: Re: [PATCH nfs-utils] conffile: Don't give warning for optional config files. To: NeilBrown Cc: linux-nfs References: <87imiq7586.fsf@notabene.neil.brown.name> From: Steve Dickson Message-ID: Date: Fri, 27 Mar 2020 15:16:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <87imiq7586.fsf@notabene.neil.brown.name> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 3/27/20 1:10 AM, NeilBrown wrote: > > A recent commit added the possibility of optional config files for which > warning messages would be suppressed. > Unfortunately only one of the possible warning messages - the least > likely one - was suppressed. > > This patch suppresses the other. > > Fixes: c6fdcbe0a5cf ("conffile: allow optional include files") > Signed-off-by: NeilBrown Committed... (tag: nfs-utils-2-4-4-rc2) steved. > --- > support/nfs/conffile.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > > That was careless - sorry. I really have tested this time. > NeilBrown > > diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c > index d55bfe10120a..3d13610ee766 100644 > --- a/support/nfs/conffile.c > +++ b/support/nfs/conffile.c > @@ -429,9 +429,9 @@ conf_parse_line(int trans, char *line, const char *filename, int lineno, char ** > > subconf = conf_readfile(relpath); > if (subconf == NULL) { > - xlog_warn("config error at %s:%d: " > - "error loading included config", > - filename, lineno); > + if (!optional) > + xlog_warn("config error at %s:%d: error loading included config", > + filename, lineno); > if (relpath) > free(relpath); > return; >