137488Smckusick /* 237488Smckusick * Copyright (c) 1989 The Regents of the University of California. 337488Smckusick * All rights reserved. 437488Smckusick * 544456Sbostic * %sccs.include.redist.c% 637488Smckusick * 7*51456Sbostic * @(#)vfs_conf.c 7.4 (Berkeley) 11/01/91 837488Smckusick */ 937488Smckusick 10*51456Sbostic #include <sys/param.h> 11*51456Sbostic #include <sys/mount.h> 12*51456Sbostic #include <ufs/ffs/ffs_extern.h> 1337488Smckusick 1437488Smckusick /* 1537488Smckusick * This specifies the filesystem used to mount the root. 1637488Smckusick * This specification should be done by /etc/config. 1737488Smckusick */ 18*51456Sbostic int (*mountroot)() = ffs_mountroot; 1937488Smckusick 2037488Smckusick /* 2137488Smckusick * These define the root filesystem and device. 2237488Smckusick */ 2337488Smckusick struct mount *rootfs; 2437488Smckusick struct vnode *rootdir; 2537488Smckusick 2637488Smckusick /* 2737488Smckusick * Set up the filesystem operations for vnodes. 2837488Smckusick * The types are defined in mount.h. 2937488Smckusick */ 3037488Smckusick extern struct vfsops ufs_vfsops; 3137488Smckusick 32*51456Sbostic #ifdef LFS 33*51456Sbostic extern struct vfsops lfs_vfsops; 3437488Smckusick #endif 3537488Smckusick 3639046Smckusick #ifdef MFS 3739046Smckusick extern struct vfsops mfs_vfsops; 3839046Smckusick #endif 3939046Smckusick 40*51456Sbostic #ifdef NFS 41*51456Sbostic extern struct vfsops nfs_vfsops; 42*51456Sbostic #endif 43*51456Sbostic 4437488Smckusick struct vfsops *vfssw[] = { 45*51456Sbostic NULL, /* 0 = MOUNT_NONE */ 4637488Smckusick &ufs_vfsops, /* 1 = MOUNT_UFS */ 4737488Smckusick #ifdef NFS 4837488Smckusick &nfs_vfsops, /* 2 = MOUNT_NFS */ 4937488Smckusick #else 50*51456Sbostic NULL, 5137488Smckusick #endif 5239046Smckusick #ifdef MFS 5339046Smckusick &mfs_vfsops, /* 3 = MOUNT_MFS */ 5439046Smckusick #else 55*51456Sbostic NULL, 5639046Smckusick #endif 57*51456Sbostic NULL, /* 4 = MOUNT_PC */ 58*51456Sbostic #ifdef LFS 59*51456Sbostic &lfs_vfsops, /* 5 = MOUNT_LFS */ 60*51456Sbostic #else 61*51456Sbostic NULL, 62*51456Sbostic #endif 6337488Smckusick }; 64