OFWfs anyone?
John-Mark Gurney
gurney_j at efn.org
Fri Jun 13 13:47:44 PDT 2003
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 at 0,0
> > /ofwfs/SUNW,UltraAX-e2/pci at 1f,0/pci at 1/display at 6
> > /ofwfs/SUNW,UltraAX-e2/pci at 1f,0/pci at 1/video at 5
> > /ofwfs/SUNW,UltraAX-e2/pci at 1f,0/pci at 1,1/usb at 5,3
> > /ofwfs/SUNW,UltraAX-e2/pci at 1f,0/pci at 1,1/usb at 5,3/mouse at 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."
More information about the freebsd-sparc64
mailing list