Subject: re: weird kernfs behaviour.
To: Bill Studenmund <wrstuden@zembu.com>
From: matthew green <mrg@eterna.com.au>
List: tech-kern
Date: 12/14/2000 11:10:52
   On Sun, 10 Dec 2000, matthew green wrote:
   
   > kernfs on the sparc64 port has started not working for rootdev & rrootdev:
   > 
   > # mount -t kernfs /kern /kern
   > # ls -l /kern/rootdev
   > ls: /kern/rootdev: Bad file descriptor
   > # ls -l /kern/rrootdev
   > ls: /kern/rrootdev: No such file or directory
   > 
   > 
   > this only happens with the `miniroot' (which is just a normal GENERIC kernel,
   > not an md_root using one), when loaded on sd0b/wd0b.  if i boot from sd0a it
   > works just fine.  why this matters i don't understand...
   > 
   > 
   > perhaps a UBC thing?  i don't recall when it started happening but it doesn't
   > happen in 1.5 or anything a couple of months after the branch (when i last
   > did real work on the installer).
   
   I've seen rrootdev not work on i386 systems in the past, and I was never
   able to figure out why.
   
   I'd say put some printfs in the code which tries to find the root device,
   and see what comes up.

my initial failure with kernfs were to do with this -- i just needed to add
wd to chrtoblk[] and it started working properly.  that part of it works.  it
makes a call to kernfs_lookup(), that seems to work... but it still fails..


.mrg.