xref: /csrg-svn/sys/kern/vfs_conf.c (revision 44456)
1 /*
2  * Copyright (c) 1989 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)vfs_conf.c	7.3 (Berkeley) 06/28/90
8  */
9 
10 #include "param.h"
11 #include "mount.h"
12 
13 /*
14  * This specifies the filesystem used to mount the root.
15  * This specification should be done by /etc/config.
16  */
17 extern int ufs_mountroot();
18 int (*mountroot)() = ufs_mountroot;
19 
20 /*
21  * These define the root filesystem and device.
22  */
23 struct mount *rootfs;
24 struct vnode *rootdir;
25 
26 /*
27  * Set up the filesystem operations for vnodes.
28  * The types are defined in mount.h.
29  */
30 extern	struct vfsops ufs_vfsops;
31 
32 #ifdef NFS
33 extern	struct vfsops nfs_vfsops;
34 #endif
35 
36 #ifdef MFS
37 extern	struct vfsops mfs_vfsops;
38 #endif
39 
40 struct vfsops *vfssw[] = {
41 	(struct vfsops *)0,	/* 0 = MOUNT_NONE */
42 	&ufs_vfsops,		/* 1 = MOUNT_UFS */
43 #ifdef NFS
44 	&nfs_vfsops,		/* 2 = MOUNT_NFS */
45 #else
46 	(struct vfsops *)0,
47 #endif
48 #ifdef MFS
49 	&mfs_vfsops,		/* 3 = MOUNT_MFS */
50 #else
51 	(struct vfsops *)0,
52 #endif
53 	(struct vfsops *)0,	/* 4 = MOUNT_PC */
54 };
55