[PATCH 1/3] docs: virtiofs: Fix descriptions about virtiofs mount option

From: Keiichi Watanabe
Date: Tue Jun 20 2023 - 11:14:47 EST


Since virtiofs and FUSE don't share mount options, fixes the
description. Also, explains DAX option as the only virtiofs-specific
option so far.

Signed-off-by: Keiichi Watanabe <keiichiw@xxxxxxxxxxxx>
---

Documentation/filesystems/dax.rst | 1 +
Documentation/filesystems/virtiofs.rst | 5 ++++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/filesystems/dax.rst b/Documentation/filesystems/dax.rst
index c04609d8ee24..77c5d4550ecd 100644
--- a/Documentation/filesystems/dax.rst
+++ b/Documentation/filesystems/dax.rst
@@ -167,6 +167,7 @@ Setting the `FS_XFLAG_DAX` flag (specifically or through inheritance) occurs eve
if the underlying media does not support dax and/or the filesystem is
overridden with a mount option.

+.. _virtiofs-dax:

Enabling DAX on virtiofs
----------------------------
diff --git a/Documentation/filesystems/virtiofs.rst b/Documentation/filesystems/virtiofs.rst
index fd4d2484e949..fdec5a7840f7 100644
--- a/Documentation/filesystems/virtiofs.rst
+++ b/Documentation/filesystems/virtiofs.rst
@@ -43,7 +43,10 @@ Mount options
-------------

virtiofs supports general VFS mount options, for example, remount,
-ro, rw, context, etc. It also supports FUSE mount options.
+ro, rw, context, etc. Also, virtiofs has its own options.
+
+dax[=always,never,inode]
+ Enable direct access for files. See :ref:`virtiofs-dax`.

atime behavior
^^^^^^^^^^^^^^
--
2.41.0.185.g7c58973941-goog