Skip to contentSkip to conversation

open.2, rename.2: refer to tmpfs rather than shmem

PATCH In review Alyssa Ross 3 participants 4 messages Feb 10, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 open.2, rename.2: refer to tmpfs rather than shmem

Skimming open(2), I was surprised not to see tmpfs mentioned as a filesystem supported by O_TMPFILE.

If I'm understanding correctly (I'm very possibly not!), tmpfs is a filesystem built on shmem, so I think it's more correct (and probably much more widely understandable) to refer to tmpfs here.

---
 man2/open.2   | 2 +-
 man2/rename.2 | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
man2/open.2 +1 -1
index b30dc1532..03fff1b65 100644
@@ -885,7 +885,7 @@ as described above).
 requires support by the underlying filesystem;
 only a subset of Linux filesystems provide that support.
 In the initial implementation, support was provided in
-the ext2, ext3, ext4, UDF, Minix, and shmem filesystems.
+the ext2, ext3, ext4, UDF, Minix, and tmpfs filesystems.
 .\" To check for support, grep for "tmpfile" in kernel sources
 Support for other filesystems has subsequently been added as follows:
 XFS (Linux 3.15);
man2/rename.2 +2 -2
index 527bafacf..cb36405fe 100644
@@ -208,11 +208,11 @@ Support for various filesystems was added as follows:
 ext4 (Linux 3.15);
 .\" ext4: commit 0a7c3937a1f23f8cb5fc77ae01661e9968a51d0c
 .IP *
-btrfs, shmem, and cifs (Linux 3.17);
+btrfs, tmpfs, and cifs (Linux 3.17);
 .IP *
 xfs (Linux 4.0);
 .\" btrfs: commit 80ace85c915d0f41016f82917218997b72431258
-.\" shmem: commit 3b69ff51d087d265aa4af3a532fc4f20bf33e718
+.\" tmpfs: commit 3b69ff51d087d265aa4af3a532fc4f20bf33e718
 .\" cifs: commit 7c33d5972ce382bcc506d16235f1e9b7d22cbef8
 .\"
 .\" gfs2 in 4.2?
Signature · 1 line
2.30.0
#1 lore raw

Hi Alyssa!

* Alyssa Ross <[email protected]>, 2021-02-10, 17:42:

Quoted 3 lines

Skimming open(2), I was surprised not to see tmpfs mentioned as a filesystem supported by O_TMPFILE.

If I'm understanding correctly (I'm very possibly not!), tmpfs is a filesystem built on shmem, so I think it's more correct (and probably much more widely understandable) to refer to tmpfs here.

This is my understanding too. See https://www.spinics.net/lists/linux-man/msg13703.html for previous discussion.

(Michael was going to fix rename.2 back then, but something went wrong.)

Signature · 1 line
Jakub Wilk
#2 lore raw
Quoted 10 lines · Jakub Wilk

Hi Alyssa!

* Alyssa Ross <[email protected]>, 2021-02-10, 17:42:

Quoted 6 lines

Skimming open(2), I was surprised not to see tmpfs mentioned as a filesystem supported by O_TMPFILE.

If I'm understanding correctly (I'm very possibly not!), tmpfs is a filesystem built on shmem, so I think it's more correct (and probably much more widely understandable) to refer to tmpfs here.

Quoted 5 lines

This is my understanding too. See
https://www.spinics.net/lists/linux-man/msg13703.html for previous discussion.

(Michael was going to fix rename.2 back then, but something went wrong.)

Mea culpa. I fixed it in one place in page[1], but missed the other.

Thanks,

Michael

[1]
https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id=010a79cd86da27a665346e96ad93945c42ace9b1

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
#3 lore raw
In reply to Alyssa Ross

Hello Alyssa,

Quoted 6 lines · Alyssa Ross

Skimming open(2), I was surprised not to see tmpfs mentioned as a filesystem supported by O_TMPFILE.

If I'm understanding correctly (I'm very possibly not!), tmpfs is a filesystem built on shmem, so I think it's more correct (and probably much more widely understandable) to refer to tmpfs here.

Agreed. Thanks for the patch. I've applied.

Cheers,

Michael

Quoted 37 lines
---
 man2/open.2   | 2 +-
 man2/rename.2 | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
man2/open.2 +1 -1
index b30dc1532..03fff1b65 100644
@@ -885,7 +885,7 @@ as described above).
 requires support by the underlying filesystem;
 only a subset of Linux filesystems provide that support.
 In the initial implementation, support was provided in
-the ext2, ext3, ext4, UDF, Minix, and shmem filesystems.
+the ext2, ext3, ext4, UDF, Minix, and tmpfs filesystems.
 .\" To check for support, grep for "tmpfile" in kernel sources
 Support for other filesystems has subsequently been added as follows:
 XFS (Linux 3.15);
man2/rename.2 +2 -2
index 527bafacf..cb36405fe 100644
@@ -208,11 +208,11 @@ Support for various filesystems was added as follows:
 ext4 (Linux 3.15);
 .\" ext4: commit 0a7c3937a1f23f8cb5fc77ae01661e9968a51d0c
 .IP *
-btrfs, shmem, and cifs (Linux 3.17);
+btrfs, tmpfs, and cifs (Linux 3.17);
 .IP *
 xfs (Linux 4.0);
 .\" btrfs: commit 80ace85c915d0f41016f82917218997b72431258
-.\" shmem: commit 3b69ff51d087d265aa4af3a532fc4f20bf33e718
+.\" tmpfs: commit 3b69ff51d087d265aa4af3a532fc4f20bf33e718
 .\" cifs: commit 7c33d5972ce382bcc506d16235f1e9b7d22cbef8
 .\"
 .\" gfs2 in 4.2?
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/