Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/man/man9 VOP_LEASE(9) was removed long ago. Misc impr...



details:   https://anonhg.NetBSD.org/src/rev/4da70e4cef51
branches:  trunk
changeset: 766030:4da70e4cef51
user:      rmind <rmind%NetBSD.org@localhost>
date:      Tue Jun 14 00:22:45 2011 +0000

description:
VOP_LEASE(9) was removed long ago.  Misc improvement.

diffstat:

 share/man/man9/vnodeops.9 |  31 ++++++-------------------------
 1 files changed, 6 insertions(+), 25 deletions(-)

diffs (105 lines):

diff -r 92e955734e52 -r 4da70e4cef51 share/man/man9/vnodeops.9
--- a/share/man/man9/vnodeops.9 Tue Jun 14 00:19:20 2011 +0000
+++ b/share/man/man9/vnodeops.9 Tue Jun 14 00:22:45 2011 +0000
@@ -1,4 +1,4 @@
-.\"     $NetBSD: vnodeops.9,v 1.80 2010/06/24 13:03:06 hannken Exp $
+.\"     $NetBSD: vnodeops.9,v 1.81 2011/06/14 00:22:45 rmind Exp $
 .\"
 .\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 24, 2010
+.Dd June 14, 2011
 .Dt VNODEOPS 9
 .Os
 .Sh NAME
@@ -68,7 +68,6 @@
 .Nm VOP_PRINT ,
 .Nm VOP_PATHCONF ,
 .Nm VOP_ADVLOCK ,
-.Nm VOP_LEASE ,
 .Nm VOP_WHITEOUT ,
 .Nm VOP_GETPAGES ,
 .Nm VOP_PUTPAGES ,
@@ -83,7 +82,6 @@
 .In sys/param.h
 .In sys/buf.h
 .In sys/dirent.h
-.In sys/lock.h
 .In sys/vnode.h
 .In sys/mount.h
 .In sys/namei.h
@@ -183,9 +181,6 @@
 .Fn VOP_ADVLOCK "struct vnode *vp" "void *id" "int op" \
 "struct flock *fl" "int flags"
 .Ft int
-.Fn VOP_LEASE "struct vnode *vp" "kauth_cred_t cred" \
-"int flag"
-.Ft int
 .Fn VOP_WHITEOUT "struct vnode *dvp" "struct componentname *cnp" \
 "int flags"
 .Ft int
@@ -266,7 +261,6 @@
 .It VOP_PRINT  Print debugging information
 .It VOP_PATHCONF       Return POSIX pathconf data
 .It VOP_ADVLOCK        Advisory record locking
-.It VOP_LEASE  Validate vnode credentials
 .It VOP_WHITEOUT       Whiteout vnode
 .It VOP_GETPAGES       Read VM pages from file
 .It VOP_PUTPAGES       Write VM pages to file
@@ -282,7 +276,7 @@
 quite what is described here.
 .Pp
 If the file system type does not support a specific operation, it must
-nevertheless assign an appropriate function in the vnode operations
+nevertheless assign an appropriate stub in the vnode operations
 vector to do the minimum required of it.
 In most cases, such functions either do nothing or return an error
 value to the effect that it is not supported.
@@ -379,13 +373,13 @@
 .Fa vpp .
 The operation specified in
 .Em cnp-\*[Gt]cn_nameiop
-gives
+indicates
 .Fn VOP_LOOKUP
-hints about the reason for requesting the lookup and uses it to cache
+the reason for requesting the lookup and uses it to cache
 file system type specific information in the vnode for subsequent
 operations.
 .Pp
-There are three types of lookups: ".", ".." (ISDOTDOT), and other.
+There are three types of lookups: ".", ".." (ISDOTDOT), and regular.
 If the pathname component being searched for is ".", then
 .Fa dvp
 has an extra reference added to it and it is returned in
@@ -1232,18 +1226,6 @@
 .Pp
 If the operation is successful zero is returned, otherwise an
 appropriate error is returned.
-.It Fn VOP_LEASE "vp" "cred" "flags"
-Validate vnode credentials and operation type.
-The argument
-.Fa vp
-is the locked vnode of the file to validate credentials
-.Fa cred .
-The argument
-.Fa flags
-specifies the operation flags.
-If the operation is successful zero is returned, otherwise an
-appropriate error code is returned.
-The vnode must be locked on entry and remains locked on return.
 .It Fn VOP_WHITEOUT "dvp" "cnp" "flags"
 Whiteout pathname component in directory with vnode
 .Fa dvp .
@@ -1455,7 +1437,6 @@
 .Sh SEE ALSO
 .Xr extattr 9 ,
 .Xr intro 9 ,
-.Xr lock 9 ,
 .Xr namei 9 ,
 .Xr vattr 9 ,
 .Xr vfs 9 ,



Home | Main Index | Thread Index | Old Index