Skip to contentSkip to conversation

File system implementation

DISCUSSION Dibyayan Chakraborty 4 participants 4 messages May 25, 2013 – May 27, 2013

lore
Share & tools
lore
#0 lore raw

Hi,
I want to implement a file system and integrate with my system. Now first i have to implement the code for disk-formatting(like populating the super_block , root inode etc). I want to see the source code for the ext3 file system for this purpose.

Please tell me which file in the kernel source contains the implementation.

#1 lore raw
Quoted 9 lines · Dibyayan Chakraborty

Hi,
I want to implement a file system and integrate with my system. Now first i have to implement the code for disk-formatting(like populating the super_block , root inode etc). I want to see the source code for the
ext3 file system for this purpose.

Please tell me which file in the kernel source contains the implementation.

In general the kernel doesn't create the things. Mkfs does, so you need the source to mkfs.ext3.

Greg

Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
#2 lore raw
In reply to Dibyayan Chakraborty
Quoted 9 lines · Dibyayan Chakraborty

Hi,
I want to implement a file system and integrate with my system. Now first i have to implement the code for disk-formatting(like populating the super_block , root inode etc). I want to see the source code for the ext3 file system for this purpose.

Please tell me which file in the kernel source contains the implementation.

I did the same thing few days back and asked the same question few days back :)

It is very simple. All you need is to codify your structs. Then write a simple mkfs-yourfs.c which will fopen the given input file, write (by type casting to a char *) the struct pointer which contains your filesystem structure and then closes the file. It is as simple as that :)

All the best.

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

#3 lore raw
In reply to Dibyayan Chakraborty
Quoted 11 lines · Dibyayan Chakraborty

Hi,
I want to implement a file system and integrate with my system. Now first i have to implement the code for disk-formatting(like populating the super_block , root inode etc). I want to see the source code for the ext3 file system for this purpose.

Please tell me which file in the kernel source contains the implementation.

You can start looking for e2fsprogs. You can find the details out there regarding the file-system formatting etc.

Quoted 6 lines

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130527/d18527bf/attachment.html