xref: /freebsd/sys/fs/cd9660/cd9660_mount.h (revision c4f02a891fe62fe1277c89859922804ea2c27bcd)
1186242c5SPeter Wemm /*
2186242c5SPeter Wemm  * Copyright (c) 1995
3186242c5SPeter Wemm  *	The Regents of the University of California.  All rights reserved.
4186242c5SPeter Wemm  *
5186242c5SPeter Wemm  * This code is derived from software contributed to Berkeley
6186242c5SPeter Wemm  * by Pace Willisson (pace@blitz.com).  The Rock Ridge Extension
7186242c5SPeter Wemm  * Support code is derived from software contributed to Berkeley
8186242c5SPeter Wemm  * by Atsushi Murai (amurai@spec.co.jp).
9186242c5SPeter Wemm  *
10186242c5SPeter Wemm  * Redistribution and use in source and binary forms, with or without
11186242c5SPeter Wemm  * modification, are permitted provided that the following conditions
12186242c5SPeter Wemm  * are met:
13186242c5SPeter Wemm  * 1. Redistributions of source code must retain the above copyright
14186242c5SPeter Wemm  *    notice, this list of conditions and the following disclaimer.
15186242c5SPeter Wemm  * 2. Redistributions in binary form must reproduce the above copyright
16186242c5SPeter Wemm  *    notice, this list of conditions and the following disclaimer in the
17186242c5SPeter Wemm  *    documentation and/or other materials provided with the distribution.
18186242c5SPeter Wemm  * 3. All advertising materials mentioning features or use of this software
19186242c5SPeter Wemm  *    must display the following acknowledgement:
20186242c5SPeter Wemm  *	This product includes software developed by the University of
21186242c5SPeter Wemm  *	California, Berkeley and its contributors.
22186242c5SPeter Wemm  * 4. Neither the name of the University nor the names of its contributors
23186242c5SPeter Wemm  *    may be used to endorse or promote products derived from this software
24186242c5SPeter Wemm  *    without specific prior written permission.
25186242c5SPeter Wemm  *
26186242c5SPeter Wemm  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27186242c5SPeter Wemm  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28186242c5SPeter Wemm  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29186242c5SPeter Wemm  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30186242c5SPeter Wemm  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31186242c5SPeter Wemm  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32186242c5SPeter Wemm  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33186242c5SPeter Wemm  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34186242c5SPeter Wemm  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35186242c5SPeter Wemm  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36186242c5SPeter Wemm  * SUCH DAMAGE.
37186242c5SPeter Wemm  *
38186242c5SPeter Wemm  *	@(#)cd9660_mount.h	8.1 (Berkeley) 5/24/95
39365c5db0SPeter Wemm  * $FreeBSD$
40186242c5SPeter Wemm  */
41186242c5SPeter Wemm 
42186242c5SPeter Wemm /*
43186242c5SPeter Wemm  * Arguments to mount ISO 9660 filesystems.
44186242c5SPeter Wemm  */
45186242c5SPeter Wemm struct iso_args {
46186242c5SPeter Wemm 	char	*fspec;			/* block special device to mount */
47186242c5SPeter Wemm 	struct	export_args export;	/* network export info */
48186242c5SPeter Wemm 	int	flags;			/* mounting flags, see below */
493e1cf431SJoerg Wunsch 	int	ssector;		/* starting sector, 0 for 1st session */
50c4f02a89SMax Khon 	char	*cs_disk;		/* disk charset for Joliet cs conversion */
51c4f02a89SMax Khon 	char	*cs_local;		/* local charset for Joliet cs conversion */
52186242c5SPeter Wemm };
53186242c5SPeter Wemm #define	ISOFSMNT_NORRIP	0x00000001	/* disable Rock Ridge Ext.*/
54186242c5SPeter Wemm #define	ISOFSMNT_GENS	0x00000002	/* enable generation numbers */
55186242c5SPeter Wemm #define	ISOFSMNT_EXTATT	0x00000004	/* enable extended attributes */
5644e568e2SDaniel C. Sobral #define ISOFSMNT_NOJOLIET 0x00000008	/* disable Joliet Ext.*/
57c35e8e54SBoris Popov #define ISOFSMNT_BROKENJOLIET 0x00000010/* allow broken Joliet disks */
58c4f02a89SMax Khon #define	ISOFSMNT_KICONV 0x00000020	/* Use libiconv to convert chars */
59