Subject: Re: kernfs borked?
To: Geoff Wing <gcw@pobox.com>
From: Simon Burge <simonb@NetBSD.org>
List: current-users
Date: 06/09/2006 17:54:19
Geoff Wing wrote:
> Heyla,
> is kernfs working for anyone these days? Seems to have died for me at
> least a few months back. Maybe I've a wonky config somewhere.
>
> Filesystem 1K-blocks Used Avail Capacity Mounted on
> kernfs 1 1 0 100% /kern
>
> % ls -l /kern/
> total 32
> -r--r--r-- 1 root wheel 11 Jun 9 14:32 boottime
> -r--r--r-- 1 root wheel 248 Jun 9 15:34 copyright
> -rw-r--r-- 1 root wheel 18 Jun 9 15:34 hostname
> -r--r--r-- 1 root wheel 4 Jun 9 15:34 hz
> -r--r--r-- 1 root wheel 20 Jun 9 15:34 loadavg
> -r--r--r-- 1 root wheel 32752 Jun 9 15:34 msgbuf
> -r--r--r-- 1 root wheel 5 Jun 9 15:34 pagesize
> -r--r--r-- 1 root wheel 7 Jun 9 15:34 physmem
> brw-r----- 1 root operator 0, 0 Apr 28 2003 rootdev
> crw-r----- 1 root operator 3, 0 Dec 21 2003 rrootdev
> -r--r--r-- 1 root wheel 18 Jun 9 15:34 time
> -r--r--r-- 1 root wheel 115 Jun 9 15:34 version
>
> % cat -v /kern/[a-qs-z]*
> %
>
> rootdev/rrootdev do seem to be working. Everything else is dead.
I had a quick look at this. All the read ops were converted to use some
splay tree thingy a while back, but the splay tree is never initialised.
There seems to be a heap of complexity there that's never worked. At
that stage, I gave up looking any further.
Simon.