xref: /openbsd/usr.sbin/amd/include/fstype.h (revision 29295d1c)
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. Neither the name of the University nor the names of its contributors
19  *    may be used to endorse or promote products derived from this software
20  *    without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32  * SUCH DAMAGE.
33  *
34  *	from: @(#)fstype.h	8.1 (Berkeley) 6/6/93
35  *	$Id: fstype.h,v 1.3 2003/06/02 23:36:52 millert Exp $
36  *
37  */
38 
39 /*
40  * File system types
41  */
42 
43 /*
44  * Automount File System
45  */
46 #define HAS_AFS
47 extern am_ops	 afs_ops;	/* Automount file system (this!) */
48 extern am_ops	 toplvl_ops;	/* Top-level automount file system */
49 extern am_ops	 root_ops;	/* Root file system */
50 extern qelem	 afs_srvr_list;
51 extern fserver	*find_afs_srvr(mntfs *);
52 
53 /*
54  * Direct Automount File System
55  */
56 #define	HAS_DFS
57 extern am_ops	dfs_ops;	/* Direct Automount file system (this too) */
58 
59 /*
60  * Error File System
61  */
62 #define HAS_EFS
63 extern am_ops	efs_ops;	/* Error file system */
64 
65 /*
66  * Inheritance File System
67  */
68 #define HAS_IFS
69 extern am_ops	ifs_ops;	/* Inheritance file system */
70 
71 /*
72  * Loopback File System
73  * LOFS is optional - you can compile without it.
74  */
75 #ifdef OS_HAS_LOFS
76 /*
77  * Most systems can't support this, and in
78  * any case most of the functionality is
79  * available with Symlink FS.  In fact,
80  * lofs_ops is not yet available.
81  */
82 #define HAS_LOFS
83 extern am_ops lofs_ops;
84 #endif
85 
86 /*
87  * Netw*rk File System
88  * Good, slow, NFS.
89  * NFS host - a whole tree
90  */
91 #define HAS_NFS
92 #define	HAS_HOST
93 #define HAS_NFSX
94 extern am_ops	nfs_ops;	/* NFS */
95 extern am_ops	nfsx_ops;	/* NFS X */
96 extern am_ops	host_ops;	/* NFS host */
97 #ifdef HOST_EXEC
98 extern char	*host_helper;	/* "/usr/local/etc/amd-host" */
99 #endif
100 extern qelem	nfs_srvr_list;
101 extern fserver *find_nfs_srvr(mntfs *);
102 
103 /*
104  * Program File System
105  * PFS is optional - you can compile without it.
106  * This is useful for things like RVD.
107  */
108 #define HAS_PFS
109 extern am_ops	pfs_ops;	/* PFS */
110 
111 /*
112  * Translucent File System
113  * TFS is optional - you can compile without it.
114  * This is just plain cute.
115  */
116 #ifdef notdef
117 extern am_ops	tfs_ops;	/* TFS */
118 #endif
119 #undef	HAS_TFS
120 
121 /*
122  * Un*x File System
123  * Normal local disk file system.
124  */
125 #define HAS_UFS
126 extern am_ops	ufs_ops;	/* Un*x file system */
127 
128 /*
129  * Symbolic-link file system
130  * A "filesystem" which is just a symbol link.
131  *
132  * sfsx also checks that the target of the link exists.
133  */
134 #define HAS_SFS
135 extern am_ops	sfs_ops;	/* Symlink FS */
136 #define HAS_SFSX
137 extern am_ops	sfsx_ops;	/* Symlink FS with existence check */
138 
139 /*
140  * Union file system
141  */
142 #define	HAS_UNION_FS
143 extern am_ops	union_ops;	/* Union FS */
144