Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3549460pxb; Tue, 20 Apr 2021 10:41:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGRPorg90IFZh0KEhTw4ZrBy7Ju5Pqpu5dgoeMdliCMgzqbwHLv/U+8k3P7Sp14WkWaRIL X-Received: by 2002:aa7:d916:: with SMTP id a22mr33574236edr.287.1618940468043; Tue, 20 Apr 2021 10:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618940468; cv=none; d=google.com; s=arc-20160816; b=J/jLXsSPA/bm6STAW9qh7GM5/0qI3wYetRvLvmknaKtGm1ZZLYVvUl0YLtTci7sg2/ S0yXv5I350VpC29ZMmvF9Up+PHa4TPHk/7xEQwC0FuIdZXCz4KF9mkI7UbUFxLpQhor+ 4nesT2VN7EYGPb2QVUS+Y0kpCbVDs7c/219h31LbR0daLSPhv5+9wTp5q1irUin2+vqR 18wxkDRuYNiJ6EKQTt4jZCjx/rSEzHsgTDdVUqffyIh90fbfdddj/lzCWR4/0x8JUchX fyGpC2Htp/4PNMHIo0/LfLYXeSAHRALwcA6deSgn8Vb85musU5fmZEy7Mx7/I8Yh/3ws p9rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=X9toThkin5149zH09S/sFcZ0ZAhAw/iXkYFyz96xI74=; b=RLfy7ZnsQkYPPjGBgZXPhuVtKnCxjms6XWf/7WVYFRSJZattf7hT1DdzyK5xoC9OJt g6a9hF14OMYdHO6rfHzin8h1imbJuE7XqHjoK2/zzbyzwyujkH1TckhyQqs4sy4RpTN9 K9Wk29TJ1T/+qMaxBwUwk0OjtTUiixs+4m/mnF3pn+1UW9+FYWta4W22xfDRFUhJ1ENL vc3MZAr2OlC+tM0hF63MKoMYMxzPNVqUZ9hHh+swT1UcCQ6RzQiNO7wA80j7t/OUi/NP Z9WQMemvDNEJj7SJcNZesBqchtaE1wEOgQwTowYehqLcLD77OJtiFax06+mxb7DphBQ0 oAug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=NNDo7Rhm; 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 l23si15269429ejc.104.2021.04.20.10.40.40; Tue, 20 Apr 2021 10:41:08 -0700 (PDT) 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=@fieldses.org header.s=default header.b=NNDo7Rhm; 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 S232473AbhDTRlI (ORCPT + 99 others); Tue, 20 Apr 2021 13:41:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231549AbhDTRlI (ORCPT ); Tue, 20 Apr 2021 13:41:08 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 980ABC06174A for ; Tue, 20 Apr 2021 10:40:36 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 1CBCE6D1C; Tue, 20 Apr 2021 13:40:36 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 1CBCE6D1C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1618940436; bh=X9toThkin5149zH09S/sFcZ0ZAhAw/iXkYFyz96xI74=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NNDo7RhmL+9IHebhcxtw4N+80ikDCPH2NN+S+NFNLZKMVClfvAtoqUwKTcCcNVq2M 9GGrGbER2Zq1iuc3ZUvKLmiReMTxHMWeje+U+KlrJSbkJ3LSu0LnPOQ1KKJCmZhO3p UurfOXsgtAZ556xS4Onk0oSAHFRbSuPJoEYhutjg= Date: Tue, 20 Apr 2021 13:40:36 -0400 From: "bfields@fieldses.org" To: Trond Myklebust Cc: "linux-nfs@vger.kernel.org" , "ajmitchell@redhat.com" , "SteveD@RedHat.com" , "chuck.lever@oracle.com" Subject: Re: [PATCH 0/3] Enable the setting of a kernel module parameter from nfs.conf Message-ID: <20210420174036.GD4017@fieldses.org> References: <366FA143-AB3E-4320-8329-7EA247ADB22B@oracle.com> <77a6e5a4-7f14-c920-0277-2284983e6814@RedHat.com> <2F7FBCA0-7C8D-41F0-AC39-0C3233772E31@oracle.com> <20A43DDA-C08E-4E39-A83C-24E326768ADE@oracle.com> <2d7d391802a3984b68aa8b3e7f360b0b6cb733dc.camel@hammerspace.com> <20210420171806.GC4017@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Apr 20, 2021 at 05:28:08PM +0000, Trond Myklebust wrote: > On Tue, 2021-04-20 at 13:18 -0400, J. Bruce Fields wrote: > > On Tue, Apr 20, 2021 at 02:31:58PM +0000, Trond Myklebust wrote: > > > I think the important thing is, as Chuck said, that the setting of > > > the > > > uniquifier has to be automated. There are too many instances out > > > there > > > of people who get confused because they are using a default > > > hostname, > > > such as 'localhost.localdomain' and are setting no uniquifier. > > > > > > So the point is that it needs to be persisted by an automated > > > script if > > > unset. > > > > > > While that script could use nfsconf to get/set the persisted > > > uniquifier, the worry is that such an automated change might be > > > made > > > while the user is performing some other edit of nfs.conf. What > > > happens > > > then? > > > > The one thing I'm a little uneasy about is ignoring /etc/machine-id. > > Seems like distros *should* be creating it for us.  And it would be > > convenient to have one source of machine identity rather than > > separate > > ones for different subsystems. > > > > Maybe we could use that if it exists, and fall back on generating our > > own only if it doesn't? > > > > (Well, where "use it" actually means take a hash of it, as explained > > in > > machine-id(5).) > > > > Maybe, but that ties the nfs-utils package irrevocably to systemd. Well, like I say, we could have a fallback. Or even provide alternative scripts in nfs-utils and let the distro decide which to install depending on whether they use systemd. But, whatever, those two alternatives (machine-id or vs. nfs generating its own uuid) are basically the same on some level. I agree with the basic idea that this should be automated rather than living in a configuration file that humans might have to deal with. --b.