File system implementation
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.
Dibyayan Chakraborty <dib.coolguy@gmail.com> wrote:
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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.
On Sat, May 25, 2013 at 10:47 AM, Dibyayan Chakraborty <dib.coolguy@gmail.com> wrote:
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
On Sat, May 25, 2013 at 10:47 AM, Dibyayan Chakraborty < dib.coolguy@gmail.com> wrote:
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.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (4)
-
Dibyayan Chakraborty -
Greg Freemyer -
Sankar P -
Vineet Agarwal