Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3878159ybc; Thu, 14 Nov 2019 16:28:34 -0800 (PST) X-Google-Smtp-Source: APXvYqzEtHQrtWYB+hz0ahyvXtwVNVUFSM+r2o+cwjeKNsb6V1yd/u1OHwtYY0Ibywq0sWCKjb2h X-Received: by 2002:adf:c786:: with SMTP id l6mr11466244wrg.45.1573777714700; Thu, 14 Nov 2019 16:28:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573777714; cv=none; d=google.com; s=arc-20160816; b=jUzdmS3zmxHAwRlZ/jHMDZH19GePtxb+lx1Q0VGiFps8U5/Pv1vQ7MWGuaBRVcR2Um zyFGSQLRF3NwCgYM7ZuywAhR/WIDy3mOry/uqPFQh1GEB7c4KZm8DINFn65L0K6cPMk0 6hMsVk/0y/w/Z0U2nKDQxZsF8ioMQwWOszRXZht1k6Syezvg0RXb2S5JdHDuiR9sn+FA fy1Yf6lWzJRKGUsyG1Ou5ZCw4O024N63+NkMZ7fPnXtBP56TBnzHGwu0lbucmqR8NHgt 91MyJ2cYRk+g5oZj/g6HVVhkdM0z5nKeuNED5GKqIA1zqWD9jWl64awN5ZOtbjRZDHZL ex5A== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=okg+pbQZMLAFIVAtOQnx13wD35th3oHFa3FunzYvg0Q=; b=SSjR0ppseEfbt3zHjl0KC3d2S0e9k1eCDBoYAug0pcTotpbmknxwQD4MKzbNO1dUqd Hic49cUdD7lx82rDNFcvz2aTAB2Mni+cDZnIqdUVDEE5aP4uUSfEyyCHhceFTRP/DzRa Jx46BH1kNpB32dcd5ud0lsrEj33RAapoMv+MBKNpIVhcFixkkLgY1HGZyyFaez7hMbkH 4Y+jGlpalPm4e8pnO07Sdqec4/zSfE34OKlUfR9aijh1V4rj0Hr5tOAIrdcP0dWbdYTb H9ehPc9Ifbmn7GmPYSU4OCmUdpUkJd6R+BgEtZxmpUrs/DHzxp5P0+PYPZ7HWQldOxEM I3Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@themaw.net header.s=fm1 header.b=I0Lm3AaL; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=NwUY9Z54; 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 q44si5472236eda.242.2019.11.14.16.28.09; Thu, 14 Nov 2019 16:28:34 -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; dkim=pass header.i=@themaw.net header.s=fm1 header.b=I0Lm3AaL; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=NwUY9Z54; 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 S1727310AbfKOA0d (ORCPT + 99 others); Thu, 14 Nov 2019 19:26:33 -0500 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:49685 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfKOA0c (ORCPT ); Thu, 14 Nov 2019 19:26:32 -0500 X-Greylist: delayed 572 seconds by postgrey-1.27 at vger.kernel.org; Thu, 14 Nov 2019 19:26:32 EST Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.west.internal (Postfix) with ESMTP id B38224CB; Thu, 14 Nov 2019 19:16:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 14 Nov 2019 19:16:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=themaw.net; h= message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; s=fm1; bh= okg+pbQZMLAFIVAtOQnx13wD35th3oHFa3FunzYvg0Q=; b=I0Lm3AaL52mEZmyL Ct1tTzrZt3urGFFppt1Cj0m3Psq12QTRbjr4Tt3x4GkJzq5MAdk0oe3DSQbCqN76 SLZBH7ncxPmMCn7NciDetSEcPkwU4QUYXT0teICMBD94QWZLTv1ifJk1JeY2vVwR dQ3bIuXd5Bpo2C/akpho23Zsa7pasb8kTHBumIVFkhnavlVm2Mxxvd/KQ4Wc12Jv KKM1OIgyKFMWkdbRrHOphLtJDRGUn8E+b5lS8LNDb+vqE6dxFuy4YEdOXsSt3FlI TcZPfm58g2aeXXniqyNwqJUwwUTrJUxMmlYbcyGaQvcnF3WQ4taKK5KtovehY/xt S1wFwQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=okg+pbQZMLAFIVAtOQnx13wD35th3oHFa3FunzYvg 0Q=; b=NwUY9Z54rkbVbJErPqRaQiYQJYH1lzPmZa9q4XI4MFxWqeQV3zkMTbpG5 L2cOYHpbtYAEjQvbTOqRl/ft3gAnwyhcQNsXao+4/gpPrcjNJd/dXL8Nj0n/dv8j /sqL7jMMb6ncc04YYYxB3gAyQnHAnlt8+zHF314IWr/nKlNOqR5EXKA6oVtYtTWn 85uFek20PWjSbrq4kPoxuYY+GvVd1/YPH6YVK/btPs09mJnjv7h1ttk4szGcE8Qv BVXpUQ9gregPx4km5Zxrd+bi2qqpBfxNXAokVRW8ohhmZwBMkCA+1yLtAZZdVzSy iZTxSsAH353R03l5BXDZvOBuqhogQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudefgedgudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkffuhffvffgjfhgtfggggfesthejredttderjeenucfhrhhomhepkfgrnhcu mfgvnhhtuceorhgrvhgvnhesthhhvghmrgifrdhnvghtqeenucfkphepuddukedrvddtke drudekledrudeknecurfgrrhgrmhepmhgrihhlfhhrohhmpehrrghvvghnsehthhgvmhgr fidrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from mickey.themaw.net (unknown [118.208.189.18]) by mail.messagingengine.com (Postfix) with ESMTPA id 554108005C; Thu, 14 Nov 2019 19:16:53 -0500 (EST) Message-ID: <1b33820317e577e6b2329b3e37edb9a7bf3b3983.camel@themaw.net> Subject: Re: [RFC PATCH] docs: filesystems: convert autofs.txt to reST From: Ian Kent To: Jonathan Corbet , Jaskaran Singh Cc: akpm@linux-foundation.org, mchehab+samsung@kernel.org, christian@brauner.io, neilb@suse.com, mszeredi@redhat.com, willy@infradead.org, stefanha@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Date: Fri, 15 Nov 2019 08:16:49 +0800 In-Reply-To: <20191114093831.2ab8a077@lwn.net> References: <20191113073822.GA31926@localhost.localdomain> <20191114093831.2ab8a077@lwn.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-11-14 at 09:38 -0700, Jonathan Corbet wrote: > On Wed, 13 Nov 2019 13:08:22 +0530 > Jaskaran Singh wrote: > > Thanks for doing this. Naturally I have some requests :) > > > This patch converts autofs.txt to reST. > > Some subsystem maintainers react strongly to changelogs that read > "this > patch"; it's best to express things in the imperative form described > in > Documentation/process/submitting-patches.rst. > > > - Most of the changes pertain to reST formatting. > > - Some of the code snippets are updated to reflect current source. > > - A definition of the autofs packet header has been added in the > > chapter > > "Communicating with autofs: the event pipe". > > - An indentation of an 8 space tab has been added wherever > > suitable, so > > as to maintain consistency. > > - Removed indentation of the description of the ioctls which are > > similar > > to the AUTOFS_IOC ioctls, as it does not come out quite right in > > HTML. > > These seems like good changes, but they are too much for a single > patch. > Please split this into multiple patches, separating the formatting > and > white-space changes from those that change the text. That makes it > much > easier to review. > > Some nits below. > > > Signed-off-by: Jaskaran Singh > > --- > > .../filesystems/{autofs.txt => autofs.rst} | 258 ++++++++++-- > > ------ > > Documentation/filesystems/index.rst | 1 + > > 2 files changed, 140 insertions(+), 119 deletions(-) > > rename Documentation/filesystems/{autofs.txt => autofs.rst} (77%) > > > > diff --git a/Documentation/filesystems/autofs.txt > > b/Documentation/filesystems/autofs.rst > > similarity index 77% > > rename from Documentation/filesystems/autofs.txt > > rename to Documentation/filesystems/autofs.rst > > index 3af38c7fd26d..a130cba76f07 100644 > > --- a/Documentation/filesystems/autofs.txt > > +++ b/Documentation/filesystems/autofs.rst > > @@ -1,12 +1,9 @@ > > - > > - > > - > > Heh, yeah, I'm not sure why that's there, it should definitely go. > > > +===================== > > autofs - how it works > > ===================== > > > > Purpose > > -------- > > +======= > > > > The goal of autofs is to provide on-demand mounting and race free > > automatic unmounting of various other filesystems. This provides > > two > > @@ -28,7 +25,7 @@ key advantages: > > first accessed a name. > > > > Context > > -------- > > +======= > > > > The "autofs" filesystem module is only one part of an autofs > > system. > > There also needs to be a user-space program which looks up names > > @@ -43,7 +40,7 @@ filesystem type. Several "autofs" filesystems > > can be mounted and they > > can each be managed separately, or all managed by the same daemon. > > > > Content > > -------- > > +======= > > > > An autofs filesystem can contain 3 sorts of objects: directories, > > symbolic links and mount traps. Mount traps are directories with > > @@ -52,7 +49,7 @@ extra properties as described in the next > > section. > > Objects can only be created by the automount daemon: symlinks are > > created with a regular `symlink` system call, while directories > > and > > mount traps are created with `mkdir`. The determination of > > whether a > > -directory should be a mount trap or not is quite _ad hoc_, largely > > for > > +directory should be a mount trap or not is quite _ad hoc\_, > > largely for > > Remember that we want to preserve the readability of the plain-text > document; sprinkling that sort of escape doesn't really > help. Recognize > that what's there now is a sort of informal markup; I'd either fix it > up or > take it out. So "*ad hoc*" or just "ad hoc". > > (Or rephrase it, since this doesn't actually seem to be an > appropriate use > of "ad hoc" but that's a separate issue :) > > > historical reasons, and is determined in part by the > > *direct*/*indirect*/*offset* mount options, and the *maxproto* > > mount option. Yeah, this whole paragraph is not quite accurate. For autofs user space the determination of whether these mounts are trigger mounts (direct or offset mount option) or plain mount point directories (indirect mount top level sub-directory) is done based on the user supplied mount map syntax. For other autofs users, such as systemd, the mount option (direct in this case) is chosen based on what semantics the user wants. Ian