From patchwork Tue Apr 24 02:56:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Novakovic X-Patchwork-Id: 903251 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=chrisn.me.uk Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chrisn.me.uk header.i=@chrisn.me.uk header.b="IA4I9kOQ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40VSfg616hz9ryr for ; Tue, 24 Apr 2018 12:57:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932888AbeDXC5N (ORCPT ); Mon, 23 Apr 2018 22:57:13 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:41307 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932864AbeDXC5A (ORCPT ); Mon, 23 Apr 2018 22:57:00 -0400 Received: by mail-wr0-f195.google.com with SMTP id g21-v6so18919822wrb.8 for ; Mon, 23 Apr 2018 19:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisn.me.uk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ctZgxHojiSP5oWjc9VUVrlUVYe+0282syMQIAs9HvF8=; b=IA4I9kOQQ0zuIFoUYwQ3ja0f3Y+n1Pm9n8o9027eFmj8fBHAx3ZAXsOIwKl8/p9q/K IrTEJDqUj6LOERPzx28RzAKSd301nCutGmXzQlXqpH7+drpVI2OnfjGa+P1K40uJ3L5x 27nDUPC3HRGmtOviFeQTBfnh4lnpYMLw7xlZI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ctZgxHojiSP5oWjc9VUVrlUVYe+0282syMQIAs9HvF8=; b=R468wZAqKTqQ1j4BdXYtvKm6zpSFtzZWRv9HTkA+AsWqKUGgVfn/ynymW31uDRgfN5 wFG9BGoPC/WpOHBZwjZaO+gMqqJEmzhF00Myg7V8sf1NuJQBFCylyK7BrcrvE68byQKJ k/D1YWMIXBPC9Dy31rJtIyy5rH3cY1XttE6oBfzuCNytM/FilGJQRNh1QLipg0OEVUxI Otljc9PQQDasYWNfqtvU8nrG2MdgdHhLaw/Nh5lzryAGW/K/sUhjJvdyKkUtAh2vBaW1 r16y9iEdZs/PodnUnFCDqde8PgJMoiD0ZEI9IblRzQ07QKNMCiRNAVqcfM22wZAMdYBV NeiQ== X-Gm-Message-State: ALQs6tDSb9M53vqB/XLTAHPVrc9jeVaP4L/BIdcpfCG1GK/cYeerIonS mc78aX8WFXEpdtkMWKUWV1TeUyj1 X-Google-Smtp-Source: AIpwx49TjYiROollKor0jfcG8X6hpUiTPf+pqCmgDDMEe/Hvpf6VKY3ySuS7UwOoUNq7MFpFnTYFkg== X-Received: by 10.28.156.4 with SMTP id f4mr11377276wme.79.1524538619220; Mon, 23 Apr 2018 19:56:59 -0700 (PDT) Received: from stronghold.base.iphq.net (cpc83449-wolv18-2-0-cust181.16-1.cable.virginm.net. [82.32.71.182]) by smtp.gmail.com with ESMTPSA id b18-v6sm17407241wrb.55.2018.04.23.19.56.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 19:56:58 -0700 (PDT) From: Chris Novakovic To: "David S. Miller" , netdev@vger.kernel.org Cc: Chris Novakovic Subject: [PATCH v2 1/8] ipconfig: Document setting of NIS domain name Date: Tue, 24 Apr 2018 03:56:32 +0100 Message-Id: <20180424025639.2228-2-chris@chrisn.me.uk> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180424025639.2228-1-chris@chrisn.me.uk> References: <20180424025639.2228-1-chris@chrisn.me.uk> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org ic_do_bootp_ext() is responsible for parsing the "ip=" and "nfsaddrs=" kernel parameters. If a "." character is found in parameter 4 (the client's hostname), everything before the first "." is used as the hostname, and everything after it is used as the NIS domain name (but not necessarily the DNS domain name). Document this behaviour in Documentation/filesystems/nfs/nfsroot.txt, as it is not made explicit. Signed-off-by: Chris Novakovic --- Documentation/filesystems/nfs/nfsroot.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Documentation/filesystems/nfs/nfsroot.txt b/Documentation/filesystems/nfs/nfsroot.txt index 5efae00f6c7f..1513e5d663fd 100644 --- a/Documentation/filesystems/nfs/nfsroot.txt +++ b/Documentation/filesystems/nfs/nfsroot.txt @@ -123,10 +123,13 @@ ip=::::::: Default: Determined using autoconfiguration. - Name of the client. May be supplied by autoconfiguration, - but its absence will not trigger autoconfiguration. - If specified and DHCP is used, the user provided hostname will - be carried in the DHCP request to hopefully update DNS record. + Name of the client. If a '.' character is present, anything + before the first '.' is used as the client's hostname, and anything + after it is used as its NIS domain name. May be supplied by + autoconfiguration, but its absence will not trigger autoconfiguration. + If specified and DHCP is used, the user-provided hostname (and NIS + domain name, if present) will be carried in the DHCP request; this + may cause a DNS record to be created or updated for the client. Default: Client IP address is used in ASCII notation.