* Copyright (c) 1992 The Regents of the University of California
* Copyright (c) 1990, 1992 Jan-Simon Pendry
* This code is derived from software donated to Berkeley by
* %sccs.include.redist.c%
* @(#)lofs.h 1.1 (Berkeley) %G%
* $Id: lofs.h,v 1.8 1992/05/30 10:05:43 jsp Exp jsp $
char *target
; /* Target of loopback */
struct mount
*looped_vfs
;
struct vnode
*rootvp
; /* Reference to root lofsnode */
* A cache of vnode references
struct lofsnode
*a_forw
; /* Hash chain */
struct vnode
*a_lofsvp
; /* Aliased vnode - VREFed once */
struct vnode
*a_vnode
; /* Back pointer to vnode/lofsnode */
extern int make_lofs
__P((struct mount
*mp
, struct vnode
**vpp
));
#define VFSTOLOFS(mp) ((struct lofsmount *)((mp)->mnt_data))
#define LOFSP(vp) ((struct lofsnode *)(vp)->v_data)
extern struct vnode
*lofs_checkvp
__P((struct vnode
*vp
, char *fil
, int lno
));
#define LOFSVP(vp) lofs_checkvp(vp, __FILE__, __LINE__)
#define LOFSVP(vp) (LOFSP(vp)->a_lofsvp)
extern int (**lofs_vnodeop_p
)();
extern struct vfsops lofs_vfsops
;