summaryrefslogtreecommitdiff
path: root/sys/kern/vnode_if.c
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1997-10-06 15:12:49 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>1997-10-06 15:12:49 +0000
commit95389a9fa3f688454026d046f31cd15615e7de8d (patch)
treef3722a3e08b135af4c8250bd03f1acd185def2ee /sys/kern/vnode_if.c
parent486c8e78cbcef0d475b10f58a45c8977765ead46 (diff)
VFS Lite2 Changes
Diffstat (limited to 'sys/kern/vnode_if.c')
-rw-r--r--sys/kern/vnode_if.c76
1 files changed, 55 insertions, 21 deletions
diff --git a/sys/kern/vnode_if.c b/sys/kern/vnode_if.c
index 14f1f0c5a09..b373b57c591 100644
--- a/sys/kern/vnode_if.c
+++ b/sys/kern/vnode_if.c
@@ -218,6 +218,22 @@ struct vnodeop_desc vop_write_desc = {
NULL,
};
+int vop_lease_vp_offsets[] = {
+ VOPARG_OFFSETOF(struct vop_lease_args,a_vp),
+ VDESC_NO_OFFSET
+};
+struct vnodeop_desc vop_lease_desc = {
+ 0,
+ "vop_lease",
+ 0,
+ vop_lease_vp_offsets,
+ VDESC_NO_OFFSET,
+ VOPARG_OFFSETOF(struct vop_lease_args, a_cred),
+ VOPARG_OFFSETOF(struct vop_lease_args, a_p),
+ VDESC_NO_OFFSET,
+ NULL,
+};
+
int vop_ioctl_vp_offsets[] = {
VOPARG_OFFSETOF(struct vop_ioctl_args,a_vp),
VDESC_NO_OFFSET
@@ -250,6 +266,22 @@ struct vnodeop_desc vop_select_desc = {
NULL,
};
+int vop_revoke_vp_offsets[] = {
+ VOPARG_OFFSETOF(struct vop_revoke_args,a_vp),
+ VDESC_NO_OFFSET
+};
+struct vnodeop_desc vop_revoke_desc = {
+ 0,
+ "vop_revoke",
+ 0,
+ vop_revoke_vp_offsets,
+ VDESC_NO_OFFSET,
+ VDESC_NO_OFFSET,
+ VDESC_NO_OFFSET,
+ VDESC_NO_OFFSET,
+ NULL,
+};
+
int vop_mmap_vp_offsets[] = {
VOPARG_OFFSETOF(struct vop_mmap_args,a_vp),
VDESC_NO_OFFSET
@@ -459,7 +491,7 @@ struct vnodeop_desc vop_inactive_desc = {
vop_inactive_vp_offsets,
VDESC_NO_OFFSET,
VDESC_NO_OFFSET,
- VDESC_NO_OFFSET,
+ VOPARG_OFFSETOF(struct vop_inactive_args, a_p),
VDESC_NO_OFFSET,
NULL,
};
@@ -475,7 +507,7 @@ struct vnodeop_desc vop_reclaim_desc = {
vop_reclaim_vp_offsets,
VDESC_NO_OFFSET,
VDESC_NO_OFFSET,
- VDESC_NO_OFFSET,
+ VOPARG_OFFSETOF(struct vop_reclaim_args, a_p),
VDESC_NO_OFFSET,
NULL,
};
@@ -491,7 +523,7 @@ struct vnodeop_desc vop_lock_desc = {
vop_lock_vp_offsets,
VDESC_NO_OFFSET,
VDESC_NO_OFFSET,
- VDESC_NO_OFFSET,
+ VOPARG_OFFSETOF(struct vop_lock_args, a_p),
VDESC_NO_OFFSET,
NULL,
};
@@ -507,7 +539,7 @@ struct vnodeop_desc vop_unlock_desc = {
vop_unlock_vp_offsets,
VDESC_NO_OFFSET,
VDESC_NO_OFFSET,
- VDESC_NO_OFFSET,
+ VOPARG_OFFSETOF(struct vop_unlock_args, a_p),
VDESC_NO_OFFSET,
NULL,
};
@@ -624,6 +656,22 @@ struct vnodeop_desc vop_valloc_desc = {
NULL,
};
+int vop_balloc_vp_offsets[] = {
+ VOPARG_OFFSETOF(struct vop_balloc_args,a_vp),
+ VDESC_NO_OFFSET
+};
+struct vnodeop_desc vop_balloc_desc = {
+ 0,
+ "vop_balloc",
+ 0,
+ vop_balloc_vp_offsets,
+ VDESC_NO_OFFSET,
+ VOPARG_OFFSETOF(struct vop_balloc_args, a_cred),
+ VDESC_NO_OFFSET,
+ VDESC_NO_OFFSET,
+ NULL,
+};
+
int vop_reallocblks_vp_offsets[] = {
VOPARG_OFFSETOF(struct vop_reallocblks_args,a_vp),
VDESC_NO_OFFSET
@@ -688,22 +736,6 @@ struct vnodeop_desc vop_update_desc = {
NULL,
};
-int vop_lease_vp_offsets[] = {
- VOPARG_OFFSETOF(struct vop_lease_args,a_vp),
- VDESC_NO_OFFSET
-};
-struct vnodeop_desc vop_lease_desc = {
- 0,
- "vop_lease",
- 0,
- vop_lease_vp_offsets,
- VDESC_NO_OFFSET,
- VOPARG_OFFSETOF(struct vop_lease_args, a_cred),
- VOPARG_OFFSETOF(struct vop_lease_args, a_p),
- VDESC_NO_OFFSET,
- NULL,
-};
-
int vop_whiteout_vp_offsets[] = {
VOPARG_OFFSETOF(struct vop_whiteout_args,a_dvp),
VDESC_NO_OFFSET
@@ -769,8 +801,10 @@ struct vnodeop_desc *vfs_op_descs[] = {
&vop_setattr_desc,
&vop_read_desc,
&vop_write_desc,
+ &vop_lease_desc,
&vop_ioctl_desc,
&vop_select_desc,
+ &vop_revoke_desc,
&vop_mmap_desc,
&vop_fsync_desc,
&vop_seek_desc,
@@ -794,11 +828,11 @@ struct vnodeop_desc *vfs_op_descs[] = {
&vop_advlock_desc,
&vop_blkatoff_desc,
&vop_valloc_desc,
+ &vop_balloc_desc,
&vop_reallocblks_desc,
&vop_vfree_desc,
&vop_truncate_desc,
&vop_update_desc,
- &vop_lease_desc,
&vop_whiteout_desc,
NULL
};