Page MenuHomeFreeBSD

D48125.diff
No OneTemporary

D48125.diff

diff --git a/share/man/man9/namei.9 b/share/man/man9/namei.9
--- a/share/man/man9/namei.9
+++ b/share/man/man9/namei.9
@@ -31,7 +31,7 @@
.\" If you integrate this manpage in another OS, I'd appreciate a note
.\" - eivind@FreeBSD.org
.\"
-.Dd July 8, 2023
+.Dd December 17, 2024
.Dt NAMEI 9
.Os
.Sh NAME
@@ -124,7 +124,6 @@
unless
.Dv LOCKSHARED
is also set.
-The
.Xr VOP_UNLOCK 9
should be used
to release the lock (or
@@ -153,8 +152,20 @@
.Xr vrele 9 .
.It Dv LOCKSHARED
Lock vnode on return with
-.Dv LK_SHARED .
-The
+.Dv LK_SHARED ,
+if permitted by the file system that owns the vnode.
+The file system must explicitly permit this by setting
+.Dv MNTK_LOOKUP_SHARED
+in
+.Dv mp->mnt_kern_flag
+during mount and by calling
+.Fn VN_LOCK_ASHARE
+when allocating the vnode.
+If
+.Dv LOCKLEAF
+is specified but shared locking is not permitted, then the vnode will be
+returned with
+.Dv LK_EXCLUSIVE .
.Xr VOP_UNLOCK 9
should be used
to release the lock (or

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 22, 6:34 PM (15 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31993636
Default Alt Text
D48125.diff (977 B)

Event Timeline