1*bbf21555SRichard Lowe.\" 2*bbf21555SRichard Lowe.\" Copyright (c) 2006, Sun Microsystems, Inc. 3*bbf21555SRichard Lowe.\" Copyright 2021 Oxide Computer Company 4*bbf21555SRichard Lowe.\" 5*bbf21555SRichard Lowe.\" The contents of this file are subject to the terms of the 6*bbf21555SRichard Lowe.\" Common Development and Distribution License (the "License"). 7*bbf21555SRichard Lowe.\" You may not use this file except in compliance with the License. 8*bbf21555SRichard Lowe.\" 9*bbf21555SRichard Lowe.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*bbf21555SRichard Lowe.\" or http://www.opensolaris.org/os/licensing. 11*bbf21555SRichard Lowe.\" See the License for the specific language governing permissions 12*bbf21555SRichard Lowe.\" and limitations under the License. 13*bbf21555SRichard Lowe.\" 14*bbf21555SRichard Lowe.\" When distributing Covered Code, include this CDDL HEADER in each 15*bbf21555SRichard Lowe.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*bbf21555SRichard Lowe.\" If applicable, add the following below this CDDL HEADER, with the 17*bbf21555SRichard Lowe.\" fields enclosed by brackets "[]" replaced with your own identifying 18*bbf21555SRichard Lowe.\" information: Portions Copyright [yyyy] [name of copyright owner] 19*bbf21555SRichard Lowe.\" 20*bbf21555SRichard Lowe.Dd November 1, 2006 21*bbf21555SRichard Lowe.Dt HSFS 4FS 22*bbf21555SRichard Lowe.Os 23*bbf21555SRichard Lowe.Sh NAME 24*bbf21555SRichard Lowe.Nm hsfs 25*bbf21555SRichard Lowe.Nd High Sierra & ISO 9660 CD-ROM file system 26*bbf21555SRichard Lowe.Sh DESCRIPTION 27*bbf21555SRichard Lowe.Nm 28*bbf21555SRichard Loweis a file system type that allows users to access files on High Sierra or ISO 29*bbf21555SRichard Lowe9660 format CD-ROM disks from within the SunOS operating system. 30*bbf21555SRichard LoweOnce mounted, a 31*bbf21555SRichard Lowe.Nm 32*bbf21555SRichard Lowefile system provides standard read-only file system operations and semantics, 33*bbf21555SRichard Lowemeaning that you can read and list files in a directory on a High Sierra or ISO 34*bbf21555SRichard Lowe9660 CD-ROM and applications can use standard UNIX system calls on these files 35*bbf21555SRichard Loweand directories. 36*bbf21555SRichard Lowe.Pp 37*bbf21555SRichard LoweThis file system contains support for Rock Ridge, ISO 9660 Version 2 and Joliet 38*bbf21555SRichard Loweextensions. 39*bbf21555SRichard LoweThese extensions provide support for file names with a length of at least 207 40*bbf21555SRichard Lowebytes, but only Rock Ridge extensions 41*bbf21555SRichard Lowe.Pq with the exception of writability and hard links 42*bbf21555SRichard Lowecan provide file system semantics and file types as they are found in UFS. 43*bbf21555SRichard LoweThe presence of Rock Ridge, ISO 9660 Version 2, and Joliet is autodetected and 44*bbf21555SRichard Lowethe best-suitable available extension is used by the HSFS driver for file name 45*bbf21555SRichard Loweand attribute lookup. 46*bbf21555SRichard Lowe.Pp 47*bbf21555SRichard LoweIf your 48*bbf21555SRichard Lowe.Pa /etc/vfstab 49*bbf21555SRichard Lowefile contains a line similar to the following: 50*bbf21555SRichard Lowe.Bd -literal 51*bbf21555SRichard Lowe/dev/dsk/c0t6d0s0 - /hsfs hsfs - no ro 52*bbf21555SRichard Lowe.Ed 53*bbf21555SRichard Lowe.Pp 54*bbf21555SRichard Loweand 55*bbf21555SRichard Lowe.Pa /hsfs 56*bbf21555SRichard Loweexists, you can mount an 57*bbf21555SRichard Lowe.Nm 58*bbf21555SRichard Lowefile system with either of the following commands: 59*bbf21555SRichard Lowe.Bd -literal -offset indent 60*bbf21555SRichard Lowemount -F hsfs -o ro device-special directory-name 61*bbf21555SRichard Lowe.Ed 62*bbf21555SRichard Loweor 63*bbf21555SRichard Lowe.Bd -literal -offset indent 64*bbf21555SRichard Lowemount /hsfs 65*bbf21555SRichard Lowe.Ed 66*bbf21555SRichard Lowe.Pp 67*bbf21555SRichard LoweBy default, Rock Ridge extensions are used if available, otherwise ISO 9660 68*bbf21555SRichard LoweVersion 2, then Joliet are used. 69*bbf21555SRichard LoweIf neither extension is present HSFS defaults to the standard capabilities of 70*bbf21555SRichard LoweISO 9660. 71*bbf21555SRichard LoweSince so-called hybrid CD-ROMs that contain multiple extensions are possible, 72*bbf21555SRichard Loweyou can use the following mount options to deliberately disable the search for a 73*bbf21555SRichard Lowespecific extension or to force the use of a specific extension even if a 74*bbf21555SRichard Lowepreferable type is present: 75*bbf21555SRichard Lowe.Bd -literal 76*bbf21555SRichard Lowemount -F hsfs -o ro,nrr device-special directory-name 77*bbf21555SRichard Lowe.Ed 78*bbf21555SRichard Lowe.Pp 79*bbf21555SRichard LoweMount options are: 80*bbf21555SRichard Lowe.Bl -tag -width Ds 81*bbf21555SRichard Lowe.It rr 82*bbf21555SRichard LoweRequest HSFS to use Rock Ridge extensions, if present. 83*bbf21555SRichard LoweThis is the default behavior and does not need to be explicitly specified. 84*bbf21555SRichard Lowe.It nrr 85*bbf21555SRichard LoweDisable detection and use of Rock Ridge extensions, even if present. 86*bbf21555SRichard Lowe.It vers2 87*bbf21555SRichard LoweRequest HSFS to use ISO 9660 Version 2 extensions, even if Rock Ridge is 88*bbf21555SRichard Loweavailable. 89*bbf21555SRichard Lowe.It novers2 90*bbf21555SRichard LoweDisable detection and use of ISO 9660 Version 2 extensions. 91*bbf21555SRichard Lowe.It joliet 92*bbf21555SRichard LoweRequest HSFS to use Joliet extensions, even if Rock Ridge or ISO 9660 Version 2 93*bbf21555SRichard Loweextensions are available. 94*bbf21555SRichard Lowe.It nojoliet 95*bbf21555SRichard LoweDisable detection and use of Joliet extensions. 96*bbf21555SRichard Lowe.El 97*bbf21555SRichard Lowe.Pp 98*bbf21555SRichard LoweFiles on a High Sierra or ISO 9660 CD-ROM disk have names of the form 99*bbf21555SRichard Lowe.Pa filename.ext;versio , 100*bbf21555SRichard Lowewhere 101*bbf21555SRichard Lowe.Fa filename 102*bbf21555SRichard Loweand the optional 103*bbf21555SRichard Lowe.Fa ext 104*bbf21555SRichard Loweconsist of a sequence of uppercase alphanumeric characters 105*bbf21555SRichard Lowe.Po 106*bbf21555SRichard Loweincluding 107*bbf21555SRichard Lowe.Sq _ 108*bbf21555SRichard Lowe.Pc , 109*bbf21555SRichard Lowewhile the 110*bbf21555SRichard Lowe.Fa version 111*bbf21555SRichard Loweconsists of a sequence of digits, representing the version number of the file. 112*bbf21555SRichard Lowe.Nm 113*bbf21555SRichard Loweconverts all the uppercase characters in a file name to lowercase, and truncates 114*bbf21555SRichard Lowethe 115*bbf21555SRichard Lowe.Sq ; 116*bbf21555SRichard Loweand version information. 117*bbf21555SRichard LoweIf more than one version of a file is present on the CD-ROM, only the file with 118*bbf21555SRichard Lowethe highest version number is accessible. 119*bbf21555SRichard Lowe.Pp 120*bbf21555SRichard LoweConversion of uppercase to lowercase characters may be disabled by using the 121*bbf21555SRichard Lowe.Fl o 122*bbf21555SRichard Lowe.Ar nomaplcase 123*bbf21555SRichard Loweoption to 124*bbf21555SRichard Lowe.Xr mount 8 . 125*bbf21555SRichard LoweSee 126*bbf21555SRichard Lowe.Xr mount_hsfs 8 . 127*bbf21555SRichard Lowe.Pp 128*bbf21555SRichard LoweIf the CD-ROM contains Rock Ridge, ISO 9660 version 2 or Joliet extensions, the 129*bbf21555SRichard Lowefile names and directory names may contain any character supported under 130*bbf21555SRichard Lowe.Xr UFS 4FS . 131*bbf21555SRichard LoweThe names may also be upper and/or lower case and are case sensitive. 132*bbf21555SRichard LoweFile name lengths can be as long as those of 133*bbf21555SRichard Lowe.Xr UFS 4FS . 134*bbf21555SRichard Lowe.Pp 135*bbf21555SRichard LoweFiles accessed through 136*bbf21555SRichard Lowe.Nm 137*bbf21555SRichard Lowehave mode 555 138*bbf21555SRichard Lowe.Pq owner, group and world readable and executable , 139*bbf21555SRichard Loweuid 0 and gid 3. If a directory on the CD-ROM has read permission, 140*bbf21555SRichard Lowe.Nm 141*bbf21555SRichard Lowegrants execute permission to the directory, allowing it to be searched. 142*bbf21555SRichard Lowe.Pp 143*bbf21555SRichard LoweWith Rock Ridge extensions, files and directories can have any permissions that 144*bbf21555SRichard Loweare supported on a 145*bbf21555SRichard Lowe.Xr UFS 4FS 146*bbf21555SRichard Lowefile system. 147*bbf21555SRichard LoweHowever, under all write permissions, the file system is read-only, with 148*bbf21555SRichard Lowe.Er EROFS 149*bbf21555SRichard Lowereturned to any write operations. 150*bbf21555SRichard Lowe.Pp 151*bbf21555SRichard LoweLike High Sierra and ISO 9660 CD-ROMs, HSFS supports only regular files and 152*bbf21555SRichard Lowedirectories. 153*bbf21555SRichard LoweA Rock Ridge CD-ROM can support regular files, directories, and symbolic links, 154*bbf21555SRichard Loweas well as device nodes, such as block, character, and FIFO. 155*bbf21555SRichard Lowe.Sh EXAMPLES 156*bbf21555SRichard Lowe.Sy Example 1 157*bbf21555SRichard LoweSample Display of File System Files 158*bbf21555SRichard Lowe.Pp 159*bbf21555SRichard LoweIf there is a file 160*bbf21555SRichard Lowe.Pa BIG.BAR 161*bbf21555SRichard Loweon a High Sierra or ISO 9660 format CD-ROM it will show up as 162*bbf21555SRichard Lowe.Pa big.bar 163*bbf21555SRichard Lowewhen listed on a 164*bbf21555SRichard Lowe.Nm 165*bbf21555SRichard Lowefile system. 166*bbf21555SRichard Lowe.Pp 167*bbf21555SRichard LoweIf there are three files 168*bbf21555SRichard LowePa BAR.BAZ;1 , 169*bbf21555SRichard LowePa BBAR.BAZ;2 , 170*bbf21555SRichard Loweand 171*bbf21555SRichard Lowe.Pa BAR.BAZ;3 172*bbf21555SRichard Loweon a High Sierra or ISO 9660 format CD-ROM, only the file 173*bbf21555SRichard Lowe.Pa BAR.BAZ;3 174*bbf21555SRichard Lowewill be accessible. 175*bbf21555SRichard LoweIt will be listed as 176*bbf21555SRichard Lowe.Pa bar.baz . 177*bbf21555SRichard Lowe.Sh DIAGNOSTICS 178*bbf21555SRichard Lowe.Bl -tag -width Ds 179*bbf21555SRichard Lowe.It "hsfs: Warning: the file system... does not conform to the ISO-9660 spec" 180*bbf21555SRichard LoweThe specific reason appears on the following line. 181*bbf21555SRichard LoweYou might be attempting to mount a CD-ROM containing a different file system, 182*bbf21555SRichard Lowesuch as 183*bbf21555SRichard Lowe.Xr UFS 4FS 184*bbf21555SRichard Lowe.It "hsfs: Warning: the file system... contains a file [with an] unsupported" 185*bbf21555SRichard Lowetype" 186*bbf21555SRichard LoweThe 187*bbf21555SRichard Lowe.Nm 188*bbf21555SRichard Lowefile system does not support the format of some file or directory on the CD-ROM, 189*bbf21555SRichard Lowefor example a record structured file. 190*bbf21555SRichard Lowe.It "hsfs: hsnode table full, %d nodes allocated" 191*bbf21555SRichard LoweThere are not enough 192*bbf21555SRichard Lowe.Nm 193*bbf21555SRichard Loweinternal data structure elements to handle all the files currently open. 194*bbf21555SRichard LoweThis problem may be overcome by adding a line of the form 195*bbf21555SRichard Lowe.Ql set hsfs:nhsnode=number 196*bbf21555SRichard Loweto the 197*bbf21555SRichard Lowe.Pa /etc/system 198*bbf21555SRichard Lowesystem configuration file and rebooting. 199*bbf21555SRichard LoweSee 200*bbf21555SRichard Lowe.Xr system 5 . 201*bbf21555SRichard Lowe.El 202*bbf21555SRichard Lowe.Sh SEE ALSO 203*bbf21555SRichard Lowe.Xr vfstab 5 , 204*bbf21555SRichard Lowe.Xr mount 8 , 205*bbf21555SRichard Lowe.Xr mount_hsfs 8 206*bbf21555SRichard Lowe.Pp 207*bbf21555SRichard Lowe.Rs 208*bbf21555SRichard Lowe.%A N. V. Phillips 209*bbf21555SRichard Lowe.%A Sony Corporation 210*bbf21555SRichard Lowe.%T System Description Compact Disc Digital Audio, ("Red Book") 211*bbf21555SRichard Lowe.Re 212*bbf21555SRichard Lowe.Rs 213*bbf21555SRichard Lowe.%A N. V. Phillips 214*bbf21555SRichard Lowe.%A Sony Corporation 215*bbf21555SRichard Lowe.%T System Description of Compact Disc Read Only Memory, ("Yellow Book") 216*bbf21555SRichard Lowe.Re 217*bbf21555SRichard Lowe.Rs 218*bbf21555SRichard Lowe.%T Volume and File Structure of CD-ROM for Information Interchange 219*bbf21555SRichard Lowe.%N ISO 9660:1988(E) 220*bbf21555SRichard Lowe.Re 221*bbf21555SRichard Lowe.Sh WARNINGS 222*bbf21555SRichard LoweDo not physically eject a CD-ROM while the device is still mounted as a 223*bbf21555SRichard Lowe.Nm 224*bbf21555SRichard Lowefile system. 225*bbf21555SRichard Lowe.Pp 226*bbf21555SRichard LoweUnder MS-DOS 227*bbf21555SRichard Lowe.Pq for which CD-ROMs are frequently targeted , 228*bbf21555SRichard Lowefiles with no extension may be represented either as: 229*bbf21555SRichard Lowe.Pa filename\&. 230*bbf21555SRichard Loweor 231*bbf21555SRichard Lowe.Pa filename 232*bbf21555SRichard Lowethat is, with or without a trailing period. 233*bbf21555SRichard LoweThese names are not equivalent under UNIX systems. 234*bbf21555SRichard LoweFor example, the names: 235*bbf21555SRichard Lowe.Pa BAR\&. 236*bbf21555SRichard Loweand 237*bbf21555SRichard Lowe.Pa BAR 238*bbf21555SRichard Loweare not names for the same file under the UNIX system. 239*bbf21555SRichard LoweThis may cause confusion if you are consulting documentation for CD-ROMs 240*bbf21555SRichard Loweoriginally intended for MS-DOS systems. 241*bbf21555SRichard Lowe.Pp 242*bbf21555SRichard LoweUse of the 243*bbf21555SRichard Lowe.Fl o 244*bbf21555SRichard Lowe.Ar notraildot 245*bbf21555SRichard Loweoption to 246*bbf21555SRichard Lowe.Xr mount 8 247*bbf21555SRichard Lowemakes it optional to specify the trailing dot. 248*bbf21555SRichard LoweSee 249*bbf21555SRichard Lowe.Xr mount_hsfs 8 . 250*bbf21555SRichard Lowe.Sh NOTES 251*bbf21555SRichard LoweNo translation of any sort is done on the contents of High Sierra or ISO 9660 252*bbf21555SRichard Loweformat CD-ROMs; only directory and file names are subject to interpretation by 253*bbf21555SRichard Lowe.Nm . 254