Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14504381ybl; Mon, 30 Dec 2019 11:19:09 -0800 (PST) X-Google-Smtp-Source: APXvYqyJTcPBXUcOavg6awh5+RoHie+jhUSWO2MpRD7pZG1fOtgYLibEs8p7Cu974bisNrJysuah X-Received: by 2002:aca:3b44:: with SMTP id i65mr283365oia.70.1577733549786; Mon, 30 Dec 2019 11:19:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577733549; cv=none; d=google.com; s=arc-20160816; b=YU0CFn9r0umVurx4QZODgv4X2Ra9Y3hZk5On2Pk9ENr8jqJtj0ILHPWHhPpNiQm9a6 2+qtZv8VTcmY4yTMyzamDROyt8GOsj90uUbgiR4VoFDN/K+PrBMz9KLH6+9YD9ZJGZ4S qpQzB5vNjhDsvhFczSxzs20+6SzpfPg+7CsJqfZ/n9mk9UUachJh+DSHVidQY3dgXCcc ogbmAWq5ClUxUNIrd1eGVnMbS3g8OgY3WPgwsICoyf6wxyq7Hd2LJ/0D0PrF3wha4b5X 2J7C7+PMFWwUu7+VIg9CtLX+XhNatS5+Ye+g13FtnFcCs8H0SflXdib8vwY2+OGW/lk4 lFZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=WEfVtn3jQg3IdzrYTJNUwjJ2kCy5b1FNXAOcy6NeEVA=; b=XTxEvZYpazkSWBQOK4PxtqeUVU6Cso/5kJpgkaNUrnV1HFntJDAuYiw2GdrEuONO59 bka9svJ5dEU0EHvWNIKm8bGrRWRKZm/wxRicqzUHW9nqnwprRVpv9ctMzslJyJJ7V14Z TrtqqyZDrgUJnd+lyOMwG+k4VJsXyidHp06V2i8nKZuK9AsWiExx0z69HIxYvQk3UN9V 8Aacp4zOG+gE1pa/b7SAKOpOcu9iLUH2j8W+ysAI3j80rfKjuz5wOIjWcH+gLpXxD7L7 MN9ms6odC/VYIrhvEdCRuniE/3P3hJzjo6VCvVA+zPU5fUu9ohMyAh71gHiR6QeHgJqS p8Gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si10644099oii.114.2019.12.30.11.18.58; Mon, 30 Dec 2019 11:19:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727668AbfL3TSJ (ORCPT + 99 others); Mon, 30 Dec 2019 14:18:09 -0500 Received: from ms.lwn.net ([45.79.88.28]:60532 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727278AbfL3TSJ (ORCPT ); Mon, 30 Dec 2019 14:18:09 -0500 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 318352B4; Mon, 30 Dec 2019 19:18:08 +0000 (UTC) Date: Mon, 30 Dec 2019 12:18:07 -0700 From: Jonathan Corbet To: "Daniel W. S. Almeida" Cc: mchehab+samsung@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [PATCH v2 2/8] Documentation: nfsroot.txt: convert to ReST Message-ID: <20191230121807.3a1f5f38@lwn.net> In-Reply-To: <92be5a49b967ce35a305fc5ccfb3efea3f61a19a.1577681164.git.dwlsalmeida@gmail.com> References: <92be5a49b967ce35a305fc5ccfb3efea3f61a19a.1577681164.git.dwlsalmeida@gmail.com> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Dec 2019 01:55:56 -0300 "Daniel W. S. Almeida" wrote: > From: "Daniel W. S. Almeida" > > Convert nfsroot.txt to RST and move it to admin-guide. Content remains > mostly the same. > > Signed-off-by: Daniel W. S. Almeida This one, too, is almost there, but ... > Documentation/admin-guide/nfs/index.rst | 1 + > .../nfs/nfsroot.rst} | 140 ++++++++++-------- > 2 files changed, 76 insertions(+), 65 deletions(-) > rename Documentation/{filesystems/nfs/nfsroot.txt => admin-guide/nfs/nfsroot.rst} (83%) > > diff --git a/Documentation/admin-guide/nfs/index.rst b/Documentation/admin-guide/nfs/index.rst > index f5c0180f4e5e..c2b87e9f0fed 100644 > --- a/Documentation/admin-guide/nfs/index.rst > +++ b/Documentation/admin-guide/nfs/index.rst > @@ -6,4 +6,5 @@ NFS > :maxdepth: 1 > > nfs-client > + nfsroot > > diff --git a/Documentation/filesystems/nfs/nfsroot.txt b/Documentation/admin-guide/nfs/nfsroot.rst > similarity index 83% > rename from Documentation/filesystems/nfs/nfsroot.txt > rename to Documentation/admin-guide/nfs/nfsroot.rst > index ae4332464560..85d834ad3d03 100644 > --- a/Documentation/filesystems/nfs/nfsroot.txt > +++ b/Documentation/admin-guide/nfs/nfsroot.rst > @@ -1,18 +1,24 @@ > +=============================================== > Mounting the root filesystem via NFS (nfsroot) > =============================================== > > -Written 1996 by Gero Kuhlmann > -Updated 1997 by Martin Mares > -Updated 2006 by Nico Schottelius > -Updated 2006 by Horms > -Updated 2018 by Chris Novakovic > +:Authors: > + Written 1996 by Gero Kuhlmann > + > + Updated 1997 by Martin Mares > + > + Updated 2006 by Nico Schottelius > + > + Updated 2006 by Horms > + > + Updated 2018 by Chris Novakovic > > > > In order to use a diskless system, such as an X-terminal or printer server > for example, it is necessary for the root filesystem to be present on a > -non-disk device. This may be an initramfs (see Documentation/filesystems/ > -ramfs-rootfs-initramfs.txt), a ramdisk (see Documentation/admin-guide/initrd.rst) or a > +non-disk device. This may be an initramfs (see Documentation/filesystems/ramfs-rootfs-initramfs.txt`), It's best in general to avoid refilling paragraphs so as to make it clear what is being changed. But we would also like to avoid creating such long lines. Perhaps an add-on patch refilling things would satisfy both criteria here. Also, there seems to be a stray backtick (`) in there. > +a ramdisk (see Documentation/admin-guide/initrd.rst) or a > filesystem mounted via NFS. The following text describes on how to use NFS > for the root filesystem. For the rest of this text 'client' means the > diskless system, and 'server' means the NFS server. > @@ -20,8 +26,8 @@ diskless system, and 'server' means the NFS server. > > > > -1.) Enabling nfsroot capabilities > - ----------------------------- > +Enabling nfsroot capabilities > +============================= > > In order to use nfsroot, NFS client support needs to be selected as > built-in during configuration. Once this has been selected, the nfsroot > @@ -34,8 +40,8 @@ DHCP, BOOTP and RARP is safe. > > > > -2.) Kernel command line > - ------------------- > +Kernel command line > +=================== > > When the kernel has been loaded by a boot loader (see below) it needs to be > told what root fs device to use. And in the case of nfsroot, where to find > @@ -44,19 +50,17 @@ This can be established using the following kernel command line parameters: > > > root=/dev/nfs > - > This is necessary to enable the pseudo-NFS-device. Note that it's not a > real device but just a synonym to tell the kernel to use NFS instead of > a real device. > > > nfsroot=[:][,] > - > If the `nfsroot' parameter is NOT given on the command line, > - the default "/tftpboot/%s" will be used. > + the default ``"/tftpboot/%s"`` will be used. > > Specifies the IP address of the NFS server. > - The default address is determined by the `ip' parameter > + The default address is determined by the ip parameter > (see below). This parameter allows the use of different > servers for IP autoconfiguration and NFS. > > @@ -67,6 +71,9 @@ nfsroot=[:][,] > > Standard NFS options. All options are separated by commas. > The following defaults are used: > + > + :: > + Please don't use the standalone "::" like that. Just say "used::" [...] > -3.) Boot Loader > - ---------- > +Boot Loader > +=========== > > To get the kernel into memory different approaches can be used. > They depend on various facilities being available: > > > -3.1) Booting from a floppy using syslinux > +#. Booting from a floppy using syslinux Here, too, I wouldn't use "#". This is essentially an unordered list, so basic bullets should be fine. Thanks, jon