diff options
| author | assar <assar@NetBSD.org> | 2001-07-24 15:39:30 +0000 |
|---|---|---|
| committer | assar <assar@NetBSD.org> | 2001-07-24 15:39:30 +0000 |
| commit | bec71dc090fea8d431f9840f12fef5f85ceed7e3 (patch) | |
| tree | 6621be8029079ac2ede2ffa016d334552b5ff922 /sys/kern/vnode_if.src | |
| parent | 8dc13781cbb64b12ff739e564c2c43462566f50b (diff) | |
change vop_symlink and vop_mknod to return vpp (the created node)
refed, so that the caller can actually use it. update callers and
file systems that implement these vnode operations
Diffstat (limited to 'sys/kern/vnode_if.src')
| -rw-r--r-- | sys/kern/vnode_if.src | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src index 9f3e4740c1e..496bc976a15 100644 --- a/sys/kern/vnode_if.src +++ b/sys/kern/vnode_if.src @@ -1,4 +1,4 @@ -# $NetBSD: vnode_if.src,v 1.28 2001/05/26 21:33:11 chs Exp $ +# $NetBSD: vnode_if.src,v 1.29 2001/07/24 15:39:31 assar Exp $ # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. @@ -113,13 +113,13 @@ vop_create { # #% mknod dvp L U U -#% mknod vpp - X - +#% mknod vpp - L - # #! mknod cnp CREATE, LOCKPARENT # vop_mknod { IN WILLPUT struct vnode *dvp; - OUT WILLRELE struct vnode **vpp; + OUT struct vnode **vpp; IN struct componentname *cnp; IN struct vattr *vap; }; @@ -338,17 +338,13 @@ vop_rmdir { # #% symlink dvp L U U -#% symlink vpp - U - +#% symlink vpp - L - # #! symlink cnp CREATE, LOCKPARENT # -# XXX - note that the return vnode has already been VRELE'ed -# by the filesystem layer. To use it you must use vget, -# possibly with a further namei. -# vop_symlink { IN WILLPUT struct vnode *dvp; - OUT WILLRELE struct vnode **vpp; + OUT struct vnode **vpp; IN struct componentname *cnp; IN struct vattr *vap; IN char *target; |
