Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6009042pxb; Mon, 14 Feb 2022 13:02:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpqP1AecZbsgWNtAQnjARl5cmKuVekH2xk5ECBg4uNQqZr7JRDj2RemUbErgQ5Mt/q1CXk X-Received: by 2002:a62:1507:: with SMTP id 7mr556811pfv.62.1644872562587; Mon, 14 Feb 2022 13:02:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644872562; cv=none; d=google.com; s=arc-20160816; b=ctaRT6raBhrf1+bJPXKZkCeAYOsFZP0k+lNNsBwwUlM4VQNBpWuFtz14dbXXsv0EkN yBpWI82lqPT2KxWKE/XGTHMrV2b1zqVrE6IpGB0rreyw+anTBh9EsDd2srDMJfxG48XR L4SwRP++ZEyx+PulBwzQX0L+IUrw26kRKgTbjMDnPtBcHUZM39L2AAjrz08JPVqiad0P 9S0NThBNNdGAjz6C6TLafQmBkihjnANKYwWZbHd+w15cyDz37KpYmjnd6zpHwscdmsLg u7mo0/k3GogKhhyIt/dBQ2BOYmXyTmroFu6xbOba9hyhnRWOV8xUQX7JuFCm9tdO+058 3Lcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QcLIq3Qg07j1+TLhlSfgk2MDyVcYlmMkoDjF28zeeAU=; b=VXzua1T8t/pfwtf4ewqMKk26prCkk/iKK+kt58BhT7NL9I3j63pk9o+bR+RYbSBb3/ hM2dD9invU63mPZNEA80aKqF1mbEGxL5pC6xgYfWhGZmy2aXmfNxotGlkLSC5PtDKv5k ALtWySfZUCckRFcJvuevq8IHQ7tkhEiM26U11J9fU9Tle7tEibIZATp64DrpR14kGygI VK5EwklA2h44t0SqGttzAaL149ZSeSGwa5P3aFQcGOBPsVI8E1cG6xgvyPsINsd7gxxv rOXO+TZ+C48KgA697iYI+WcXAonv/UK7kbxtpItkRvbr5Nduw8lEf99IKvcJraLt/6xd bIZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MakF5dh6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o10si955588pgu.638.2022.02.14.13.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:02:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MakF5dh6; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B8141045BD; Mon, 14 Feb 2022 12:24:37 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351426AbiBNLcW (ORCPT + 99 others); Mon, 14 Feb 2022 06:32:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352211AbiBNLbU (ORCPT ); Mon, 14 Feb 2022 06:31:20 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D795B673E5 for ; Mon, 14 Feb 2022 03:15:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644837351; 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: in-reply-to:in-reply-to:references:references; bh=QcLIq3Qg07j1+TLhlSfgk2MDyVcYlmMkoDjF28zeeAU=; b=MakF5dh662yAotzLEnrJCgpdpIUHtL+o4PNfgmNTXW8aNGQAqmpq6+OcdRNRyrA0W9udiu g2ck7jAY9wLtwVzWWDEjIoEQXVtXy+CIKr31V68Pj/16PimG0DrtPpi1Z4TyjZBQ2Ws5QC 2GCtfdBxCbpppk7tzudywE+9bZz3bM0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-554-24ODPMHVNi-8iejtdwVGTQ-1; Mon, 14 Feb 2022 06:15:49 -0500 X-MC-Unique: 24ODPMHVNi-8iejtdwVGTQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EF5331091DA1; Mon, 14 Feb 2022 11:15:48 +0000 (UTC) Received: from [172.16.176.1] (ovpn-64-2.rdu2.redhat.com [10.10.64.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 61BC37BB4E; Mon, 14 Feb 2022 11:15:48 +0000 (UTC) From: "Benjamin Coddington" To: NeilBrown Cc: "Chuck Lever III" , "Steve Dickson" , "Linux NFS Mailing List" Subject: Re: [PATCH v2 1/2] nfsuuid: a tool to create and persist nfs4 client uniquifiers Date: Mon, 14 Feb 2022 06:15:47 -0500 Message-ID: <863AB69A-D5D6-4F22-950C-E5F468CD4552@redhat.com> In-Reply-To: <164479707170.27779.15384523062754338136@noble.neil.brown.name> References: <9c046648bfd9c8260ec7bd37e0a93f7821e0842f.1644515977.git.bcodding@redhat.com> <7642FA55-F3F2-4813-86E2-1B65185E6B36@oracle.com> <3d2992df-7ef7-50ba-4f11-f4de588620d2@redhat.com> <4657F9AE-3B9E-4992-9334-3FF1CF18EF31@redhat.com> <945849B4-BE30-434C-88E9-8E901AAFA638@redhat.com> <06B01290-E375-455E-A6D7-419CA653A0D1@oracle.com> <948D8123-E310-4A35-BF04-C030F20EA83C@redhat.com> <164479707170.27779.15384523062754338136@noble.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 13 Feb 2022, at 19:04, NeilBrown wrote: > On Sat, 12 Feb 2022, Benjamin Coddington wrote: >> On 11 Feb 2022, at 15:51, Chuck Lever III wrote: >> >>>> On Feb 11, 2022, at 3:16 PM, Benjamin Coddington >>>> wrote: >>>> >>>> On 11 Feb 2022, at 15:00, Chuck Lever III wrote: >>>> >>>>>> On Feb 11, 2022, at 2:30 PM, Benjamin Coddington >>>>>> wrote: >>>>>> >>>>>> All the arguments for exacting tolerances on how it should be named >>>>>> apply >>>>>> equally well to anything that implies its output will be used for >>>>>> nfs client >>>>>> ids, or host ids. >>>>> >>>>> I completely disagree with this assessment. >>>> >>>> But how, and in what way? The tool just generates uuids, and spits >>>> them >>>> out, or it spits out whatever's in the file you specify, up to 64 >>>> chars. If >>>> we can't have uuid in the name, how can we have NFS or machine-id or >>>> host-id? >>> >>> We don't have a tool called "string" to get and set the DNS name of >>> the local host. It's called "hostname". >>> >>> The purpose of the proposed tool is to persist a unique string to be >>> used as part of an NFS client ID. I would like to name the tool based >>> on that purpose, not based on the way the content of the persistent >>> file happens to be arranged some of the time. >>> >>> When the tool generates the string, it just happens to be a UUID. It >>> doesn't have to be. The tool could generate a digest of the boot time >>> or the current time. In fact, one of those is usually part of certain >>> types of a UUID anyway. The fact that it is a UUID is totally not >>> relevant. We happen to use a UUID because it has certain global >>> uniqueness properties. (By the way, perhaps the man page could mention >>> that global uniqueness is important for this identifier. Anything with >>> similar guaranteed global uniqueness could be used). >>> >>> You keep admitting that the tool can output something that isn't a >>> UUID. Doesn't that make my argument for me: that the tool doesn't >>> generate a UUID, it manages a persistent host identifier. Just like >>> "hostname." Therefore "nfshostid". I really don't see how nfshostid >>> is just as miserable as nfsuuid -- hence, I completely disagree >>> that "all arguments ... apply equally well". >> >> Yes - your arguement is a good one. I wasn't clear enough admitting >> you >> were right two emails ago, sorry about that. >> >> However, I still feel the same argument applied to "nfshostid" >> disqualifies >> it as well. It doesn't output the nfshostid. That, if it even contains >> the >> part outputted, is more than what's written out. >> >> In my experience with linux tools, nfshostid sounds like something I can >> use >> to set or retrieve the identifier for an NFS host, and this little tool >> does >> not do that. >> > > I agree. This tool primarily does 1 thing - it sets a string which will > be the uniquifier using the the client_owner4. So I think the word > "set" should appear in the name. I also think the name should start "nfs". > I don't much care whether it is > nfssetid > nfs-set-uuid > nfssetowner > nfssetuniquifier > nfssetidentity > nfsidset > though perhaps I'd prefer > nfs=set=id > > If not given any args, it should probably print a usage message rather > than perform a default action, to reduce the number of holes in feet. > > .... Naming - THE hard problem of computer engineering .... No, it does NOT set the uniquifier string. It returns it on stdout. If you run it without args it just prints the string. Its completely harmless. Ben