Subject: Re: devopen() in standalone programs.
To: None <M.Drochner@fz-juelich.de>
From: Simon Burge <simonb@netbsd.org>
List: tech-kern
Date: 11/08/1999 13:57:58
Matthias Drochner wrote:

> 
> simonb@netbsd.org said:
> > Is the correct thing for devopen() to remove a leading '/' if it's
> > there
> 
> I wouldn't do it - at least not a single "/". It's needed to
> open the root directory (for "ls"). Where is the point in forcibly
> removing it?

To get things working :-)

On the pmax, a valid boot path is either like rz(0,0,0)netbsd or
3/rz0/netbsd.  The pmax devopen() will return either "netbsd" (with
"rz(0,0,0) as the device) or "/netbsd" (with "3/rz0" as the device) in
these cases.  bootxx.c then tries to load the filename "boot", which
turns out to be "boot" in the first case and "/boot" in the second.
Here's where UFS works and ISOfs fails :-(

If I remove the '/' in the "3/rz0/netbsd" case, then I can have bootxx.c
open "/boot" and the right thing happens in either case.

> > or for cdfs to ignore a leading '/'?
> 
> I don't know the CDFS details, but it would be reasonable imho.
> (but it should still be possible to open the root directory)

Do we have any existing SA code that can do an ls on a ISO filesystem?
I can really only test this on a pmax, and even then I've just been
dumping ISO filesystems to a disk because I don't have access to a
burner...

Simon.