Skip to contentSkip to conversation

mount.2: note that mandatory locking is now fully deprecated

PATCH Superseded Jeff Layton 2 participants 2 messages Oct 1, 2021 – Oct 2, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mount.2: note that mandatory locking is now fully deprecated

This support has been fully removed from the kernel as of v5.15.

---
 man2/mount.2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
man2/mount.2 +2 -1
index bedd39e68a68..a7ae65fb0142 100644
@@ -195,7 +195,8 @@ this mount option requires the
 .B CAP_SYS_ADMIN
 capability and a kernel configured with the
 .B CONFIG_MANDATORY_FILE_LOCKING
-option.
+option. Mandatory locking has been fully deprecated in v5.15 kernels, so
+this flag should be considered deprecated.
 .TP
 .B MS_NOATIME
 Do not update access times for (all types of) files on this filesystem.
Signature · 1 line
2.31.1
#1 lore raw

Hello Jeff,

Quoted 13 lines · Jeff Layton

This support has been fully removed from the kernel as of v5.15.

---
  man2/mount.2 | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
man2/mount.2 +0 -0
index bedd39e68a68..a7ae65fb0142 100644

man2/mount.2 this mount option requires the · line 199

Quoted 6 lines
man2/mount.2 +2 -1
@@ -195,7 +195,8 @@ this mount option requires the
  .B CAP_SYS_ADMIN
  capability and a kernel configured with the
  .B CONFIG_MANDATORY_FILE_LOCKING
-option.
+option. Mandatory locking has been fully deprecated in v5.15 kernels, so
+this flag should be considered deprecated.

Please use semantic newlines, as man-pages(7) notes. It is especially important here, as otherwise you're hardcoding the number of spaces after the '.' (which if you don't, will typically be 2).

See man-pages(7):

Use semantic newlines
In the source of a manual page, new sentences should be started on new lines, and long sentences should be split into lines at clause breaks (commas, semicolons, colons, and so on). This convention, sometimes known as "semantic newlines", makes it easier to see the effect of patches, which often operate at the level of individual sentences or sentence clauses.

Cheers,

Alex

Quoted 4 lines
man2/mount.2 +0 -0
  .TP
  .B MS_NOATIME
  Do not update access times for (all types of) files on this filesystem.
Signature · 3 lines
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/