Subject: Re: case (in)sensitivity on CD9660 file system
To: Richard Pennington <rich@rdp.introl.com>
From: Jaromir Dolecek <dolecek@ics.muni.cz>
List: current-users
Date: 12/05/1997 16:34:53
Richard Pennington wrote:
> Hi,
> 
> I suspect it may be your CD creation program. I use a (slightly hacked)
> version of mkisofs to create CD's with all files (including directories)
> having their original case.
> 
> The resulting CD's retain their filename's case under NetBSD (1.3BETA) and
> Linux in addition to working just fine under Windows95.
> 
> -Rich
> 

Hmm, strange ... I'm using 1.3_BETA too and I had to "solve" this
problem by commenting out some code in src/sys/isofs/cd9660/cd9660_util.c,
in function isofntrans() (that's how kernel hackers are born ;-)). 
As I understand things, it cannot work in "normal" kernel. IMHO
I'm right, because comment number 3  in
src/sys/isofs/cd9660/TODO.hibler says:

"3. Seems like there should be a "notrans" or some such mount option to show
   filenames as they really are without lower-casing.  Does this make sense?"

Is Rock Ridge extension fully supported by NetBSD ? If yes, one
explanation of my problem could be that GEAR doesn't use Rock Ridge
or doesn't mark that CD is using it.  I tend to believe this, as
permissions on files are strange too (x bit is set even on regular
files). Linux failing to display contents of the CD is also supporting
this idea.

Anyway, I found out that Linux has solution for this. The CD must be mounted
with option "map=off".  The "x" flag isn't set for normal files under Linux.

I'm considering to implement my hack correct way. I'm not decided
whether to use Linux-style interface (i.e. use option map=n[ormal],
map=off) or something like option "notrans".  I personally like more the latter
one.  Any objections ?

BTW, mount gives very cryptic error message, when there is no
CD in track - it says: 
> mount -t cd9660 /dev/cd0a /cdrom
mount_cd9660: : Device not configured
I'll send it as PR later.

I mean my problem is MI, but anyway:

NetBSD 1.3_BETA (BELEG) #3: Fri Dec  5 15:31:04 MET 1997
.
cpu0: family 5 model 2 step c
cpu0: Intel Pentium (P54C) (586-class)
.
.
wdc1 at isa0 port 0x170-0x177 irq 15
atapibus1 at wdc1
Warning drive 0 returned 142/512 of indentify device data
cd0 at atapibus1 drive 0: <, , 38C11S10> type 5 cdrom removable

jd
-- 
Jaromir Dolecek <dolecek@ics.muni.cz>	http://www.ics.muni.cz/~dolecek/
-------------------------------------------------------------------------
It is better never to have been born.  But who among us has such luck?
One in a million, perhaps.