|
|
1.1 root 1: /*
2: * Copyright (c) 1989 The Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution is only permitted until one year after the first shipment
6: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
7: * binary forms are permitted provided that: (1) source distributions retain
8: * this entire copyright notice and comment, and (2) distributions including
9: * binaries display the following acknowledgement: This product includes
10: * software developed by the University of California, Berkeley and its
11: * contributors'' in the documentation or other materials provided with the
12: * distribution and in all advertising materials mentioning features or use
13: * of this software. Neither the name of the University nor the names of
14: * its contributors may be used to endorse or promote products derived from
15: * this software without specific prior written permission.
16: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
17: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
18: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19: *
20: * @(#)vfs_conf.c 7.3 (Berkeley) 6/28/90
21: */
22:
23: #include "param.h"
24: #include "mount.h"
25:
26: /*
27: * This specifies the filesystem used to mount the root.
28: * This specification should be done by /etc/config.
29: */
30: extern int ufs_mountroot();
31: int (*mountroot)() = ufs_mountroot;
32:
33: /*
34: * These define the root filesystem and device.
35: */
36: struct mount *rootfs;
37: struct vnode *rootdir;
38:
39: /*
40: * Set up the filesystem operations for vnodes.
41: * The types are defined in mount.h.
42: */
43: extern struct vfsops ufs_vfsops;
44:
45: #ifdef NFS
46: extern struct vfsops nfs_vfsops;
47: #endif
48:
49: #ifdef MFS
50: extern struct vfsops mfs_vfsops;
51: #endif
52:
53: struct vfsops *vfssw[] = {
54: (struct vfsops *)0, /* 0 = MOUNT_NONE */
55: &ufs_vfsops, /* 1 = MOUNT_UFS */
56: #ifdef NFS
57: &nfs_vfsops, /* 2 = MOUNT_NFS */
58: #else
59: (struct vfsops *)0,
60: #endif
61: #ifdef MFS
62: &mfs_vfsops, /* 3 = MOUNT_MFS */
63: #else
64: (struct vfsops *)0,
65: #endif
66: (struct vfsops *)0, /* 4 = MOUNT_PC */
67: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.