#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mount.h>
#include <sys/vnode.h>
struct mount *rootfs;
struct vnode *rootvnode;
int (*mountroot)() = NULL;
extern struct vfsops ufs_vfsops;
extern int ffs_mountroot();
extern struct vfsops mfs_vfsops;
extern int mfs_mountroot();
extern struct vfsops hfs_vfsops;
extern int hfs_mountroot();
extern struct vfsops volfs_vfsops;
extern struct vfsops cd9660_vfsops;
extern int cd9660_mountroot();
extern struct vfsops nfs_vfsops;
extern int nfs_mountroot();
extern struct vfsops afs_vfsops;
extern struct vfsops null_vfsops;
extern struct vfsops union_vfsops;
extern struct vfsops fdesc_vfsops;
extern struct vfsops devfs_vfsops;
static struct vfsconf vfsconflist[] = {
#if HFS
{ &hfs_vfsops, "hfs", 17, 0, MNT_LOCAL | MNT_DOVOLFS, hfs_mountroot, NULL },
#endif
#if FFS
{ &ufs_vfsops, "ufs", 1, 0, MNT_LOCAL, ffs_mountroot, NULL },
#endif
#if CD9660
{ &cd9660_vfsops, "cd9660", 14, 0, MNT_LOCAL | MNT_DOVOLFS, cd9660_mountroot, NULL },
#endif
#if MFS
{ &mfs_vfsops, "mfs", 3, 0, MNT_LOCAL, mfs_mountroot, NULL },
#endif
#if NFSCLIENT
{ &nfs_vfsops, "nfs", 2, 0, 0, nfs_mountroot, NULL },
#endif
#if AFS
{ &afs_vfsops, "andrewfs", 13, 0, 0, afs_mountroot, NULL },
#endif
#if NULLFS
{ &null_vfsops, "loopback", 9, 0, 0, NULL, NULL },
#endif
#if UNION
{ &union_vfsops, "union", 15, 0, 0, NULL, NULL },
#endif
#if FDESC
{ &fdesc_vfsops, "fdesc", 7, 0, 0, NULL, NULL },
#endif
#if VOLFS
{ &volfs_vfsops, "volfs", 18, 0, 0, NULL, NULL },
#endif
#if DEVFS
{ &devfs_vfsops, "devfs", 19, 0, 0, NULL, NULL },
#endif
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0},
{0}
};
int maxvfsslots = sizeof(vfsconflist) / sizeof (struct vfsconf);
int numused_vfsslots = 0;
int maxvfsconf = sizeof(vfsconflist) / sizeof (struct vfsconf);
struct vfsconf *vfsconf = vfsconflist;
extern struct vnodeopv_desc ffs_vnodeop_opv_desc;
extern struct vnodeopv_desc ffs_specop_opv_desc;
extern struct vnodeopv_desc ffs_fifoop_opv_desc;
extern struct vnodeopv_desc mfs_vnodeop_opv_desc;
extern struct vnodeopv_desc dead_vnodeop_opv_desc;
extern struct vnodeopv_desc fifo_vnodeop_opv_desc;
extern struct vnodeopv_desc spec_vnodeop_opv_desc;
extern struct vnodeopv_desc nfsv2_vnodeop_opv_desc;
extern struct vnodeopv_desc spec_nfsv2nodeop_opv_desc;
extern struct vnodeopv_desc fifo_nfsv2nodeop_opv_desc;
extern struct vnodeopv_desc fdesc_vnodeop_opv_desc;
extern struct vnodeopv_desc null_vnodeop_opv_desc;
extern struct vnodeopv_desc hfs_vnodeop_opv_desc;
extern struct vnodeopv_desc hfs_specop_opv_desc;
extern struct vnodeopv_desc hfs_fifoop_opv_desc;
extern struct vnodeopv_desc volfs_vnodeop_opv_desc;
extern struct vnodeopv_desc cd9660_vnodeop_opv_desc;
extern struct vnodeopv_desc cd9660_specop_opv_desc;
extern struct vnodeopv_desc cd9660_fifoop_opv_desc;
extern struct vnodeopv_desc union_vnodeop_opv_desc;
extern struct vnodeopv_desc devfs_vnodeop_opv_desc;
extern struct vnodeopv_desc devfs_spec_vnodeop_opv_desc;
struct vnodeopv_desc *vfs_opv_descs[] = {
&ffs_vnodeop_opv_desc,
&ffs_specop_opv_desc,
#if FIFO
&ffs_fifoop_opv_desc,
#endif
&dead_vnodeop_opv_desc,
#if FIFO
&fifo_vnodeop_opv_desc,
#endif
&spec_vnodeop_opv_desc,
#if MFS
&mfs_vnodeop_opv_desc,
#endif
#if NFSCLIENT
&nfsv2_vnodeop_opv_desc,
&spec_nfsv2nodeop_opv_desc,
#if FIFO
&fifo_nfsv2nodeop_opv_desc,
#endif
#endif
#if FDESC
&fdesc_vnodeop_opv_desc,
#endif
#if NULLFS
&null_vnodeop_opv_desc,
#endif
#if HFS
&hfs_vnodeop_opv_desc,
&hfs_specop_opv_desc,
#if FIFO
&hfs_fifoop_opv_desc,
#endif
#endif
#if CD9660
&cd9660_vnodeop_opv_desc,
&cd9660_specop_opv_desc,
#if FIFO
&cd9660_fifoop_opv_desc,
#endif
#endif
#if UNION
&union_vnodeop_opv_desc,
#endif
#if VOLFS
&volfs_vnodeop_opv_desc,
#endif
#if DEVFS
&devfs_vnodeop_opv_desc,
&devfs_spec_vnodeop_opv_desc,
#endif
NULL
};