186cb007fSWarner Losh /*- 2*51369649SPedro F. Giffuni * SPDX-License-Identifier: BSD-3-Clause 3*51369649SPedro 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 * @(#)cd9660_mount.h 8.1 (Berkeley) 5/24/95 37365c5db0SPeter Wemm * $FreeBSD$ 38186242c5SPeter Wemm */ 39186242c5SPeter Wemm 40186242c5SPeter Wemm /* 41186242c5SPeter Wemm * Arguments to mount ISO 9660 filesystems. 42186242c5SPeter Wemm */ 43186242c5SPeter Wemm struct iso_args { 44186242c5SPeter Wemm char *fspec; /* block special device to mount */ 45d0cc54f3SKonstantin Belousov struct oexport_args export; /* network export info */ 46186242c5SPeter Wemm int flags; /* mounting flags, see below */ 473e1cf431SJoerg Wunsch int ssector; /* starting sector, 0 for 1st session */ 48c4f02a89SMax Khon char *cs_disk; /* disk charset for Joliet cs conversion */ 49c4f02a89SMax Khon char *cs_local; /* local charset for Joliet cs conversion */ 50186242c5SPeter Wemm }; 51186242c5SPeter Wemm #define ISOFSMNT_NORRIP 0x00000001 /* disable Rock Ridge Ext.*/ 52186242c5SPeter Wemm #define ISOFSMNT_GENS 0x00000002 /* enable generation numbers */ 53186242c5SPeter Wemm #define ISOFSMNT_EXTATT 0x00000004 /* enable extended attributes */ 5444e568e2SDaniel C. Sobral #define ISOFSMNT_NOJOLIET 0x00000008 /* disable Joliet Ext.*/ 55c35e8e54SBoris Popov #define ISOFSMNT_BROKENJOLIET 0x00000010/* allow broken Joliet disks */ 56c4f02a89SMax Khon #define ISOFSMNT_KICONV 0x00000020 /* Use libiconv to convert chars */ 57