Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1691527pxp; Mon, 21 Mar 2022 02:58:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLhzOw9sP2UyO8fljULWnfyZB5z+MmAgdxHdg1UFzVvkUTKUqufWiR6bdctynFR0wzlJ56 X-Received: by 2002:a17:903:244d:b0:154:3bb0:7b8c with SMTP id l13-20020a170903244d00b001543bb07b8cmr8840091pls.115.1647856715762; Mon, 21 Mar 2022 02:58:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647856715; cv=none; d=google.com; s=arc-20160816; b=WAoS80uZc8ElgOmA98+jIJ/7zUFo/cjSRISlzJ05HKuRSiNRigBtLlKaLirCqtHgHr QUksGCEYrMkAYHYoRTfVsaWHe4mlFf58rxUuF2sHraOHpfpyu9+h0Pi5Ereuk8Ak6vY8 04+qkrKqMyogsdGN4VYXCR/P9VaC8pkUaXk4i4zI5yx5TvPbiofwa5uynzTDMxy+Hk23 AjKSVjli70U2g9rU7Ce3QrLo38ZFAF1slLdE7uVAjRvCIu8tqhOEKKyMggQzVtTovXFm rvkJuU8hUNwylSuIUaKE4CAwPTpFZ1f2bY01sudw40vRXjgSeipTs+7kQQrR/CldmD/S QrLw== 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=2qDexzwyYQyiNizGNdOVC1jsqBNoNrDlwwMW/+zM2a0=; b=ThioyFi3aUU1xGMRajlu4ZLk0pasN5SdPZsTe4AGodwvXqOdhGqUKOHLtgXZAHGmcm sRH8kr/qF0JwTsUCqtas1piKQbD5Rt3VKNA5T1lYBpcFeTtI/5C5s5y+ZpekRDchuZ1I kuwE2B3CeRN4AauTK5Xu4nuAa9EBSw0lXKsZfMM8GNaXUTX+JHN2mg+Zn5osDJd/oINp aXHycqAtz5F9tJQRon/Nf8ukZ3dqpVmAFMHfvf1yK7jhsfFwk9JG9MF12UnVumYtMD25 ANU0zhVKyRP/kiP60BRF/jSqfLSazmdIriynpJhXhExntrEEcVW8Lc6EQho1+hLB0gTc C8Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=rB+YL4ui; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=0jDjmvUx; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a056a00188700b004faa51d7828si2323113pfh.307.2022.03.21.02.57.57; Mon, 21 Mar 2022 02:58:35 -0700 (PDT) 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=@suse.de header.s=susede2_rsa header.b=rB+YL4ui; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=0jDjmvUx; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344381AbiCUFWS (ORCPT + 99 others); Mon, 21 Mar 2022 01:22:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243430AbiCUFWQ (ORCPT ); Mon, 21 Mar 2022 01:22:16 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5363C3B556 for ; Sun, 20 Mar 2022 22:20:51 -0700 (PDT) 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-out2.suse.de (Postfix) with ESMTPS id E83621F37C; Mon, 21 Mar 2022 05:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1647840049; 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=2qDexzwyYQyiNizGNdOVC1jsqBNoNrDlwwMW/+zM2a0=; b=rB+YL4ui1TG8iXiWYwsD51iF9pn/me6Q+1T5clErbKrO5XUrqimNptDKdMfxQMkO90ybWP 5FCAOT/nhV1xdGrNK6F6LQhF7sBJ4mKihE5TzkkjLgT1DC4Ul5vEtciSrP8FqLktsmRaSs x/bAAfoamF8KYmKq6UN0l9wCrKgmPjQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1647840049; 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=2qDexzwyYQyiNizGNdOVC1jsqBNoNrDlwwMW/+zM2a0=; b=0jDjmvUxZ1Fq979Mdvl7NWMBSciy2qGioYUBwrYk7sYtBcY6q+mU4OiIArTWWJ7Ere7RMA 9uOA3S/buOePMOBg== 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 9A905139FF; Mon, 21 Mar 2022 05:20:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 3tJeFjALOGIBdAAAMHmgww (envelope-from ); Mon, 21 Mar 2022 05:20:48 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Trond Myklebust" , "Anna Schumaker" Cc: "Chuck Lever III" , "Linux NFS Mailing List" Subject: [PATCH v2] NFS: update documentation for the nfs4_unique_id parameter In-reply-to: <164783633625.6096.14575868633417140042@noble.neil.brown.name> References: <164783633625.6096.14575868633417140042@noble.neil.brown.name> Date: Mon, 21 Mar 2022 16:20:43 +1100 Message-id: <164784004337.6096.413613952857713019@noble.neil.brown.name> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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 The documentation for nfs4_unique_id is out-of-date. In particular it claim that when nfs4_unique_id is set, the host name is not used. since Commit 55b592933b7d ("NFSv4: Fix nfs4_init_uniform_client_string for net namespaces") both the unique_id AND the host name are used. Update the documentation to match the code. Signed-off-by: NeilBrown --- After writing the first version I realised that when 'identifier' is set it overrides the module parameter, rather than supplements it. Hence v2. Documentation/admin-guide/nfs/nfs-client.rst | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Documentation/admin-guide/nfs/nfs-client.rst b/Documentation/adm= in-guide/nfs/nfs-client.rst index 6adb6457bc69..36760685dd34 100644 --- a/Documentation/admin-guide/nfs/nfs-client.rst +++ b/Documentation/admin-guide/nfs/nfs-client.rst @@ -36,10 +36,9 @@ administrative requirements that require particular behavi= or that does not work well as part of an nfs_client_id4 string. =20 The nfs.nfs4_unique_id boot parameter specifies a unique string that can be -used instead of a system's node name when an NFS client identifies itself to -a server. Thus, if the system's node name is not unique, or it changes, its -nfs.nfs4_unique_id stays the same, preventing collision with other clients -or loss of state during NFS reboot recovery or transparent state migration. +used together with a system's node name when an NFS client identifies itsel= f to +a server. Thus, if the system's node name is not unique, its +nfs.nfs4_unique_id can help prevent collisions with other clients. =20 The nfs.nfs4_unique_id string is typically a UUID, though it can contain anything that is believed to be unique across all NFS clients. An @@ -53,8 +52,12 @@ outstanding NFSv4 state has expired, to prevent loss of NF= Sv4 state. =20 This string can be stored in an NFS client's grub.conf, or it can be provided via a net boot facility such as PXE. It may also be specified as an nfs.ko -module parameter. Specifying a uniquifier string is not support for NFS -clients running in containers. +module parameter. + +This uniquifier string will be the same for all NFS clients running in +containers unless it is overridden by a value written to +/sys/fs/nfs/net/nfs_client/identifier which will be local to the network +namespace of the process which writes. =20 =20 The DNS resolver --=20 2.35.1