xref: /openbsd-src/usr.sbin/amd/include/fstype.h (revision b2ea75c1b17e1a9a339660e7ed45cd24946b230e)
1 /*
2  * Copyright (c) 1989 Jan-Simon Pendry
3  * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
4  * Copyright (c) 1989, 1993
5  *	The Regents of the University of California.  All rights reserved.
6  *
7  * This code is derived from software contributed to Berkeley by
8  * Jan-Simon Pendry at Imperial College, London.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  * 1. Redistributions of source code must retain the above copyright
14  *    notice, this list of conditions and the following disclaimer.
15  * 2. Redistributions in binary form must reproduce the above copyright
16  *    notice, this list of conditions and the following disclaimer in the
17  *    documentation and/or other materials provided with the distribution.
18  * 3. All advertising materials mentioning features or use of this software
19  *    must display the following acknowledgement:
20  *	This product includes software developed by the University of
21  *	California, Berkeley and its contributors.
22  * 4. Neither the name of the University nor the names of its contributors
23  *    may be used to endorse or promote products derived from this software
24  *    without specific prior written permission.
25  *
26  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36  * SUCH DAMAGE.
37  *
38  *	from: @(#)fstype.h	8.1 (Berkeley) 6/6/93
39  *	$Id: fstype.h,v 1.1.1.1 1995/10/18 08:47:21 deraadt Exp $
40  *
41  */
42 
43 /*
44  * File system types
45  */
46 
47 /*
48  * Automount File System
49  */
50 #define HAS_AFS
51 extern am_ops	afs_ops;	/* Automount file system (this!) */
52 extern am_ops	toplvl_ops;	/* Top-level automount file system */
53 extern am_ops	root_ops;	/* Root file system */
54 extern qelem	afs_srvr_list;
55 extern fserver *find_afs_srvr P((mntfs*));
56 
57 /*
58  * Direct Automount File System
59  */
60 #define	HAS_DFS
61 extern am_ops	dfs_ops;	/* Direct Automount file system (this too) */
62 
63 /*
64  * Error File System
65  */
66 #define HAS_EFS
67 extern am_ops	efs_ops;	/* Error file system */
68 
69 /*
70  * Inheritance File System
71  */
72 #define HAS_IFS
73 extern am_ops	ifs_ops;	/* Inheritance file system */
74 
75 /*
76  * Loopback File System
77  * LOFS is optional - you can compile without it.
78  */
79 #ifdef OS_HAS_LOFS
80 /*
81  * Most systems can't support this, and in
82  * any case most of the functionality is
83  * available with Symlink FS.  In fact,
84  * lofs_ops is not yet available.
85  */
86 #define HAS_LOFS
87 extern am_ops lofs_ops;
88 #endif
89 
90 /*
91  * Netw*rk File System
92  * Good, slow, NFS.
93  * NFS host - a whole tree
94  */
95 #define HAS_NFS
96 #define	HAS_HOST
97 #define HAS_NFSX
98 extern am_ops	nfs_ops;	/* NFS */
99 extern am_ops	nfsx_ops;	/* NFS X */
100 extern am_ops	host_ops;	/* NFS host */
101 #ifdef HOST_EXEC
102 extern char	*host_helper;	/* "/usr/local/etc/amd-host" */
103 #endif
104 extern qelem	nfs_srvr_list;
105 extern fserver *find_nfs_srvr P((mntfs*));
106 
107 /*
108  * Program File System
109  * PFS is optional - you can compile without it.
110  * This is useful for things like RVD.
111  */
112 #define HAS_PFS
113 extern am_ops	pfs_ops;	/* PFS */
114 
115 /*
116  * Translucent File System
117  * TFS is optional - you can compile without it.
118  * This is just plain cute.
119  */
120 #ifdef notdef
121 extern am_ops	tfs_ops;	/* TFS */
122 #endif
123 #undef	HAS_TFS
124 
125 /*
126  * Un*x File System
127  * Normal local disk file system.
128  */
129 #define HAS_UFS
130 extern am_ops	ufs_ops;	/* Un*x file system */
131 
132 /*
133  * Symbolic-link file system
134  * A "filesystem" which is just a symbol link.
135  *
136  * sfsx also checks that the target of the link exists.
137  */
138 #define HAS_SFS
139 extern am_ops	sfs_ops;	/* Symlink FS */
140 #define HAS_SFSX
141 extern am_ops	sfsx_ops;	/* Symlink FS with existence check */
142 
143 /*
144  * Union file system
145  */
146 #define	HAS_UNION_FS
147 extern am_ops	union_ops;	/* Union FS */
148