Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp412313pxu; Thu, 7 Jan 2021 08:05:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp/cJwkJCC8NDChR4pAV6DRWvifSEewOFNGM7QqYx3ysNPMgOB+hDHioGnEF7mJrKct5gJ X-Received: by 2002:a17:906:94ca:: with SMTP id d10mr6497315ejy.62.1610035509844; Thu, 07 Jan 2021 08:05:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610035509; cv=none; d=google.com; s=arc-20160816; b=l7Yuj2kcUUFoRTy5g0TK/bAV82EKXH4Hv9MlJR9EzEEns1hzpPfiWbdUV1FeSPl19T K/UzRzGoyPo+5hhEn5471hD7TXEBOM6BNIh+cSuyjcGWFi9DiUao6e/2i4V4Z3CS1Ex6 BN0iiuAe4X+6y1QcF6SdEc4NY0qDmTvPZMb6ocKy5WYQsjgyGOlqP02Vdcr58LqZuXlO THW/LcXW4oF0h1wqsjec2UZNXvsI8/fT7Odl6k6z/hAFBrR0ZwAqb+onjerUrG1XBjq/ XYWWKT/WwQfH6j50wG+6F/fH1/nixt0oMtljNy49PTFPMEODT9RO5XLyT8BfiOGFXpBe e3wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:to :from:subject:dkim-signature; bh=HiGyEcSMzvsRvPyubTsGoWxp+GS0lXaauZP0QWTraeU=; b=J9jjmYElCsKd2pmvoY0eUj0SfIUS97HNzPiDbd/dGPVIq9SeoEhAvrkBPriMtgy3xI nioHw0B5DzZ8i06hIw2D5VLtBacekdCDAcVC/c7YRcAX5+G8Lc/vaV9Rd1TweE/9xVuC iXkxBgcjYuUm2xsik7DTLbMuq0X9KVYRJLxTiEdgW6mvgSbHYioOXUmcat7UTUKJJ4bO al6i8YTIRoWU0qPDQol/2qdZBLVa46ZobtPGPramvFCM05gh0wLXdF4BugK9EK7+6X6C WSqAZwRUp6OEMWfogg/QkwZVaZFEvC2PxYCjchT1jIsusC2QmuwEUsoRDqEepUZsLZti ucpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BCHrsZzd; 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 jg13si2649152ejc.310.2021.01.07.08.04.45; Thu, 07 Jan 2021 08:05:09 -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=BCHrsZzd; 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 S1728460AbhAGQDl (ORCPT + 99 others); Thu, 7 Jan 2021 11:03:41 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36582 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728372AbhAGQDk (ORCPT ); Thu, 7 Jan 2021 11:03:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610035334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HiGyEcSMzvsRvPyubTsGoWxp+GS0lXaauZP0QWTraeU=; b=BCHrsZzdTpn++IlcPm0jnmo99N0YTGQUf6UH0LkHeCVR84+OjtZrVgvQevBxTUoxhZQfph TlrzDQM5bV5yB3dJthY0dsdYFp97bKqhDCMuwWlLnoW3SbGLwamTXyEDkeuGcyrSyYZR7m 1hSVVm39r00QBDf/0/cPaS7ABzS27FM= 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-527-cW1BAi_MMdyRQOOHgM5DLw-1; Thu, 07 Jan 2021 11:02:12 -0500 X-MC-Unique: cW1BAi_MMdyRQOOHgM5DLw-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 BF7FD809DD6 for ; Thu, 7 Jan 2021 16:02:11 +0000 (UTC) Received: from madhat.boston.devel.redhat.com (ovpn-113-139.phx2.redhat.com [10.3.113.139]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8F6245D9DC for ; Thu, 7 Jan 2021 16:02:11 +0000 (UTC) Subject: Re: [PATCH] mount: parse default values correctly From: Steve Dickson To: Linux NFS Mailing list References: <20210106184028.150925-1-steved@redhat.com> Message-ID: <3b8cecf2-3f15-a05d-13f0-2cc5b2d50c79@RedHat.com> Date: Thu, 7 Jan 2021 11:03:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210106184028.150925-1-steved@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 1/6/21 1:40 PM, Steve Dickson wrote: > Commit 88c22f92 converted the configfile.c routines > to use the parse_opt interfaces which broke how > default values from nfsmount.conf are managed. > > Default values can not be added to the mount string > handed to the kernel. They must be interpreted into > the correct mount options then passed to the kernel. > > Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1912877 > > Signed-off-by: Steve Dickson Committed... (tag: nfs-utils-2-5-3-rc4) steved. > --- > utils/mount/configfile.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/utils/mount/configfile.c b/utils/mount/configfile.c > index 7934f4f..e865998 100644 > --- a/utils/mount/configfile.c > +++ b/utils/mount/configfile.c > @@ -277,8 +277,10 @@ conf_parse_mntopts(char *section, char *arg, struct mount_options *options) > } > if (buf[0] == '\0') > continue; > + if (default_value(buf)) > + continue; > + > po_append(options, buf); > - default_value(buf); > } > conf_free_list(list); > } >