xref: /netbsd-src/sys/fs/filecorefs/filecore_mount.h (revision 4bffed72de1153c35e4d45b223abcf74ea22e699)
1*4bffed72Schristos /*	$NetBSD: filecore_mount.h,v 1.6 2005/12/03 17:34:43 christos Exp $	*/
2aad01611Sagc 
3aad01611Sagc /*
4aad01611Sagc  * Copyright (c) 1995 The Regents of the University of California.
5aad01611Sagc  * All rights reserved.
6aad01611Sagc  *
7aad01611Sagc  * Redistribution and use in source and binary forms, with or without
8aad01611Sagc  * modification, are permitted provided that the following conditions
9aad01611Sagc  * are met:
10aad01611Sagc  * 1. Redistributions of source code must retain the above copyright
11aad01611Sagc  *    notice, this list of conditions and the following disclaimer.
12aad01611Sagc  * 2. Redistributions in binary form must reproduce the above copyright
13aad01611Sagc  *    notice, this list of conditions and the following disclaimer in the
14aad01611Sagc  *    documentation and/or other materials provided with the distribution.
15aad01611Sagc  * 4. Neither the name of the University nor the names of its contributors
16aad01611Sagc  *    may be used to endorse or promote products derived from this software
17aad01611Sagc  *    without specific prior written permission.
18aad01611Sagc  *
19aad01611Sagc  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20aad01611Sagc  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21aad01611Sagc  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22aad01611Sagc  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23aad01611Sagc  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24aad01611Sagc  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25aad01611Sagc  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26aad01611Sagc  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27aad01611Sagc  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28aad01611Sagc  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29aad01611Sagc  * SUCH DAMAGE.
30aad01611Sagc  *
31aad01611Sagc  *	filecore_mount.h	1.1	1998/6/26
32aad01611Sagc  */
335356de15Sjdolecek 
345356de15Sjdolecek /*
355356de15Sjdolecek  * Copyright (c) 1998 Andrew McMurry
365356de15Sjdolecek  *
375356de15Sjdolecek  * Redistribution and use in source and binary forms, with or without
385356de15Sjdolecek  * modification, are permitted provided that the following conditions
395356de15Sjdolecek  * are met:
405356de15Sjdolecek  * 1. Redistributions of source code must retain the above copyright
415356de15Sjdolecek  *    notice, this list of conditions and the following disclaimer.
425356de15Sjdolecek  * 2. Redistributions in binary form must reproduce the above copyright
435356de15Sjdolecek  *    notice, this list of conditions and the following disclaimer in the
445356de15Sjdolecek  *    documentation and/or other materials provided with the distribution.
455356de15Sjdolecek  * 3. All advertising materials mentioning features or use of this software
465356de15Sjdolecek  *    must display the following acknowledgement:
475356de15Sjdolecek  *	This product includes software developed by the University of
485356de15Sjdolecek  *	California, Berkeley and its contributors.
495356de15Sjdolecek  * 4. Neither the name of the University nor the names of its contributors
505356de15Sjdolecek  *    may be used to endorse or promote products derived from this software
515356de15Sjdolecek  *    without specific prior written permission.
525356de15Sjdolecek  *
535356de15Sjdolecek  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
545356de15Sjdolecek  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
555356de15Sjdolecek  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
565356de15Sjdolecek  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
575356de15Sjdolecek  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
585356de15Sjdolecek  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
595356de15Sjdolecek  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
605356de15Sjdolecek  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
615356de15Sjdolecek  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
625356de15Sjdolecek  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
635356de15Sjdolecek  * SUCH DAMAGE.
645356de15Sjdolecek  *
655356de15Sjdolecek  *	filecore_mount.h	1.1	1998/6/26
665356de15Sjdolecek  */
67*4bffed72Schristos #ifndef _FILECOREFS_FILECOREFS_MOUNT_H_
68*4bffed72Schristos #define _FILECOREFS_FILECOREFS_MOUNT_H_
695356de15Sjdolecek 
705356de15Sjdolecek /*
715356de15Sjdolecek  * Arguments to mount Acorn Filecore filesystems.
725356de15Sjdolecek  */
735356de15Sjdolecek struct filecore_args {
745356de15Sjdolecek 	char	*fspec;			/* block special device to mount */
759ba32ceaSjmmv 	struct	export_args30 _pad1; /* compat with old userland tools */
765356de15Sjdolecek 	uid_t	uid;			/* uid that owns filecore files */
775356de15Sjdolecek 	gid_t	gid;			/* gid that owns filecore files */
785356de15Sjdolecek 	int	flags;			/* mounting flags, see below */
795356de15Sjdolecek };
805356de15Sjdolecek 
815356de15Sjdolecek #define	FILECOREMNT_ROOT	0
825356de15Sjdolecek #define	FILECOREMNT_OWNACCESS	1	/* Only user has Owner access */
835356de15Sjdolecek #define	FILECOREMNT_ALLACCESS	2	/* World has Owner access */
845356de15Sjdolecek #define	FILECOREMNT_OWNREAD	4	/* All files have Owner read access */
855356de15Sjdolecek #define	FILECOREMNT_USEUID	8	/* Use uid of mount process */
865356de15Sjdolecek #define	FILECOREMNT_FILETYPE	16	/* Include filetype in filename */
875356de15Sjdolecek 
885356de15Sjdolecek #define FILECOREMNT_BITS "\177\20" \
895356de15Sjdolecek     "b\00root\0b\01ownaccess\0b\02allaccess\0b\03ownread\0" \
90589e82f2Syamt     "b\04useuid\0b\05filetype\0"
91*4bffed72Schristos 
92*4bffed72Schristos #endif /* _FILECOREFS_FILECOREFS_MOUNT_H_ */
93