add proc pointers to appropriate VOP operations
[unix-history] / usr / src / sys / kern / vfs_conf.c
CommitLineData
3c4390e8
KM
1/*
2 * Copyright (c) 1989 The Regents of the University of California.
3 * All rights reserved.
4 *
dbf0c423 5 * %sccs.include.redist.c%
3c4390e8 6 *
dbf0c423 7 * @(#)vfs_conf.c 7.3 (Berkeley) %G%
3c4390e8
KM
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 */
17extern int ufs_mountroot();
18int (*mountroot)() = ufs_mountroot;
19
20/*
21 * These define the root filesystem and device.
22 */
23struct mount *rootfs;
24struct vnode *rootdir;
25
26/*
27 * Set up the filesystem operations for vnodes.
28 * The types are defined in mount.h.
29 */
30extern struct vfsops ufs_vfsops;
31
32#ifdef NFS
33extern struct vfsops nfs_vfsops;
34#endif
35
9caf22f9
KM
36#ifdef MFS
37extern struct vfsops mfs_vfsops;
38#endif
39
3c4390e8
KM
40struct 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
9caf22f9
KM
48#ifdef MFS
49 &mfs_vfsops, /* 3 = MOUNT_MFS */
50#else
51 (struct vfsops *)0,
52#endif
53 (struct vfsops *)0, /* 4 = MOUNT_PC */
3c4390e8 54};