Skip to contentSkip to conversation

tmpfs.5: extend with new noswap documentation

PATCH In review Luis Chamberlain 2 participants 2 messages Sep 20, 2023 – Sep 26, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tmpfs.5: extend with new noswap documentation

Linux commit 2c6efe9cf2d7 ("shmem: add support to ignore swap") merged as of v6.4 added support to disable swap for tmpfs mounts.

This extends the man page to document that.

---

changes on v2:

- Use semantic newlines

 man5/tmpfs.5 | 6 ++++++
 1 file changed, 6 insertions(+)
man5/tmpfs.5 +6 -0
index 5274e632d6fd..047a17a78ee0 100644
@@ -103,6 +103,12 @@ suffixes like
 .BR size ,
 but not a % suffix.
 .TP
+.BR noswap "(since Linux 6.4)"
+.\" commit 2c6efe9cf2d7841b75fe38ed1adbd41a90f51ba0
+Disables swap.
+Remounts must respect the original settings.
+By default swap is enabled.
+.TP
 .BR mode "=\fImode\fP"
 Set initial permissions of the root directory.
 .TP
Signature · 1 line
2.39.2
#1 lore raw

Hi Luis,

Quoted 6 lines · Luis Chamberlain

Linux commit 2c6efe9cf2d7 ("shmem: add support to ignore swap") merged as of v6.4 added support to disable swap for tmpfs mounts.

This extends the man page to document that.

Patch applied.

Thanks,
Alex

Quoted 29 lines

---

changes on v2:

- Use semantic newlines

 man5/tmpfs.5 | 6 ++++++
 1 file changed, 6 insertions(+)
man5/tmpfs.5 +6 -0
index 5274e632d6fd..047a17a78ee0 100644
@@ -103,6 +103,12 @@ suffixes like
 .BR size ,
 but not a % suffix.
 .TP
+.BR noswap "(since Linux 6.4)"
+.\" commit 2c6efe9cf2d7841b75fe38ed1adbd41a90f51ba0
+Disables swap.
+Remounts must respect the original settings.
+By default swap is enabled.
+.TP
 .BR mode "=\fImode\fP"
 Set initial permissions of the root directory.
 .TP
Signature · 1 line
2.39.2