sys/vnode.h included for function prototype structures
[unix-history] / usr / src / sys / kern / vfs_conf.c
/*
* Copyright (c) 1989 The Regents of the University of California.
* All rights reserved.
*
* %sccs.include.redist.c%
*
* @(#)vfs_conf.c 7.7 (Berkeley) %G%
*/
#include <sys/param.h>
#include <sys/mount.h>
#include <sys/vnode.h>
#ifdef FFS
#include <ufs/ffs/ffs_extern.h>
/*
* This specifies the filesystem used to mount the root.
* This specification should be done by /etc/config.
*/
int (*mountroot)() = ffs_mountroot;
#endif
/*
* These define the root filesystem and device.
*/
struct mount *rootfs;
struct vnode *rootdir;
/*
* Set up the filesystem operations for vnodes.
* The types are defined in mount.h.
*/
#ifdef FFS
extern struct vfsops ufs_vfsops;
#define UFS_VFSOPS &ufs_vfsops
#else
#define UFS_VFSOPS NULL
#endif
#ifdef LFS
extern struct vfsops lfs_vfsops;
#define LFS_VFSOPS &lfs_vfsops
#else
#define LFS_VFSOPS NULL
#endif
#ifdef MFS
extern struct vfsops mfs_vfsops;
#define MFS_VFSOPS &mfs_vfsops
#else
#define MFS_VFSOPS NULL
#endif
#ifdef NFS
extern struct vfsops nfs_vfsops;
#define NFS_VFSOPS &nfs_vfsops
#else
#define NFS_VFSOPS NULL
#endif
struct vfsops *vfssw[] = {
NULL, /* 0 = MOUNT_NONE */
UFS_VFSOPS, /* 1 = MOUNT_UFS */
NFS_VFSOPS, /* 2 = MOUNT_NFS */
MFS_VFSOPS, /* 3 = MOUNT_MFS */
NULL, /* 4 = MOUNT_PC */
LFS_VFSOPS, /* 5 = MOUNT_LFS */
};