Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3585120pxb; Fri, 11 Feb 2022 03:18:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyI5ICG9XKKAZXX45RMPlNuM0/5w73+MdPXH1FIDKYi3xrthun/POL2A4TPH4bo75Ws4Z4z X-Received: by 2002:a17:907:94d0:: with SMTP id dn16mr995194ejc.199.1644578332087; Fri, 11 Feb 2022 03:18:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644578332; cv=none; d=google.com; s=arc-20160816; b=GcPKyyYWMnyGDSqITTMLeuGFbl7zXbrE9jM9QH+AQVRLewXbbnRJZjXd7I/Bq93/Fj 5a8c29urDyPaP0MLXrzOPKqmTwXDVwuoRMM3bFEsszvj4goqUS3jQARicup7KvhKLOBw WlFNME3cZzVLJLmHb7OZcuXGo0rDHW+pQWLVqIXfdWO7Jw7MOZXfxCW7G8RII55DJe5A /+lcsxBQ5AP6KKTstp9t30qHl5msBs4Vv67m9eDlilkNRoX8PgGkFt60ZqCo4rfMc78S m/sdyub9R1xxgYvs9LyQRk8KuxorA1I89SDTBpy9GmkkYxew5KPQwSDIApb6lcCuEYCV m/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lPAqQG4+jAdXtdO8h1GYCiTDHuaCIYvU9rCULIsm1+8=; b=PxmJuN0RAAe0dOgkuzJjK0SgOBhBV5lUIXKAncnFTQdzqMoMOxWasQVZkfOoKL3GJw fHgQEJoXa92en+BnRa1Km3fmxrSM/1/BKgFswn0npN6PuM4nHKSWogeP3QlTwGXLHLPo XEsStOexrDMrMO/C102VnrBFFCmiKTPITi4rJlYiipJveKrWkAxKSosrX3wrsTGr2Cxj APaa+SALYwrpainszmZPvdS1Pm4o6YZVNfiHdWoF/wmroNYWfIPng8LDvjnndgndNLH4 HOKX/VXjETtfdTHg63lGMg1/om987cTFBvbIiernTREC677m6NrV1DxKHFQxdYoYeuDL hbyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XEuWoieB; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm16si8974213ejc.584.2022.02.11.03.18.15; Fri, 11 Feb 2022 03:18:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XEuWoieB; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S245036AbiBJRLi (ORCPT + 99 others); Thu, 10 Feb 2022 12:11:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244818AbiBJRLh (ORCPT ); Thu, 10 Feb 2022 12:11:37 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C648E6C for ; Thu, 10 Feb 2022 09:11:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644513097; 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=lPAqQG4+jAdXtdO8h1GYCiTDHuaCIYvU9rCULIsm1+8=; b=XEuWoieB2CD6Y8o6Clz4MWqurKhGApfhsnTVyDRYnWuW5NcF7NGccuiTAW59k3CQDNWfP9 mtIu9wJF0A28Gy3apXaSq5nXY9fCymMc8amuz94lxJurBiu1//a1tNMmr6t/tzRfWWaY/K Y2tJKhiVt+mm+C3KTA67fBAGW8igmvI= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-557-YxjxHtvbPWSkCdUZq4_KNA-1; Thu, 10 Feb 2022 12:11:36 -0500 X-MC-Unique: YxjxHtvbPWSkCdUZq4_KNA-1 Received: by mail-qt1-f199.google.com with SMTP id g18-20020ac84b72000000b002cf274754c5so4860367qts.14 for ; Thu, 10 Feb 2022 09:11:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=lPAqQG4+jAdXtdO8h1GYCiTDHuaCIYvU9rCULIsm1+8=; b=UQel8ELtD6UzNshmfbSPwzhQGRWRWylOcuI7Rgmcre66Fu4FnJJcL7Lq3UmCPvKMOo KZQdEYmqMt1V2VneJqzOEypwl7lfJ4aOwJECTB0WcR207naWk3faTS97wqy+rFVZPG8k Xsddo+myHWn6nif2ylt+nLrLPUJ0BowygZpxF+ZzWU47mjfF3klpJ3BWqlzUrglkfD/M 4ohnRQ8XFXEQl9987h/oviNegABZ8NLtJNhWAH1HB8zQJu7DinWnA07V3EqdLxtzJIgH 9TvB17QKRiOvT8BhRWFmRoeRYLJWwSvOORfCyedwqstE/f4rUPaNk2wnHw0SS8ZFjaBm IYPA== X-Gm-Message-State: AOAM531QCkhWpM2vAMJmo6Z/kYr1zQ79GJb71vDCT9AqfmTjEmsxTXUa L/ET5a+fVDUFuBaus9xoo6QUkn8TOqoLL0LLi3qxpzzxQ/QVfPCyLQNuutqC8ilgW9pmm7/0pL5 VtOliz1Xsq+8EDXv4Vde6 X-Received: by 2002:a05:622a:612:: with SMTP id z18mr5398667qta.517.1644513095753; Thu, 10 Feb 2022 09:11:35 -0800 (PST) X-Received: by 2002:a05:622a:612:: with SMTP id z18mr5398643qta.517.1644513095484; Thu, 10 Feb 2022 09:11:35 -0800 (PST) Received: from [10.19.60.33] (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id a6sm11568553qta.91.2022.02.10.09.11.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 09:11:35 -0800 (PST) Message-ID: Date: Thu, 10 Feb 2022 12:11:34 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [nfs-utils PATCH] nfs4id: a tool to create and persist nfs4 client uniquifiers Content-Language: en-US To: Benjamin Coddington Cc: Chuck Lever III , Linux NFS Mailing List References: <6f01c382-8da5-5673-30db-0c0099d820b5@redhat.com> <33B10EBB-3DD1-45FE-B7D2-D5EA21DFB172@oracle.com> <839b09ed-fd21-bda1-0502-d7c6f1fa9e88@redhat.com> <32D8EBC9-652A-49D7-B763-A82E2AEF6282@oracle.com> <281b1976-9b40-fc53-301a-2846c2ead5aa@redhat.com> <13069AB1-28EB-43F6-83BF-41E9B9501C75@redhat.com> From: Steve Dickson In-Reply-To: <13069AB1-28EB-43F6-83BF-41E9B9501C75@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2/10/22 8:28 AM, Benjamin Coddington wrote: > On 8 Feb 2022, at 17:39, Steve Dickson wrote: > >> On 2/8/22 4:18 PM, Chuck Lever III wrote: >>> >>> >>>> On Feb 8, 2022, at 2:29 PM, Steve Dickson wrote: >>>> >>>> >>>> >>>> On 2/8/22 11:21 AM, Chuck Lever III wrote: >>>>>> On Feb 8, 2022, at 11:04 AM, Steve Dickson wrote: >>>>>> >>>>>> Hello, >>>>>> >>>>>> On 2/4/22 7:56 AM, Benjamin Coddington wrote: >>>>>>> The nfs4id program will either create a new UUID from a random >>>>>>> source or >>>>>>> derive it from /etc/machine-id, else it returns a UUID that has >>>>>>> already >>>>>>> been written to /etc/nfs4-id.  This small, lightweight tool is >>>>>>> suitable for >>>>>>> execution by systemd-udev in rules to populate the nfs4 client >>>>>>> uniquifier. >>>>>>> Signed-off-by: Benjamin Coddington >>>>>>> --- >>>>>>>   .gitignore               |   1 + >>>>>>>   configure.ac             |   4 + >>>>>>>   tools/Makefile.am        |   1 + >>>>>>>   tools/nfs4id/Makefile.am |   8 ++ >>>>>>>   tools/nfs4id/nfs4id.c    | 184 >>>>>>> +++++++++++++++++++++++++++++++++++++++ >>>>>>>   tools/nfs4id/nfs4id.man  |  29 ++++++ >>>>>>>   6 files changed, 227 insertions(+) >>>>>>>   create mode 100644 tools/nfs4id/Makefile.am >>>>>>>   create mode 100644 tools/nfs4id/nfs4id.c >>>>>>>   create mode 100644 tools/nfs4id/nfs4id.man >>>>>> Just a nit... naming convention... In the past >>>>>> we never put the protocol version in the name. >>>>>> Do a ls tools and utils directory and you >>>>>> see what I mean.... >>>>>> >>>>>> Would it be a problem to change the name from >>>>>> nfs4id to nfsid? >>>>> nfs4id is pretty generic, too. >>>>> Can we go with nfs-client-id ? >>>> I'm never been big with putting '-' >>>> in command names... nfscltid would >>>> be better IMHO... if we actually >>>> need the 'clt' in the name. >>> >>> We have nfsidmap already. IMO we need some distinction >>> with user ID mapping tools... and some day we might >>> want to manage server IDs too (see EXCHANGE_ID). >> Hmm... So we could not use the same tool to do >> both the server and client, via flags? >> >>> >>> nfsclientid then? >> You like to type more than I do... You always have... :-) >> >> But like I started the conversation... the naming is >> a nit... but I would like to see one tool to set the >> ids for both the server and client... how about >> nfsid -s and nfsid -c > > The tricky thing here is that this little binary isn't going to set > anything, and we probably never want people to run it from the command > line. > > A 'nfsid -s' and 'nfsid -c' seem to want to do much more.  I feel they are > out of scope for the problem I'm trying to solve:  I need something that > will generate a unique value, and persist it, suitable for execution in a > udevd rule. > > Perhaps we can stop worrying so much about the name of this as I don't > think > it should be a first-class nfs-utils command, rather just a helper for > udev. > > And maybe the name can reflect that - "nfsuuid" ? I can live with this.... steved > > Ben >