Thread (4 messages) 4 messages, 4 authors, 2013-05-27

File system implementation

From: Sankar P <hidden>
Date: 2013-05-26 18:23:12

On Sat, May 25, 2013 at 10:47 AM, Dibyayan Chakraborty
[off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help