Skip to contentSkip to conversation

Add dax mount option to man xfs(5)

PATCH In review Carlos Maiolino 2 participants 2 messages Apr 6, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add dax mount option to man xfs(5)

Details are already in kernel's documentation, but make dax mount option information accessible through xfs(5) manpage.

---

Changelog:

	V2:
	 - Add changes suggested by Darrick on his review.
 man/man5/xfs.5 | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
man/man5/xfs.5 +17 -0
index 7642662f..372dc08a 100644
@@ -133,6 +133,23 @@ by the filesystem.
 CRC enabled filesystems always use the attr2 format, and so
 will reject the noattr2 mount option if it is set.
 .TP
+.BR dax=value
+Set CPU direct access (DAX) behavior for the current filesystem. This mount
+option accepts the following values:
+
+"dax=inode" DAX will be enabled only on regular files with FS_XFLAG_DAX applied.
+
+"dax=never" DAX will not be enabled for any files. FS_XFLAG_DAX will be ignored.
+
+"dax=always" DAX will be enabled for all regular files, regardless of the
+FS_XFLAG_DAX state.
+
+If no option is used when mounting a filesystem stored on a DAX capable device,
+dax=inode will be used as default.
+
+For details regarding DAX behavior in kernel, please refer to kernel's
+documentation at filesystems/dax.txt
+.TP
 .BR discard | nodiscard
 Enable/disable the issuing of commands to let the block
 device reclaim space freed by the filesystem.  This is
Signature · 1 line
2.30.2
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Carlos Maiolino

Details are already in kernel's documentation, but make dax mount option information accessible through xfs(5) manpage.

Yay!

--D

Quoted 40 lines

---

Changelog:

	V2:
	 - Add changes suggested by Darrick on his review.
 man/man5/xfs.5 | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
man/man5/xfs.5 +17 -0
index 7642662f..372dc08a 100644
@@ -133,6 +133,23 @@ by the filesystem.
 CRC enabled filesystems always use the attr2 format, and so
 will reject the noattr2 mount option if it is set.
 .TP
+.BR dax=value
+Set CPU direct access (DAX) behavior for the current filesystem. This mount
+option accepts the following values:
+
+"dax=inode" DAX will be enabled only on regular files with FS_XFLAG_DAX applied.
+
+"dax=never" DAX will not be enabled for any files. FS_XFLAG_DAX will be ignored.
+
+"dax=always" DAX will be enabled for all regular files, regardless of the
+FS_XFLAG_DAX state.
+
+If no option is used when mounting a filesystem stored on a DAX capable device,
+dax=inode will be used as default.
+
+For details regarding DAX behavior in kernel, please refer to kernel's
+documentation at filesystems/dax.txt
+.TP
 .BR discard | nodiscard
 Enable/disable the issuing of commands to let the block
 device reclaim space freed by the filesystem.  This is
Signature · 1 line
2.30.2