xref: /original-bsd/usr.sbin/amd/include/fstype.h (revision 6c8be42f)
1 /*
2  * $Id: fstype.h,v 5.2.1.2 90/11/04 23:17:38 jsp Exp $
3  *
4  * Copyright (c) 1989 Jan-Simon Pendry
5  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
6  * Copyright (c) 1989 The Regents of the University of California.
7  * All rights reserved.
8  *
9  * This code is derived from software contributed to Berkeley by
10  * Jan-Simon Pendry at Imperial College, London.
11  *
12  * %sccs.include.redist.c%
13  *
14  *	@(#)fstype.h	5.2 (Berkeley) 03/17/91
15  */
16 
17 /*
18  * File system types
19  */
20 
21 /*
22  * Automount File System
23  */
24 #define HAS_AFS
25 extern am_ops	afs_ops;	/* Automount file system (this!) */
26 extern am_ops	toplvl_ops;	/* Top-level automount file system */
27 extern am_ops	root_ops;	/* Root file system */
28 extern qelem	afs_srvr_list;
29 extern fserver *find_afs_srvr P((mntfs*));
30 
31 /*
32  * Direct Automount File System
33  */
34 #define	HAS_DFS
35 extern am_ops	dfs_ops;	/* Direct Automount file system (this too) */
36 
37 /*
38  * Error File System
39  */
40 #define HAS_EFS
41 extern am_ops	efs_ops;	/* Error file system */
42 
43 /*
44  * Inheritance File System
45  */
46 #define HAS_IFS
47 extern am_ops	ifs_ops;	/* Inheritance file system */
48 
49 /*
50  * Loopback File System
51  * LOFS is optional - you can compile without it.
52  */
53 #ifdef OS_HAS_LOFS
54 /*
55  * Most systems can't support this, and in
56  * any case most of the functionality is
57  * available with Symlink FS.  In fact,
58  * lofs_ops is not yet available.
59  */
60 #define HAS_LOFS
61 extern am_ops lofs_ops;
62 #endif
63 
64 /*
65  * Netw*rk File System
66  * Good, slow, NFS.
67  * NFS host - a whole tree
68  */
69 #define HAS_NFS
70 #define	HAS_HOST
71 #define HAS_NFSX
72 extern am_ops	nfs_ops;	/* NFS */
73 extern am_ops	nfsx_ops;	/* NFS X */
74 extern am_ops	host_ops;	/* NFS host */
75 #ifdef HOST_EXEC
76 extern char	*host_helper;	/* "/usr/local/etc/amd-host" */
77 #endif
78 extern qelem	nfs_srvr_list;
79 extern fserver *find_nfs_srvr P((mntfs*));
80 
81 /*
82  * Program File System
83  * PFS is optional - you can compile without it.
84  * This is useful for things like RVD.
85  */
86 #define HAS_PFS
87 extern am_ops	pfs_ops;	/* PFS */
88 
89 /*
90  * Translucent File System
91  * TFS is optional - you can compile without it.
92  * This is just plain cute.
93  */
94 #ifdef notdef
95 extern am_ops	tfs_ops;	/* TFS */
96 #endif
97 #undef	HAS_TFS
98 
99 /*
100  * Un*x File System
101  * Normal local disk file system.
102  */
103 #define HAS_UFS
104 extern am_ops	ufs_ops;	/* Un*x file system */
105 
106 /*
107  * Symbolic-link file system
108  * A "filesystem" which is just a symbol link.
109  */
110 #define HAS_SFS
111 extern am_ops	sfs_ops;	/* Symlink FS */
112 
113 /*
114  * Union file system
115  */
116 #define	HAS_UNION_FS
117 extern am_ops	union_ops;	/* Union FS */
118