Creating mkfs for my custom filesystem

Sankar P sankar.curiosity at gmail.com
Fri Mar 29 04:27:32 EDT 2013


Hi,

I am trying to write a simple filesystem to learn the basics of it.

I have decided on a simple layout for my filesystem where the first
block will be the super block and   will contain the version
information etc. The second block will contain the list of inodes.
Third block onwards will be data blocks. Each file can grow only up to
a single block size. Thrid block will represent the first file, fourth
block for the second file and so on. Directories will not be
supported.

Now I want to create a mkfs for my filesystem as mentioned above. But
I am not able to find out how to do the mkfs for my filesystem such
that the generic mkfs utility will understand my filesystem. What APIs
should I be using ?

Any help is appreciated. Thanks.

--
Sankar P
http://psankar.blogspot.com



More information about the Kernelnewbies mailing list