Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3060622rwl; Mon, 27 Mar 2023 08:44:09 -0700 (PDT) X-Google-Smtp-Source: AKy350YBZ0nT7mMytDv3FF6aKY1dTE+Q4YApoJoUKoXLT5OUhQp4wCnAtDwJyDmTCkAq0sEx8Yhk X-Received: by 2002:aa7:d954:0:b0:502:100c:531 with SMTP id l20-20020aa7d954000000b00502100c0531mr11176669eds.40.1679931849134; Mon, 27 Mar 2023 08:44:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679931849; cv=none; d=google.com; s=arc-20160816; b=WBOnQveL+qlDq6Tkx25Y8uMy3n+6WhfZ0k7RO8M60Q5ZEAq2NYtdhDjONA6m8WfEAu yM3jtJdZz1BKdEArdrmM+RKTOFnBmzHx4RHHyDR96XgaCP1zYR+6RELarL1JMic2dMio Ou3l+36SAnm++7n7zGlrwaRwBdzm89gi6lxtZq9xexUoThvPEEJ3dG90/RWTpK5u+4sq +/+tSD1wrTywQd6AspWNh4h7Rm21hA0vQ+8q7h9IbFgtwYmPhpq8lAxfXiQKI0KT+4Co I4KGxwV0XTVFX8s4hj4La6z9DApdqKSxhFg+X+GiQxjTgO6C4KkDLp2j1DBPgKlguY43 dD7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AaSiFEt747OYX/FlMBHNQmZ4ArJHr1TpFZs9gh0OC08=; b=OuWwhsHeCu+nZmjZkAI986/bCGBIgUHrCSiuXbuBqlyf8CzSEovbQQhs0F5BEObqoj jpYwqfCN00V7x0JsJhzTb0F5NOv5LR69X9aG66IIVF0LrAw0uJq+bUc2ksCkH9sGzJzC fzD0K1YlBJq+yWSxHOsz690bGN5iovZwjWfaEblF5OCO6rTF/2QW70vLmw85ieejJl4f LC1ddeDc/vCJ84EgZmc9tCRO5BtJWlAhaFdna8ALYo8RyF5JEawpiVsEbeYmnwO4DAEU Z8M81egiHB0az/083hpT0TabNRNTOOtX8HnnUDT3ChgI5Gxy7XkJiplokMvl8yrJ+3K0 TnMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=NZrj7Gh0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x10-20020aa7d6ca000000b004fcb12ad77esi25596467edr.388.2023.03.27.08.43.44; Mon, 27 Mar 2023 08:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@crudebyte.com header.s=kylie header.b=NZrj7Gh0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232840AbjC0PjH (ORCPT + 99 others); Mon, 27 Mar 2023 11:39:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232728AbjC0PjD (ORCPT ); Mon, 27 Mar 2023 11:39:03 -0400 Received: from kylie.crudebyte.com (kylie.crudebyte.com [5.189.157.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63043468A for ; Mon, 27 Mar 2023 08:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=kylie; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Content-ID:Content-Description; bh=AaSiFEt747OYX/FlMBHNQmZ4ArJHr1TpFZs9gh0OC08=; b=NZrj7Gh0E8z3Gow1jhx8jaJAq0 yWqunMZSpKSSxCaFrmwpwKXnIqffvoAAwg34dh03mjAXB8ur9zbRC/3Fqbnm5daAuXxFjWRjlInPv LEeHYbYDs+DzLJADGizhSlvdoL7jt5aRmldzE9NVnBygIa5iM4D6xXCaqxpOYWeqqqCY8m9LDTde/ 7xITS/L50aks4j3FK5OvbXaM6MwloMLO8PrT/hZdOjX1cK+WdYsCvOOpADuMTx+mmon+ZpDzpqvRc GZECmq1eMKoq31xoVioeN2Kp43UJb+naFTReGFnbl5YK2RxoezoeAL9SAISopvb2b80tuWclLSHYC mEga8txJ5f71PpRwWoGnfb0KXHeV2MBQ6g28hbFg29pWk3+49ptw7QDI/C16sBWRxmYaz/aRVlK3f EJqDwyo8hHPRiwF+Wjo0RUoWTQlm8Hw7cwT0VOABHHY5jD1tNz+XYvXL569fk2nKDBFztBx/ZC6em aOMsBbw5Qbotzz6/hPtG9H3WBdQI54SNI1miLdBoIIbGXoVy5gXS2VF9Cs3JVmaArXHx72Y7p/V0K 7sNMVJfgND1FnnrvhVGCzXy9iGGjJeUssuGcO8PZ+9tO/J/MX7vbci/a0PknQfsyj+PMjM57U0TDf izwQSBlWob/Zurw88kQkhTM3msh+R+EnDN6Zat+Ds=; From: Christian Schoenebeck To: v9fs-developer@lists.sourceforge.net, Eric Van Hensbergen Cc: asmadeus@codewreck.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs/9p: Add new options to Documentation Date: Mon, 27 Mar 2023 17:38:41 +0200 Message-ID: <3443961.DhAEVoPbTG@silver> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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-kernel@vger.kernel.org On Monday, March 27, 2023 5:05:52 AM CEST Eric Van Hensbergen wrote: > Need to update the documentation for new mount flags > and cache modes. > > Signed-off-by: Eric Van Hensbergen > --- > Documentation/filesystems/9p.rst | 29 ++++++++++++++++------------- > 1 file changed, 16 insertions(+), 13 deletions(-) > > diff --git a/Documentation/filesystems/9p.rst b/Documentation/filesystems/9p.rst > index 0e800b8f73cc..6d257854a02a 100644 > --- a/Documentation/filesystems/9p.rst > +++ b/Documentation/filesystems/9p.rst > @@ -78,19 +78,18 @@ Options > offering several exported file systems. > > cache=mode specifies a caching policy. By default, no caches are used. > - > - none > - default no cache policy, metadata and data > - alike are synchronous. > - loose > - no attempts are made at consistency, > - intended for exclusive, read-only mounts > - fscache > - use FS-Cache for a persistent, read-only > - cache backend. > - mmap > - minimal cache that is only used for read-write > - mmap. Northing else is cached, like cache=none > + Modes are progressive and inclusive. For example, specifying fscache > + will use loose caches, writeback, and readahead. Due to their > + inclusive nature, only one cache mode can be specified per mount. I would highly recommend to rather specify below for each option "this option implies writeback, readahead ..." etc., as it is not obvious otherwise which option would exactly imply what. It is worth those extra few lines IMO to avoid confusion. > + > + ========= ============================================= > + none no cache of file or metadata > + readahead readahead caching of files > + writeback delayed writeback of files > + mmap support mmap operations read/write with cache > + loose meta-data and file cache with no coherency > + fscache use FS-Cache for a persistent cache backend > + ========= ============================================= > > debug=n specifies debug level. The debug level is a bitmask. > > @@ -137,6 +136,10 @@ Options > This can be used to share devices/named pipes/sockets between > hosts. This functionality will be expanded in later versions. > > + directio bypass page cache on all read/write operations > + > + ignoreqv ignore qid.version==0 as a marker to ignore cache > + > noxattr do not offer xattr functions on this mount. > > access there are four access modes. >