*BSD News Article 22332


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!network.ucsd.edu!mvb.saic.com!esosun.css.gov!seismo!uunet!news.moneng.mei.com!howland.reston.ans.net!agate!remarque.berkeley.edu!cuccia
From: cuccia@remarque.berkeley.edu (Nick Cuccia)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: NetBSD 0.9 won't read PTF CD-ROM
Date: 13 Oct 1993 20:26:18 GMT
Organization: Bump City Brewery and Barbecue, Berkeley, CA
Lines: 40
Message-ID: <29ho9a$3ja@agate.berkeley.edu>
References: <CEu567.2wI@festival.ed.ac.uk>
NNTP-Posting-Host: remarque.berkeley.edu

In article <CEu567.2wI@festival.ed.ac.uk>,
Richard Tobin <richard@castle.ed.ac.uk> wrote:
>I just bought the PTF-for-Unix-2 CD-ROMs, and I find that NetBSD 0.9 won't
>read all the directories.  Some directories work fine; others appear
>empty when I do, for example, "ls windows" and give an error if I do
>"cd windows; ls".
>
>The disk and drive seem to be OK, since the programs supplied with the
>CDs for reading them under systems which can't mount CDs can happily
>read the directories.
>
>Is this bug known/fixed?

I've mentioned this a number of times on the net.  It's not just with the PTF
cd; it happens with the InfoMagic cd that FTP software gave out at last year's
Interop.  This problem dates back to 386bsd 0.1; since I don't have a FreeBSD
system, so I'll leave it to somebody who does to determine whether the bug is
still there.

The problem is that files on ISO 9660 CDs can be accessed once mounted,
provided their inode number is less than some limit (it appears to be 81920,
but I can't tell for sure; doing an 'ls -iR' on a mounted CD's root should
give you an idea of where that limit is--it will list some dirs with inodes
> 81920, but not traverse them).

Rich Morin provides a workaround in the form of a program which reads the
raw device for the CD and provides access that way.  It's written for A/UX;
I've ported it for 386BSD 0.1, am running it under NetBSD 0.9, and can post
the diffs for it when I get home.  

Anyways, you can access files through this mechanism that you can't through
mounting the disk.  This points to the bug being somewhere in the isofs
vnode interface code.

--Nick
-- 
===============================================================================
                                Nick Cuccia
 cuccia@talamasca.berkeley.ca.us                  cuccia@remarque.berkeley.edu
===============================================================================