Page 1 of 1

initrd fs implementation?

Posted: Fri Jan 14, 2011 8:01 pm
by casnix
Im changing the way the Casnix OS 'is', by creating a unix system.

Currently, Casnix OS/II is the latest release, is written in assembly, and has no uefi support, no directory support, and runs on fat12.

Casnix OS 3 will be a unix system, and more modern (except with a tui).

I've come across a problem:

I've finished the heap, and now I need to implement an initrd with directories.  I've implemented a VFS without support for directories, but I honestly have no idea how to implement with directories.  I've taken a look at the code for some different linux kernels, but couldn't find (an open, easy) implementation of the vfs in the really early versions, and am weary of shifting through a current kernel, due to complexity.  Any ideas or tutorials?

I suppose I could use SFS, and (sarcasm) would really enjoy writing an SFS formatter...(kidding in case you didnt catch that).  SFS might be the disk (not initrd) image fs i will use, but not for init ram

Re: initrd fs implementation?

Posted: Sat Jan 15, 2011 7:35 am
by gravaera
'Sup:

http://wiki.osdev.org/Hierarchical_VFS_Theory

There you go :) That should help with your VFS design questions. For the initrd thing, it should be simple enough with some thought.

--All the best,
gravaera

Re: initrd fs implementation?

Posted: Sat Jan 15, 2011 6:47 pm
by casnix
Okay, thats cool. Thank you