[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prom-libc vfs design




> but as benh pointed out i want to implement the standard networking
> interface as well, so we can do tftp, nfs etc.

You probably need only a very small subset of it though. The big thing
beeing: do you want TCP or not ? If you don't, then you can do something
very simple that is plenty enough for tftp & nfs on an UDP basis.

If you want TCP, it becomes more complex and we can't really rely on
later OF own TCP implementation.

> Sun OF has a sync.  but you are correct that i don't implement any
> buffering in stdio.  i don't consider prom-libc an OS, so that level
> of performance optimization is not necessary.  i implemented fflush()
> for compatiblity reasons (some code in yaboot will be shared with
> ybin, so i try to keep things as complete as possible, without getting
> too silly).
> 
> > - It's probably easiest to insist that the filesystems only read/write
> >   blocks, and allow the upper layer to handle smaller chunks.
> 
> no i think this would be problematic. 

The probleme here is that your low level native blk size can be
different than your filesystem requested block size, so you need some
level of adaptation in between

Ben.