xref: /freebsd/sys/fs/cd9660/cd9660_mount.h (revision 82f2275b73e556580b155ea9bbf7f7e364458fa1)
186cb007fSWarner Losh /*-
251369649SPedro F. Giffuni  * SPDX-License-Identifier: BSD-3-Clause
351369649SPedro F. Giffuni  *
4186242c5SPeter Wemm  * Copyright (c) 1995
5186242c5SPeter Wemm  *	The Regents of the University of California.  All rights reserved.
6186242c5SPeter Wemm  *
7186242c5SPeter Wemm  * This code is derived from software contributed to Berkeley
8186242c5SPeter Wemm  * by Pace Willisson (pace@blitz.com).  The Rock Ridge Extension
9186242c5SPeter Wemm  * Support code is derived from software contributed to Berkeley
10186242c5SPeter Wemm  * by Atsushi Murai (amurai@spec.co.jp).
11186242c5SPeter Wemm  *
12186242c5SPeter Wemm  * Redistribution and use in source and binary forms, with or without
13186242c5SPeter Wemm  * modification, are permitted provided that the following conditions
14186242c5SPeter Wemm  * are met:
15186242c5SPeter Wemm  * 1. Redistributions of source code must retain the above copyright
16186242c5SPeter Wemm  *    notice, this list of conditions and the following disclaimer.
17186242c5SPeter Wemm  * 2. Redistributions in binary form must reproduce the above copyright
18186242c5SPeter Wemm  *    notice, this list of conditions and the following disclaimer in the
19186242c5SPeter Wemm  *    documentation and/or other materials provided with the distribution.
20fbbd9655SWarner Losh  * 3. Neither the name of the University nor the names of its contributors
21186242c5SPeter Wemm  *    may be used to endorse or promote products derived from this software
22186242c5SPeter Wemm  *    without specific prior written permission.
23186242c5SPeter Wemm  *
24186242c5SPeter Wemm  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25186242c5SPeter Wemm  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26186242c5SPeter Wemm  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27186242c5SPeter Wemm  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28186242c5SPeter Wemm  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29186242c5SPeter Wemm  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30186242c5SPeter Wemm  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31186242c5SPeter Wemm  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32186242c5SPeter Wemm  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33186242c5SPeter Wemm  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34186242c5SPeter Wemm  * SUCH DAMAGE.
35186242c5SPeter Wemm  */
36186242c5SPeter Wemm 
37186242c5SPeter Wemm /*
38186242c5SPeter Wemm  * Arguments to mount ISO 9660 filesystems.
39186242c5SPeter Wemm  */
40186242c5SPeter Wemm struct iso_args {
41186242c5SPeter Wemm 	char	*fspec;			/* block special device to mount */
42d0cc54f3SKonstantin Belousov 	struct	oexport_args export;	/* network export info */
43*82f2275bSRicardo Branco 	uid_t   uid;		    	/* uid that owns ISO-9660 files */
44*82f2275bSRicardo Branco 	gid_t   gid;		    	/* gid that owns ISO-9660 files */
45*82f2275bSRicardo Branco 	mode_t  fmask;		  	/* file mask to be applied for files */
46*82f2275bSRicardo Branco 	mode_t  dmask;		  	/* file mask to be applied for directories */
47186242c5SPeter Wemm 	int	flags;			/* mounting flags, see below */
483e1cf431SJoerg Wunsch 	int	ssector;		/* starting sector, 0 for 1st session */
49c4f02a89SMax Khon 	char	*cs_disk;		/* disk charset for Joliet cs conversion */
50c4f02a89SMax Khon 	char	*cs_local;		/* local charset for Joliet cs conversion */
51186242c5SPeter Wemm };
52186242c5SPeter Wemm #define	ISOFSMNT_NORRIP	0x00000001	/* disable Rock Ridge Ext.*/
53186242c5SPeter Wemm #define	ISOFSMNT_GENS	0x00000002	/* enable generation numbers */
54186242c5SPeter Wemm #define	ISOFSMNT_EXTATT	0x00000004	/* enable extended attributes */
5544e568e2SDaniel C. Sobral #define ISOFSMNT_NOJOLIET 0x00000008	/* disable Joliet Ext.*/
56c35e8e54SBoris Popov #define ISOFSMNT_BROKENJOLIET 0x00000010/* allow broken Joliet disks */
57c4f02a89SMax Khon #define	ISOFSMNT_KICONV 0x00000020	/* Use libiconv to convert chars */
58*82f2275bSRicardo Branco 
59*82f2275bSRicardo Branco #define ISOFSMNT_UID	0x00000100	/* override uid */
60*82f2275bSRicardo Branco #define ISOFSMNT_GID	0x00000200	/* override gid */
61