1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

Make this compile again after the Lite2 merge.

Also add missing function prototypes.
This commit is contained in:
Mike Pritchard 1997-02-12 14:55:01 +00:00
parent aae8d53e0e
commit 63f50488b0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22597
6 changed files with 24 additions and 16 deletions

View File

@ -57,6 +57,7 @@ struct null_node {
struct vnode *null_vnode; /* Back pointer */
};
extern int nullfs_init __P((struct vfsconf *vfsp));
extern int null_node_create __P((struct mount *mp, struct vnode *target, struct vnode **vpp));
#define MOUNTTONULLMOUNT(mp) ((struct null_mount *)((mp)->mnt_data))

View File

@ -55,8 +55,6 @@
#include <sys/malloc.h>
#include <miscfs/nullfs/null.h>
extern int nullfs_init __P((struct vfsconf *));
static int nullfs_fhtovp __P((struct mount *mp, struct fid *fidp,
struct mbuf *nam, struct vnode **vpp,
int *exflagsp, struct ucred **credanonp));

View File

@ -37,7 +37,7 @@
*
* Ancestors:
* @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
* $Id: null_vnops.c,v 1.11.2000.1 1996/09/17 14:32:31 peter Exp $
* $Id: null_vnops.c,v 1.13 1997/02/10 02:13:30 dyson Exp $
* ...and...
* @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
*
@ -192,13 +192,18 @@ static int null_bug_bypass = 0; /* for debugging: enables bypass printf'ing */
SYSCTL_INT(_debug, OID_AUTO, nullfs_bug_bypass, CTLFLAG_RW,
&null_bug_bypass, 0, "");
static int null_access __P((struct vop_access_args *ap));
int null_bypass __P((struct vop_generic_args *ap));
static int null_bwrite __P((struct vop_bwrite_args *ap));
static int null_getattr __P((struct vop_getattr_args *ap));
static int null_inactive __P((struct vop_inactive_args *ap));
static int null_lock __P((struct vop_lock_args *ap));
static int null_lookup __P((struct vop_lookup_args *ap));
static int null_print __P((struct vop_print_args *ap));
static int null_reclaim __P((struct vop_reclaim_args *ap));
static int null_setattr __P((struct vop_setattr_args *ap));
static int null_strategy __P((struct vop_strategy_args *ap));
static int null_unlock __P((struct vop_unlock_args *ap));
/*
* This is the 10-Apr-92 bypass routine.
@ -405,8 +410,8 @@ null_setattr(ap)
struct vattr *vap = ap->a_vap;
if ((vap->va_flags != VNOVAL || vap->va_uid != (uid_t)VNOVAL ||
vap->va_gid != (gid_t)VNOVAL || vap->va_atime.ts_sec != VNOVAL ||
vap->va_mtime.ts_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) &&
vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL ||
vap->va_mtime.tv_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) &&
(vp->v_mount->mnt_flag & MNT_RDONLY))
return (EROFS);
if (vap->va_size != VNOVAL) {
@ -488,7 +493,7 @@ null_access(ap)
* interlock flag as it applies only to our vnode, not the
* vnodes below us on the stack.
*/
int
static int
null_lock(ap)
struct vop_lock_args /* {
struct vnode *a_vp;
@ -509,7 +514,7 @@ null_lock(ap)
* interlock flag as it applies only to our vnode, not the
* vnodes below us on the stack.
*/
int
static int
null_unlock(ap)
struct vop_unlock_args /* {
struct vnode *a_vp;
@ -524,7 +529,7 @@ null_unlock(ap)
return (null_bypass(ap));
}
int
static int
null_inactive(ap)
struct vop_inactive_args /* {
struct vnode *a_vp;

View File

@ -57,6 +57,7 @@ struct null_node {
struct vnode *null_vnode; /* Back pointer */
};
extern int nullfs_init __P((struct vfsconf *vfsp));
extern int null_node_create __P((struct mount *mp, struct vnode *target, struct vnode **vpp));
#define MOUNTTONULLMOUNT(mp) ((struct null_mount *)((mp)->mnt_data))

View File

@ -55,8 +55,6 @@
#include <sys/malloc.h>
#include <miscfs/nullfs/null.h>
extern int nullfs_init __P((struct vfsconf *));
static int nullfs_fhtovp __P((struct mount *mp, struct fid *fidp,
struct mbuf *nam, struct vnode **vpp,
int *exflagsp, struct ucred **credanonp));

View File

@ -37,7 +37,7 @@
*
* Ancestors:
* @(#)lofs_vnops.c 1.2 (Berkeley) 6/18/92
* $Id: null_vnops.c,v 1.11.2000.1 1996/09/17 14:32:31 peter Exp $
* $Id: null_vnops.c,v 1.13 1997/02/10 02:13:30 dyson Exp $
* ...and...
* @(#)null_vnodeops.c 1.20 92/07/07 UCLA Ficus project
*
@ -192,13 +192,18 @@ static int null_bug_bypass = 0; /* for debugging: enables bypass printf'ing */
SYSCTL_INT(_debug, OID_AUTO, nullfs_bug_bypass, CTLFLAG_RW,
&null_bug_bypass, 0, "");
static int null_access __P((struct vop_access_args *ap));
int null_bypass __P((struct vop_generic_args *ap));
static int null_bwrite __P((struct vop_bwrite_args *ap));
static int null_getattr __P((struct vop_getattr_args *ap));
static int null_inactive __P((struct vop_inactive_args *ap));
static int null_lock __P((struct vop_lock_args *ap));
static int null_lookup __P((struct vop_lookup_args *ap));
static int null_print __P((struct vop_print_args *ap));
static int null_reclaim __P((struct vop_reclaim_args *ap));
static int null_setattr __P((struct vop_setattr_args *ap));
static int null_strategy __P((struct vop_strategy_args *ap));
static int null_unlock __P((struct vop_unlock_args *ap));
/*
* This is the 10-Apr-92 bypass routine.
@ -405,8 +410,8 @@ null_setattr(ap)
struct vattr *vap = ap->a_vap;
if ((vap->va_flags != VNOVAL || vap->va_uid != (uid_t)VNOVAL ||
vap->va_gid != (gid_t)VNOVAL || vap->va_atime.ts_sec != VNOVAL ||
vap->va_mtime.ts_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) &&
vap->va_gid != (gid_t)VNOVAL || vap->va_atime.tv_sec != VNOVAL ||
vap->va_mtime.tv_sec != VNOVAL || vap->va_mode != (mode_t)VNOVAL) &&
(vp->v_mount->mnt_flag & MNT_RDONLY))
return (EROFS);
if (vap->va_size != VNOVAL) {
@ -488,7 +493,7 @@ null_access(ap)
* interlock flag as it applies only to our vnode, not the
* vnodes below us on the stack.
*/
int
static int
null_lock(ap)
struct vop_lock_args /* {
struct vnode *a_vp;
@ -509,7 +514,7 @@ null_lock(ap)
* interlock flag as it applies only to our vnode, not the
* vnodes below us on the stack.
*/
int
static int
null_unlock(ap)
struct vop_unlock_args /* {
struct vnode *a_vp;
@ -524,7 +529,7 @@ null_unlock(ap)
return (null_bypass(ap));
}
int
static int
null_inactive(ap)
struct vop_inactive_args /* {
struct vnode *a_vp;