Skip to contentSkip to conversation

hugetlbfs: document that sticky mounts are allowed

PATCH Superseded Kirill Smelkov 3 participants 5 messages Sep 4, 2014 – Oct 23, 2014 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hugetlbfs: document that sticky mounts are allowed

Commit 75897d60 (hugetlb: allow sticky directory mount option) added support for mounting hugetlbfs with sticky option set, like /tmp is usually mounted, but forgot to document that.

---
 Documentation/vm/hugetlbpage.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/vm/hugetlbpage.txt +1 -1
index bdd4bb9..b64e0af 100644
@@ -274,7 +274,7 @@ This command mounts a (pseudo) filesystem of type hugetlbfs on the directory
 /mnt/huge.  Any files created on /mnt/huge uses huge pages.  The uid and gid
 options sets the owner and group of the root of the file system.  By default
 the uid and gid of the current process are taken.  The mode option sets the
-mode of root of file system to value & 0777.  This value is given in octal.
+mode of root of file system to value & 01777.  This value is given in octal.
 By default the value 0755 is picked. The size option sets the maximum value of
 memory (huge pages) allowed for that filesystem (/mnt/huge). The size is
 rounded down to HPAGE_SIZE.  The option nr_inodes sets the maximum number of
Signature · 1 line
2.1.0.61.g11be0d6
Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · Kirill Smelkov

Commit 75897d60 (hugetlb: allow sticky directory mount option) added support for mounting hugetlbfs with sticky option set, like /tmp is usually mounted, but forgot to document that.

---
 Documentation/vm/hugetlbpage.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/vm/hugetlbpage.txt +0 -0
index bdd4bb9..b64e0af 100644

Documentation/vm/hugetlbpage.txt This command mounts a (pseudo) filesystem of type hugetlbfs on the directory · line 280

Quoted 8 lines
Documentation/vm/hugetlbpage.txt +1 -1
@@ -274,7 +274,7 @@ This command mounts a (pseudo) filesystem of type hugetlbfs on the directory
 /mnt/huge.  Any files created on /mnt/huge uses huge pages.  The uid and gid
 options sets the owner and group of the root of the file system.  By default
 the uid and gid of the current process are taken.  The mode option sets the
-mode of root of file system to value & 0777.  This value is given in octal.
+mode of root of file system to value & 01777.  This value is given in octal.
 By default the value 0755 is picked. The size option sets the maximum value of
 memory (huge pages) allowed for that filesystem (/mnt/huge). The size is
 rounded down to HPAGE_SIZE.  The option nr_inodes sets the maximum number of
#2 lore raw

PATCH RESEND 1/1 hugetlbfs: document that sticky mounts are allowed

(resending to new documentation maintainer, as the original patch
seemingly got lost)

Jonathan,

Please apply the below patch documenting that hugetlbfs can be sticky-mounted.

Thanks beforehand,
Kirill

Quoted 11 lines · Ken Chen
Quoted 10 lines · Kirill Smelkov

Commit 75897d60 (hugetlb: allow sticky directory mount option) added support for mounting hugetlbfs with sticky option set, like /tmp is usually mounted, but forgot to document that.

---
 Documentation/vm/hugetlbpage.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines

Documentation/vm/hugetlbpage.txt This command mounts a (pseudo) filesystem of type hugetlbfs on the directory · line 280

Quoted 13 lines
Documentation/vm/hugetlbpage.txt +1 -1
index bdd4bb9..b64e0af 100644
@@ -274,7 +274,7 @@ This command mounts a (pseudo) filesystem of type hugetlbfs on the directory
 /mnt/huge.  Any files created on /mnt/huge uses huge pages.  The uid and gid
 options sets the owner and group of the root of the file system.  By default
 the uid and gid of the current process are taken.  The mode option sets the
-mode of root of file system to value & 0777.  This value is given in octal.
+mode of root of file system to value & 01777.  This value is given in octal.
 By default the value 0755 is picked. The size option sets the maximum value of
 memory (huge pages) allowed for that filesystem (/mnt/huge). The size is
 rounded down to HPAGE_SIZE.  The option nr_inodes sets the maximum number of

---- 8< ----
From: Kirill Smelkov <[email protected]>
Date: Thu, 4 Sep 2014 17:13:00 +0400
Subject: [PATCH] hugetlbfs: document that sticky mounts are allowed

Commit 75897d60 (hugetlb: allow sticky directory mount option) added support for mounting hugetlbfs with sticky option set, like /tmp is usually mounted, but forgot to document that.

---
 Documentation/vm/hugetlbpage.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/vm/hugetlbpage.txt +1 -1
index bdd4bb9..b64e0af 100644
@@ -274,7 +274,7 @@ This command mounts a (pseudo) filesystem of type hugetlbfs on the directory
 /mnt/huge.  Any files created on /mnt/huge uses huge pages.  The uid and gid
 options sets the owner and group of the root of the file system.  By default
 the uid and gid of the current process are taken.  The mode option sets the
-mode of root of file system to value & 0777.  This value is given in octal.
+mode of root of file system to value & 01777.  This value is given in octal.
 By default the value 0755 is picked. The size option sets the maximum value of
 memory (huge pages) allowed for that filesystem (/mnt/huge). The size is
 rounded down to HPAGE_SIZE.  The option nr_inodes sets the maximum number of
Signature · 1 line
2.1.0.61.g11be0d6
maintainer Applied
#3 lore raw
Quoted 1 line · On Wed, 22 Oct 2014 19:54:46 +0400 Kirill Smelkov <[email protected]> wrote:

Please apply the below patch documenting that hugetlbfs can be sticky-mounted.

It documents it in a rather obscure way...but, then, to be clear, that document needs a lot of help in general.

Applied. Redundant Cc tag removed.

Thanks,

jon

#4 lore raw
Quoted 7 lines · Jonathan Corbet
Quoted 1 line · On Wed, 22 Oct 2014 19:54:46 +0400 Kirill Smelkov <[email protected]> wrote:

Please apply the below patch documenting that hugetlbfs can be sticky-mounted.

It documents it in a rather obscure way...but, then, to be clear, that document needs a lot of help in general.

I agree the documentation is a bit obscure and it was not a proper fix, but "let's at least restore consistency between .txt & .c"

Quoted 1 line

Applied. Redundant Cc tag removed.

Thanks,
Kirill