Home | History | Annotate | Line # | Download | only in nullfs
null_vfsops.c revision 1.21
      1  1.21  wrstuden /*	$NetBSD: null_vfsops.c,v 1.21 1999/01/13 01:51:37 wrstuden Exp $	*/
      2   1.2       cgd 
      3   1.1   mycroft /*
      4  1.19      fvdl  * Copyright (c) 1992, 1993, 1995
      5   1.1   mycroft  *	The Regents of the University of California.  All rights reserved.
      6   1.1   mycroft  *
      7   1.1   mycroft  * This code is derived from software donated to Berkeley by
      8   1.1   mycroft  * Jan-Simon Pendry.
      9   1.1   mycroft  *
     10   1.1   mycroft  * Redistribution and use in source and binary forms, with or without
     11   1.1   mycroft  * modification, are permitted provided that the following conditions
     12   1.1   mycroft  * are met:
     13   1.1   mycroft  * 1. Redistributions of source code must retain the above copyright
     14   1.1   mycroft  *    notice, this list of conditions and the following disclaimer.
     15   1.1   mycroft  * 2. Redistributions in binary form must reproduce the above copyright
     16   1.1   mycroft  *    notice, this list of conditions and the following disclaimer in the
     17   1.1   mycroft  *    documentation and/or other materials provided with the distribution.
     18   1.1   mycroft  * 3. All advertising materials mentioning features or use of this software
     19   1.1   mycroft  *    must display the following acknowledgement:
     20   1.1   mycroft  *	This product includes software developed by the University of
     21   1.1   mycroft  *	California, Berkeley and its contributors.
     22   1.1   mycroft  * 4. Neither the name of the University nor the names of its contributors
     23   1.1   mycroft  *    may be used to endorse or promote products derived from this software
     24   1.1   mycroft  *    without specific prior written permission.
     25   1.1   mycroft  *
     26   1.1   mycroft  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     27   1.1   mycroft  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     28   1.1   mycroft  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     29   1.1   mycroft  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     30   1.1   mycroft  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     31   1.1   mycroft  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     32   1.1   mycroft  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     33   1.1   mycroft  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     34   1.1   mycroft  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     35   1.1   mycroft  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     36   1.1   mycroft  * SUCH DAMAGE.
     37   1.1   mycroft  *
     38   1.1   mycroft  *	from: Id: lofs_vfsops.c,v 1.9 1992/05/30 10:26:24 jsp Exp
     39   1.1   mycroft  *	from: @(#)lofs_vfsops.c	1.2 (Berkeley) 6/18/92
     40  1.19      fvdl  *	@(#)null_vfsops.c	8.7 (Berkeley) 5/14/95
     41   1.1   mycroft  */
     42   1.1   mycroft 
     43   1.1   mycroft /*
     44   1.1   mycroft  * Null Layer
     45   1.1   mycroft  * (See null_vnops.c for a description of what this does.)
     46   1.1   mycroft  */
     47   1.1   mycroft 
     48   1.1   mycroft #include <sys/param.h>
     49   1.1   mycroft #include <sys/systm.h>
     50   1.1   mycroft #include <sys/time.h>
     51  1.19      fvdl #include <sys/proc.h>
     52   1.1   mycroft #include <sys/types.h>
     53   1.1   mycroft #include <sys/vnode.h>
     54   1.1   mycroft #include <sys/mount.h>
     55   1.1   mycroft #include <sys/namei.h>
     56   1.1   mycroft #include <sys/malloc.h>
     57   1.1   mycroft #include <miscfs/nullfs/null.h>
     58   1.1   mycroft 
     59  1.14       cgd int	nullfs_mount __P((struct mount *, const char *, void *,
     60  1.10  christos 			  struct nameidata *, struct proc *));
     61  1.10  christos int	nullfs_start __P((struct mount *, int, struct proc *));
     62  1.10  christos int	nullfs_unmount __P((struct mount *, int, struct proc *));
     63  1.10  christos int	nullfs_root __P((struct mount *, struct vnode **));
     64  1.10  christos int	nullfs_quotactl __P((struct mount *, int, uid_t, caddr_t,
     65  1.10  christos 			     struct proc *));
     66  1.10  christos int	nullfs_statfs __P((struct mount *, struct statfs *, struct proc *));
     67  1.10  christos int	nullfs_sync __P((struct mount *, int, struct ucred *, struct proc *));
     68  1.10  christos int	nullfs_vget __P((struct mount *, ino_t, struct vnode **));
     69  1.10  christos int	nullfs_fhtovp __P((struct mount *, struct fid *, struct mbuf *,
     70  1.10  christos 			   struct vnode **, int *, struct ucred **));
     71  1.10  christos int	nullfs_vptofh __P((struct vnode *, struct fid *));
     72  1.19      fvdl int	nullfs_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
     73  1.19      fvdl 			   struct proc *));
     74   1.1   mycroft /*
     75   1.1   mycroft  * Mount null layer
     76   1.1   mycroft  */
     77   1.1   mycroft int
     78   1.1   mycroft nullfs_mount(mp, path, data, ndp, p)
     79   1.1   mycroft 	struct mount *mp;
     80  1.14       cgd 	const char *path;
     81  1.14       cgd 	void *data;
     82   1.1   mycroft 	struct nameidata *ndp;
     83   1.1   mycroft 	struct proc *p;
     84   1.1   mycroft {
     85   1.1   mycroft 	int error = 0;
     86   1.1   mycroft 	struct null_args args;
     87   1.1   mycroft 	struct vnode *lowerrootvp, *vp;
     88   1.1   mycroft 	struct vnode *nullm_rootvp;
     89   1.1   mycroft 	struct null_mount *xmp;
     90   1.8   mycroft 	size_t size;
     91   1.1   mycroft 
     92   1.1   mycroft #ifdef NULLFS_DIAGNOSTIC
     93  1.16  christos 	printf("nullfs_mount(mp = %p)\n", mp);
     94   1.1   mycroft #endif
     95   1.1   mycroft 
     96   1.1   mycroft 	/*
     97   1.1   mycroft 	 * Update is a no-op
     98   1.1   mycroft 	 */
     99   1.1   mycroft 	if (mp->mnt_flag & MNT_UPDATE) {
    100   1.1   mycroft 		return (EOPNOTSUPP);
    101   1.1   mycroft 		/* return VFS_MOUNT(MOUNTTONULLMOUNT(mp)->nullm_vfs, path, data, ndp, p);*/
    102   1.1   mycroft 	}
    103   1.1   mycroft 
    104   1.1   mycroft 	/*
    105   1.1   mycroft 	 * Get argument
    106   1.1   mycroft 	 */
    107  1.10  christos 	error = copyin(data, (caddr_t)&args, sizeof(struct null_args));
    108  1.10  christos 	if (error)
    109   1.1   mycroft 		return (error);
    110   1.1   mycroft 
    111   1.1   mycroft 	/*
    112   1.1   mycroft 	 * Find lower node
    113   1.1   mycroft 	 */
    114   1.1   mycroft 	NDINIT(ndp, LOOKUP, FOLLOW|WANTPARENT|LOCKLEAF,
    115   1.1   mycroft 		UIO_USERSPACE, args.target, p);
    116  1.10  christos 	if ((error = namei(ndp)) != 0)
    117   1.1   mycroft 		return (error);
    118   1.1   mycroft 
    119   1.1   mycroft 	/*
    120   1.1   mycroft 	 * Sanity check on lower vnode
    121   1.1   mycroft 	 */
    122   1.1   mycroft 	lowerrootvp = ndp->ni_vp;
    123   1.1   mycroft 
    124   1.1   mycroft 	vrele(ndp->ni_dvp);
    125   1.1   mycroft 	ndp->ni_dvp = NULL;
    126   1.1   mycroft 
    127   1.1   mycroft 	xmp = (struct null_mount *) malloc(sizeof(struct null_mount),
    128   1.1   mycroft 				M_UFSMNT, M_WAITOK);	/* XXX */
    129   1.1   mycroft 
    130   1.1   mycroft 	/*
    131   1.1   mycroft 	 * Save reference to underlying FS
    132   1.1   mycroft 	 */
    133   1.1   mycroft 	xmp->nullm_vfs = lowerrootvp->v_mount;
    134   1.1   mycroft 
    135   1.1   mycroft 	/*
    136   1.1   mycroft 	 * Save reference.  Each mount also holds
    137   1.1   mycroft 	 * a reference on the root vnode.
    138   1.1   mycroft 	 */
    139  1.11       jtk 	error = null_node_create(mp, lowerrootvp, &vp, 1);
    140   1.1   mycroft 	/*
    141   1.1   mycroft 	 * Make sure the node alias worked
    142  1.21  wrstuden 	 *
    143   1.1   mycroft 	 */
    144   1.1   mycroft 	if (error) {
    145   1.1   mycroft 		vrele(lowerrootvp);
    146   1.1   mycroft 		free(xmp, M_UFSMNT);	/* XXX */
    147   1.1   mycroft 		return (error);
    148   1.1   mycroft 	}
    149  1.21  wrstuden 	/*
    150  1.21  wrstuden 	 * Unlock the node (either the lower or the alias)
    151  1.21  wrstuden 	 */
    152  1.21  wrstuden 	VOP_UNLOCK(vp, 0);
    153   1.1   mycroft 
    154   1.1   mycroft 	/*
    155   1.1   mycroft 	 * Keep a held reference to the root vnode.
    156   1.1   mycroft 	 * It is vrele'd in nullfs_unmount.
    157   1.1   mycroft 	 */
    158   1.1   mycroft 	nullm_rootvp = vp;
    159   1.1   mycroft 	nullm_rootvp->v_flag |= VROOT;
    160   1.1   mycroft 	xmp->nullm_rootvp = nullm_rootvp;
    161   1.1   mycroft 	if (NULLVPTOLOWERVP(nullm_rootvp)->v_mount->mnt_flag & MNT_LOCAL)
    162   1.1   mycroft 		mp->mnt_flag |= MNT_LOCAL;
    163   1.1   mycroft 	mp->mnt_data = (qaddr_t) xmp;
    164  1.19      fvdl 	vfs_getnewfsid(mp, MOUNT_NULL);
    165   1.1   mycroft 
    166   1.1   mycroft 	(void) copyinstr(path, mp->mnt_stat.f_mntonname, MNAMELEN - 1, &size);
    167  1.20     perry 	memset(mp->mnt_stat.f_mntonname + size, 0, MNAMELEN - size);
    168   1.1   mycroft 	(void) copyinstr(args.target, mp->mnt_stat.f_mntfromname, MNAMELEN - 1,
    169   1.1   mycroft 	    &size);
    170  1.20     perry 	memset(mp->mnt_stat.f_mntfromname + size, 0, MNAMELEN - size);
    171   1.1   mycroft #ifdef NULLFS_DIAGNOSTIC
    172  1.13  christos 	printf("nullfs_mount: lower %s, alias at %s\n",
    173  1.12  christos 	    mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname);
    174   1.1   mycroft #endif
    175   1.1   mycroft 	return (0);
    176   1.1   mycroft }
    177   1.1   mycroft 
    178   1.1   mycroft /*
    179   1.1   mycroft  * VFS start.  Nothing needed here - the start routine
    180   1.1   mycroft  * on the underlying filesystem will have been called
    181   1.1   mycroft  * when that filesystem was mounted.
    182   1.1   mycroft  */
    183   1.1   mycroft int
    184   1.1   mycroft nullfs_start(mp, flags, p)
    185   1.1   mycroft 	struct mount *mp;
    186   1.1   mycroft 	int flags;
    187   1.1   mycroft 	struct proc *p;
    188   1.1   mycroft {
    189   1.1   mycroft 
    190   1.1   mycroft 	return (0);
    191   1.1   mycroft 	/* return VFS_START(MOUNTTONULLMOUNT(mp)->nullm_vfs, flags, p); */
    192   1.1   mycroft }
    193   1.1   mycroft 
    194   1.1   mycroft /*
    195   1.1   mycroft  * Free reference to null layer
    196   1.1   mycroft  */
    197   1.1   mycroft int
    198   1.1   mycroft nullfs_unmount(mp, mntflags, p)
    199   1.1   mycroft 	struct mount *mp;
    200   1.1   mycroft 	int mntflags;
    201   1.1   mycroft 	struct proc *p;
    202   1.1   mycroft {
    203   1.1   mycroft 	struct vnode *nullm_rootvp = MOUNTTONULLMOUNT(mp)->nullm_rootvp;
    204   1.1   mycroft 	int error;
    205   1.1   mycroft 	int flags = 0;
    206   1.1   mycroft 
    207   1.1   mycroft #ifdef NULLFS_DIAGNOSTIC
    208  1.16  christos 	printf("nullfs_unmount(mp = %p)\n", mp);
    209   1.1   mycroft #endif
    210   1.1   mycroft 
    211  1.19      fvdl 	if (mntflags & MNT_FORCE)
    212   1.1   mycroft 		flags |= FORCECLOSE;
    213   1.1   mycroft 
    214   1.1   mycroft 	/*
    215   1.1   mycroft 	 * Clear out buffer cache.  I don't think we
    216   1.1   mycroft 	 * ever get anything cached at this level at the
    217   1.1   mycroft 	 * moment, but who knows...
    218   1.1   mycroft 	 */
    219   1.1   mycroft #if 0
    220   1.1   mycroft 	mntflushbuf(mp, 0);
    221   1.1   mycroft 	if (mntinvalbuf(mp, 1))
    222   1.1   mycroft 		return (EBUSY);
    223   1.1   mycroft #endif
    224   1.1   mycroft 	if (nullm_rootvp->v_usecount > 1)
    225   1.1   mycroft 		return (EBUSY);
    226  1.10  christos 	if ((error = vflush(mp, nullm_rootvp, flags)) != 0)
    227   1.1   mycroft 		return (error);
    228   1.1   mycroft 
    229   1.1   mycroft #ifdef NULLFS_DIAGNOSTIC
    230   1.1   mycroft 	vprint("alias root of lower", nullm_rootvp);
    231   1.1   mycroft #endif
    232   1.1   mycroft 	/*
    233   1.1   mycroft 	 * Release reference on underlying root vnode
    234   1.1   mycroft 	 */
    235   1.1   mycroft 	vrele(nullm_rootvp);
    236   1.1   mycroft 	/*
    237   1.1   mycroft 	 * And blow it away for future re-use
    238   1.1   mycroft 	 */
    239   1.1   mycroft 	vgone(nullm_rootvp);
    240   1.1   mycroft 	/*
    241   1.1   mycroft 	 * Finally, throw away the null_mount structure
    242   1.1   mycroft 	 */
    243   1.1   mycroft 	free(mp->mnt_data, M_UFSMNT);	/* XXX */
    244   1.1   mycroft 	mp->mnt_data = 0;
    245   1.1   mycroft 	return 0;
    246   1.1   mycroft }
    247   1.1   mycroft 
    248   1.1   mycroft int
    249   1.1   mycroft nullfs_root(mp, vpp)
    250   1.1   mycroft 	struct mount *mp;
    251   1.1   mycroft 	struct vnode **vpp;
    252   1.1   mycroft {
    253   1.1   mycroft 	struct vnode *vp;
    254   1.1   mycroft 
    255   1.1   mycroft #ifdef NULLFS_DIAGNOSTIC
    256  1.16  christos 	printf("nullfs_root(mp = %p, vp = %p->%p)\n", mp,
    257  1.12  christos 	    MOUNTTONULLMOUNT(mp)->nullm_rootvp,
    258  1.12  christos 	    NULLVPTOLOWERVP(MOUNTTONULLMOUNT(mp)->nullm_rootvp));
    259   1.1   mycroft #endif
    260   1.1   mycroft 
    261   1.1   mycroft 	/*
    262   1.1   mycroft 	 * Return locked reference to root.
    263   1.1   mycroft 	 */
    264   1.1   mycroft 	vp = MOUNTTONULLMOUNT(mp)->nullm_rootvp;
    265   1.1   mycroft 	VREF(vp);
    266  1.19      fvdl 	vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
    267   1.1   mycroft 	*vpp = vp;
    268   1.1   mycroft 	return 0;
    269   1.1   mycroft }
    270   1.1   mycroft 
    271   1.1   mycroft int
    272   1.1   mycroft nullfs_quotactl(mp, cmd, uid, arg, p)
    273   1.1   mycroft 	struct mount *mp;
    274   1.1   mycroft 	int cmd;
    275   1.1   mycroft 	uid_t uid;
    276   1.1   mycroft 	caddr_t arg;
    277   1.1   mycroft 	struct proc *p;
    278   1.1   mycroft {
    279   1.1   mycroft 
    280   1.1   mycroft 	return VFS_QUOTACTL(MOUNTTONULLMOUNT(mp)->nullm_vfs, cmd, uid, arg, p);
    281   1.1   mycroft }
    282   1.1   mycroft 
    283   1.1   mycroft int
    284   1.1   mycroft nullfs_statfs(mp, sbp, p)
    285   1.1   mycroft 	struct mount *mp;
    286   1.1   mycroft 	struct statfs *sbp;
    287   1.1   mycroft 	struct proc *p;
    288   1.1   mycroft {
    289   1.1   mycroft 	int error;
    290   1.1   mycroft 	struct statfs mstat;
    291   1.1   mycroft 
    292   1.1   mycroft #ifdef NULLFS_DIAGNOSTIC
    293  1.16  christos 	printf("nullfs_statfs(mp = %p, vp = %p->%p)\n", mp,
    294  1.12  christos 	    MOUNTTONULLMOUNT(mp)->nullm_rootvp,
    295  1.12  christos 	    NULLVPTOLOWERVP(MOUNTTONULLMOUNT(mp)->nullm_rootvp));
    296   1.1   mycroft #endif
    297   1.1   mycroft 
    298  1.20     perry 	memset(&mstat, 0, sizeof(mstat));
    299   1.1   mycroft 
    300   1.1   mycroft 	error = VFS_STATFS(MOUNTTONULLMOUNT(mp)->nullm_vfs, &mstat, p);
    301   1.1   mycroft 	if (error)
    302   1.1   mycroft 		return (error);
    303   1.1   mycroft 
    304   1.1   mycroft 	/* now copy across the "interesting" information and fake the rest */
    305   1.1   mycroft 	sbp->f_type = mstat.f_type;
    306   1.1   mycroft 	sbp->f_flags = mstat.f_flags;
    307   1.1   mycroft 	sbp->f_bsize = mstat.f_bsize;
    308   1.1   mycroft 	sbp->f_iosize = mstat.f_iosize;
    309   1.1   mycroft 	sbp->f_blocks = mstat.f_blocks;
    310   1.1   mycroft 	sbp->f_bfree = mstat.f_bfree;
    311   1.1   mycroft 	sbp->f_bavail = mstat.f_bavail;
    312   1.1   mycroft 	sbp->f_files = mstat.f_files;
    313   1.1   mycroft 	sbp->f_ffree = mstat.f_ffree;
    314   1.1   mycroft 	if (sbp != &mp->mnt_stat) {
    315  1.20     perry 		memcpy(&sbp->f_fsid, &mp->mnt_stat.f_fsid, sizeof(sbp->f_fsid));
    316  1.20     perry 		memcpy(sbp->f_mntonname, mp->mnt_stat.f_mntonname, MNAMELEN);
    317  1.20     perry 		memcpy(sbp->f_mntfromname, mp->mnt_stat.f_mntfromname, MNAMELEN);
    318   1.1   mycroft 	}
    319   1.5   mycroft 	strncpy(sbp->f_fstypename, mp->mnt_op->vfs_name, MFSNAMELEN);
    320   1.1   mycroft 	return (0);
    321   1.1   mycroft }
    322   1.1   mycroft 
    323   1.1   mycroft int
    324   1.1   mycroft nullfs_sync(mp, waitfor, cred, p)
    325   1.1   mycroft 	struct mount *mp;
    326   1.1   mycroft 	int waitfor;
    327   1.1   mycroft 	struct ucred *cred;
    328   1.1   mycroft 	struct proc *p;
    329   1.1   mycroft {
    330   1.1   mycroft 
    331   1.1   mycroft 	/*
    332   1.1   mycroft 	 * XXX - Assumes no data cached at null layer.
    333   1.1   mycroft 	 */
    334   1.1   mycroft 	return (0);
    335   1.1   mycroft }
    336   1.1   mycroft 
    337   1.1   mycroft int
    338   1.1   mycroft nullfs_vget(mp, ino, vpp)
    339   1.1   mycroft 	struct mount *mp;
    340   1.1   mycroft 	ino_t ino;
    341   1.1   mycroft 	struct vnode **vpp;
    342   1.1   mycroft {
    343   1.1   mycroft 
    344   1.1   mycroft 	return VFS_VGET(MOUNTTONULLMOUNT(mp)->nullm_vfs, ino, vpp);
    345   1.1   mycroft }
    346   1.1   mycroft 
    347   1.1   mycroft int
    348   1.1   mycroft nullfs_fhtovp(mp, fidp, nam, vpp, exflagsp, credanonp)
    349   1.1   mycroft 	struct mount *mp;
    350   1.1   mycroft 	struct fid *fidp;
    351   1.1   mycroft 	struct mbuf *nam;
    352   1.1   mycroft 	struct vnode **vpp;
    353   1.1   mycroft 	int *exflagsp;
    354   1.1   mycroft 	struct ucred**credanonp;
    355   1.1   mycroft {
    356   1.1   mycroft 
    357   1.6       cgd 	return (EOPNOTSUPP);
    358   1.1   mycroft }
    359   1.1   mycroft 
    360   1.1   mycroft int
    361   1.1   mycroft nullfs_vptofh(vp, fhp)
    362   1.1   mycroft 	struct vnode *vp;
    363   1.1   mycroft 	struct fid *fhp;
    364   1.1   mycroft {
    365   1.1   mycroft 
    366   1.6       cgd 	return (EOPNOTSUPP);
    367   1.1   mycroft }
    368   1.1   mycroft 
    369  1.19      fvdl int
    370  1.19      fvdl nullfs_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
    371  1.19      fvdl 	int *name;
    372  1.19      fvdl 	u_int namelen;
    373  1.19      fvdl 	void *oldp;
    374  1.19      fvdl 	size_t *oldlenp;
    375  1.19      fvdl 	void *newp;
    376  1.19      fvdl 	size_t newlen;
    377  1.19      fvdl 	struct proc *p;
    378  1.19      fvdl {
    379  1.19      fvdl 	return (EOPNOTSUPP);
    380  1.19      fvdl }
    381  1.19      fvdl 
    382  1.19      fvdl extern struct vnodeopv_desc null_vnodeop_opv_desc;
    383  1.18   thorpej 
    384  1.18   thorpej struct vnodeopv_desc *nullfs_vnodeopv_descs[] = {
    385  1.19      fvdl 	&null_vnodeop_opv_desc,
    386  1.18   thorpej 	NULL,
    387  1.18   thorpej };
    388  1.18   thorpej 
    389  1.17   thorpej struct vfsops nullfs_vfsops = {
    390   1.1   mycroft 	MOUNT_NULL,
    391   1.1   mycroft 	nullfs_mount,
    392   1.1   mycroft 	nullfs_start,
    393   1.1   mycroft 	nullfs_unmount,
    394   1.1   mycroft 	nullfs_root,
    395   1.1   mycroft 	nullfs_quotactl,
    396   1.1   mycroft 	nullfs_statfs,
    397   1.1   mycroft 	nullfs_sync,
    398   1.1   mycroft 	nullfs_vget,
    399   1.1   mycroft 	nullfs_fhtovp,
    400   1.1   mycroft 	nullfs_vptofh,
    401   1.1   mycroft 	nullfs_init,
    402  1.19      fvdl 	nullfs_sysctl,
    403  1.18   thorpej 	NULL,				/* vfs_mountroot */
    404  1.18   thorpej 	nullfs_vnodeopv_descs,
    405   1.1   mycroft };
    406