add memory filesystem initialization
[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 *
5 * Redistribution and use in source and binary forms are permitted
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16 *
17 * @(#)vfs_conf.c 7.1 (Berkeley) %G%
18 */
19
20#include "param.h"
21#include "mount.h"
22
23/*
24 * This specifies the filesystem used to mount the root.
25 * This specification should be done by /etc/config.
26 */
27extern int ufs_mountroot();
28int (*mountroot)() = ufs_mountroot;
29
30/*
31 * These define the root filesystem and device.
32 */
33struct mount *rootfs;
34struct vnode *rootdir;
35
36/*
37 * Set up the filesystem operations for vnodes.
38 * The types are defined in mount.h.
39 */
40extern struct vfsops ufs_vfsops;
41
42#ifdef NFS
43extern struct vfsops nfs_vfsops;
44#endif
45
46struct vfsops *vfssw[] = {
47 (struct vfsops *)0, /* 0 = MOUNT_NONE */
48 &ufs_vfsops, /* 1 = MOUNT_UFS */
49#ifdef NFS
50 &nfs_vfsops, /* 2 = MOUNT_NFS */
51#else
52 (struct vfsops *)0,
53#endif
54 (struct vfsops *)0, /* 3 = MOUNT_PC */
55};