xref: /freebsd/sys/fs/cd9660/cd9660_mount.h (revision d0cc54f3b427a42751bb0a96ca8feaa6ac200073)
186cb007fSWarner Losh /*-
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  * 4. Neither the name of the University nor the names of its contributors
19186242c5SPeter Wemm  *    may be used to endorse or promote products derived from this software
20186242c5SPeter Wemm  *    without specific prior written permission.
21186242c5SPeter Wemm  *
22186242c5SPeter Wemm  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23186242c5SPeter Wemm  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24186242c5SPeter Wemm  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25186242c5SPeter Wemm  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26186242c5SPeter Wemm  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27186242c5SPeter Wemm  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28186242c5SPeter Wemm  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29186242c5SPeter Wemm  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30186242c5SPeter Wemm  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31186242c5SPeter Wemm  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32186242c5SPeter Wemm  * SUCH DAMAGE.
33186242c5SPeter Wemm  *
34186242c5SPeter Wemm  *	@(#)cd9660_mount.h	8.1 (Berkeley) 5/24/95
35365c5db0SPeter Wemm  * $FreeBSD$
36186242c5SPeter Wemm  */
37186242c5SPeter Wemm 
38186242c5SPeter Wemm /*
39186242c5SPeter Wemm  * Arguments to mount ISO 9660 filesystems.
40186242c5SPeter Wemm  */
41186242c5SPeter Wemm struct iso_args {
42186242c5SPeter Wemm 	char	*fspec;			/* block special device to mount */
43*d0cc54f3SKonstantin Belousov 	struct	oexport_args export;	/* network export info */
44186242c5SPeter Wemm 	int	flags;			/* mounting flags, see below */
453e1cf431SJoerg Wunsch 	int	ssector;		/* starting sector, 0 for 1st session */
46c4f02a89SMax Khon 	char	*cs_disk;		/* disk charset for Joliet cs conversion */
47c4f02a89SMax Khon 	char	*cs_local;		/* local charset for Joliet cs conversion */
48186242c5SPeter Wemm };
49186242c5SPeter Wemm #define	ISOFSMNT_NORRIP	0x00000001	/* disable Rock Ridge Ext.*/
50186242c5SPeter Wemm #define	ISOFSMNT_GENS	0x00000002	/* enable generation numbers */
51186242c5SPeter Wemm #define	ISOFSMNT_EXTATT	0x00000004	/* enable extended attributes */
5244e568e2SDaniel C. Sobral #define ISOFSMNT_NOJOLIET 0x00000008	/* disable Joliet Ext.*/
53c35e8e54SBoris Popov #define ISOFSMNT_BROKENJOLIET 0x00000010/* allow broken Joliet disks */
54c4f02a89SMax Khon #define	ISOFSMNT_KICONV 0x00000020	/* Use libiconv to convert chars */
55