Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jun 2003 13:48:11 -0700
From:      John-Mark Gurney <gurney_j@efn.org>
To:        sparc64@freebsd.org
Subject:   Re: OFWfs anyone?
Message-ID:  <20030613204811.GJ26285@funkthat.com>
In-Reply-To: <20030613195911.GT83610@procyon.firepipe.net>
References:  <20030613184024.GH26285@funkthat.com> <20030613195911.GT83610@procyon.firepipe.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Will Andrews wrote this message on Fri, Jun 13, 2003 at 12:59 -0700:
> On Fri, Jun 13, 2003 at 11:40:24AM -0700, John-Mark Gurney wrote:
> > I was wondering if anyone was interested in an ofwfs?  I have it pretty
> > much complete, except you can't open/close nodes yet and isn't too
> > dynamice.  It does use extattr to query the properties of each node.
> > 
> > /ofwfs/SUNW,UltraAX-e2/SUNW,UltraSPARC-IIe@0,0
> > /ofwfs/SUNW,UltraAX-e2/pci@1f,0/pci@1/display@6
> > /ofwfs/SUNW,UltraAX-e2/pci@1f,0/pci@1/video@5
> > /ofwfs/SUNW,UltraAX-e2/pci@1f,0/pci@1,1/usb@5,3
> > /ofwfs/SUNW,UltraAX-e2/pci@1f,0/pci@1,1/usb@5,3/mouse@1
> > 
> > bash-2.05b$ getextattr system banner-name /ofwfs/SUNW,UltraAX-e2
> > /ofwfs/SUNW,UltraAX-e2  Netra AX1105-500 (UltraSPARC-IIe 500MHz)
> > 
> > Should work find on ppc too.
> 
> How about using a sysctl tree instead of YAFS?

Because ofwdump already exists for that.

Also, the ofw tree lets you do such crazy things as open, close, read,
write, and seek on them which is kinda hard to do to on a sysctl node
(and much easier on an FS).

The only problem right now is that pseudofs doesn't let you open/etc
directories.  If we want to support this either we have to stick a nasty
file in the tree for EVERY node, or fix pseudofs to support opening
directories (which I think SHOULD work since the VFS layer has it's on
READDIR and doesn't need to open it like FFS).

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030613204811.GJ26285>