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