xref: /minix3/sys/fs/udf/udf_mount.h (revision 9f988b79349f9b89ecc822458c30ec8897558560)
1*9f988b79SJean-Baptiste Boric /* $NetBSD: udf_mount.h,v 1.3 2006/02/02 15:52:23 reinoud Exp $ */
2*9f988b79SJean-Baptiste Boric 
3*9f988b79SJean-Baptiste Boric /*
4*9f988b79SJean-Baptiste Boric  * Copyright (c) 2006 Reinoud Zandijk
5*9f988b79SJean-Baptiste Boric  * All rights reserved.
6*9f988b79SJean-Baptiste Boric  *
7*9f988b79SJean-Baptiste Boric  * Redistribution and use in source and binary forms, with or without
8*9f988b79SJean-Baptiste Boric  * modification, are permitted provided that the following conditions
9*9f988b79SJean-Baptiste Boric  * are met:
10*9f988b79SJean-Baptiste Boric  * 1. Redistributions of source code must retain the above copyright
11*9f988b79SJean-Baptiste Boric  *    notice, this list of conditions and the following disclaimer.
12*9f988b79SJean-Baptiste Boric  * 2. Redistributions in binary form must reproduce the above copyright
13*9f988b79SJean-Baptiste Boric  *    notice, this list of conditions and the following disclaimer in the
14*9f988b79SJean-Baptiste Boric  *    documentation and/or other materials provided with the distribution.
15*9f988b79SJean-Baptiste Boric  * 3. All advertising materials mentioning features or use of this software
16*9f988b79SJean-Baptiste Boric  *    must display the following acknowledgement:
17*9f988b79SJean-Baptiste Boric  *          This product includes software developed for the
18*9f988b79SJean-Baptiste Boric  *          NetBSD Project.  See http://www.NetBSD.org/ for
19*9f988b79SJean-Baptiste Boric  *          information about NetBSD.
20*9f988b79SJean-Baptiste Boric  * 4. The name of the author may not be used to endorse or promote products
21*9f988b79SJean-Baptiste Boric  *    derived from this software without specific prior written permission.
22*9f988b79SJean-Baptiste Boric  *
23*9f988b79SJean-Baptiste Boric  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24*9f988b79SJean-Baptiste Boric  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25*9f988b79SJean-Baptiste Boric  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26*9f988b79SJean-Baptiste Boric  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27*9f988b79SJean-Baptiste Boric  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28*9f988b79SJean-Baptiste Boric  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29*9f988b79SJean-Baptiste Boric  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30*9f988b79SJean-Baptiste Boric  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31*9f988b79SJean-Baptiste Boric  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32*9f988b79SJean-Baptiste Boric  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33*9f988b79SJean-Baptiste Boric  *
34*9f988b79SJean-Baptiste Boric  */
35*9f988b79SJean-Baptiste Boric 
36*9f988b79SJean-Baptiste Boric 
37*9f988b79SJean-Baptiste Boric #ifndef _FS_UDF_UDF_MOUNT_H_
38*9f988b79SJean-Baptiste Boric #define _FS_UDF_UDF_MOUNT_H_
39*9f988b79SJean-Baptiste Boric 
40*9f988b79SJean-Baptiste Boric /*
41*9f988b79SJean-Baptiste Boric  * Arguments to mount UDF filingsystem.
42*9f988b79SJean-Baptiste Boric  */
43*9f988b79SJean-Baptiste Boric 
44*9f988b79SJean-Baptiste Boric #define UDFMNT_VERSION	1
45*9f988b79SJean-Baptiste Boric struct udf_args {
46*9f988b79SJean-Baptiste Boric 	uint32_t	 version;	/* version of this structure         */
47*9f988b79SJean-Baptiste Boric 	char		*fspec;		/* mount specifier                   */
48*9f988b79SJean-Baptiste Boric 	int32_t		 sessionnr;	/* session specifier, rel of abs     */
49*9f988b79SJean-Baptiste Boric 	uint32_t	 udfmflags;	/* mount options                     */
50*9f988b79SJean-Baptiste Boric 	int32_t		 gmtoff;	/* offset from UTC in seconds        */
51*9f988b79SJean-Baptiste Boric 
52*9f988b79SJean-Baptiste Boric 	uid_t		 anon_uid;	/* mapping of anonymous files uid    */
53*9f988b79SJean-Baptiste Boric 	gid_t		 anon_gid;	/* mapping of anonymous files gid    */
54*9f988b79SJean-Baptiste Boric 	uid_t		 nobody_uid;	/* nobody:nobody will map to -1:-1   */
55*9f988b79SJean-Baptiste Boric 	gid_t		 nobody_gid;	/* nobody:nobody will map to -1:-1   */
56*9f988b79SJean-Baptiste Boric 
57*9f988b79SJean-Baptiste Boric 	uint32_t	 sector_size;	/* for mounting dumps/files          */
58*9f988b79SJean-Baptiste Boric 
59*9f988b79SJean-Baptiste Boric 	/* extendable */
60*9f988b79SJean-Baptiste Boric 	uint8_t	 reserved[32];
61*9f988b79SJean-Baptiste Boric };
62*9f988b79SJean-Baptiste Boric 
63*9f988b79SJean-Baptiste Boric 
64*9f988b79SJean-Baptiste Boric /* udf mount options */
65*9f988b79SJean-Baptiste Boric 
66*9f988b79SJean-Baptiste Boric #define UDFMNT_CLOSESESSION	0x00000001	/* close session on dismount */
67*9f988b79SJean-Baptiste Boric #define UDFMNT_BITS "\20\1CLOSESESSION"
68*9f988b79SJean-Baptiste Boric 
69*9f988b79SJean-Baptiste Boric #endif /* !_FS_UDF_UDF_MOUNT_H_ */
70*9f988b79SJean-Baptiste Boric 
71