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