Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5967728pxb; Mon, 14 Feb 2022 11:56:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSzszgmRw+t3IsXuNkZceA0sO8U+iquAKBIiVXPq9srctZKz8iFZ6eXTk2KVkpNyBYy7+W X-Received: by 2002:a17:902:f789:: with SMTP id q9mr480201pln.15.1644868588613; Mon, 14 Feb 2022 11:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644868588; cv=none; d=google.com; s=arc-20160816; b=Rf+pAaNesnf5mSvEK0++1wOls0+BsfNX3f1mjiB7CbxwJC6+3tH3g61o0G+xH/HJBl FeJzR1MRHMa/lECxGdhfGgqqRuwCruj963wbU7gbzMmfVw2K4yFhVrN0zY4pkXFCH9XJ dqjVtsirL9NNmcvnSE1cTJSIjow8dkKk2vcRAbLZjpN0y9M1+/dTTfPVtB7tmzRBNSB4 qogPL1JI+EkUADmH7s69R3hrfRqROANRxzdz3v3EbLbHveTbruX68sHAzAUw1Aqijj9m HDDfDENA3mSRBtbHxkSr4DJsE7Stzmj9csrOjil6hXzrHiu1DpgjU5lgvyktfl6JeVoM Qg8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=MIFGCWUAAmOp8g9RG4N/12LBHUJUvHF/3M6woarOslI=; b=SRF52wHgk212QU+m9oLKxbPDMdbg1dLve66+xE3DvgFLmJgVliR0Z3OcRTjhG5Grnb ieT2EdTAx7m4yLLjsMfOycoFx6w2q6Rt1T9a1MT8n7q/jvzBU71n4u0xaq2EE5o4obLI q9oz5ZJfWNn4kNhQRrHvoCGcRdTDCfsBTYbpxlRrWA944soNtvlqFUMWRiOEP9hNOX5W foGgLI4DSncYZ5C6w7RvuMX0J4WYmgdzCsGJQ4yi1hnqTtMSdFoCepTDoSKgpjRoXaKJ 69iKia34GIw9xl+q2bQ2B/gQkOEsoU6P5VJmptYu2a59GbkY5NRDw0RCCIQgnw1rGQ/5 zYsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=YCQ47JEl; dkim=neutral (no key) header.i=@suse.de header.b=EjfTSMRN; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a187si587027pge.476.2022.02.14.11.56.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:56:28 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=YCQ47JEl; dkim=neutral (no key) header.i=@suse.de header.b=EjfTSMRN; spf=softfail (google.com: domain of transitioning linux-nfs-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7716E1017FE; Mon, 14 Feb 2022 11:38:03 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238838AbiBNAOi (ORCPT + 99 others); Sun, 13 Feb 2022 19:14:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:35862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbiBNAOh (ORCPT ); Sun, 13 Feb 2022 19:14:37 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F9A651E6A for ; Sun, 13 Feb 2022 16:14:30 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 84CFD210E7; Mon, 14 Feb 2022 00:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644797076; h=from:from:reply-to: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=MIFGCWUAAmOp8g9RG4N/12LBHUJUvHF/3M6woarOslI=; b=YCQ47JElyGvJlMoqbB2x6y/l7AGBKITJcb+Js1wWlq6WtwXbfyjBUXW4+fgLPv6UbpKbSJ rNVI/bl09hO3cxXSgZtwQi8qRogUV35HvXzHiNtq1PqakY+eSVNhbpjTtmawkqU3C9MnRW 0jvIrrWQ+Ugd0i+cjQQ007jKEyQjtlc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644797076; h=from:from:reply-to: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=MIFGCWUAAmOp8g9RG4N/12LBHUJUvHF/3M6woarOslI=; b=EjfTSMRN1mmcuSw7+I2JKpvcd2iXEOJou1uQ3D426rCl8Emu3EkTneqddVB0rvLAEUPb0H gecdum7BWwGFuaCQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1C88D134CD; Mon, 14 Feb 2022 00:04:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 60qlMZKcCWLUcQAAMHmgww (envelope-from ); Mon, 14 Feb 2022 00:04:34 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: "Benjamin Coddington" 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 In-reply-to: <948D8123-E310-4A35-BF04-C030F20EA83C@redhat.com> References: , =?utf-8?q?=3C9c04664?= =?utf-8?q?8bfd9c8260ec7bd37e0a93f7821e0842f=2E1644515977=2Egit=2Ebcodding?= =?utf-8?q?=40redhat=2Ecom=3E=2C?= <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> Date: Mon, 14 Feb 2022 11:04:31 +1100 Message-id: <164479707170.27779.15384523062754338136@noble.neil.brown.name> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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 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 .... NeilBrown