initrd fs implementation?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
casnix
Member
Member
Posts: 67
Joined: Fri Jan 14, 2011 7:24 pm

initrd fs implementation?

Post 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
You are a computer.
~ MCS ~
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: initrd fs implementation?

Post 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
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
User avatar
casnix
Member
Member
Posts: 67
Joined: Fri Jan 14, 2011 7:24 pm

Re: initrd fs implementation?

Post by casnix »

Okay, thats cool. Thank you
You are a computer.
~ MCS ~
Post Reply