Hi Ajit,

On Mon, Aug 17, 2009 at 11:06 AM, ajit mote <[email protected]> wrote:

>
> Hello,
>
> I would like to know how file system structures are mapped to hard disk
> sector. My goal is to understand how file system is created on block device
> and how superblocks are mapped to hard disk sectors.
>

http://lxr.linux.no/#linux+v2.6.30.4/include/linux/bio.h#L62

As for super blocks,
you might want to have a look at:

Generic Super block:
http://lxr.linux.no/#linux+v2.6.30.4/include/linux/fs.h#L1306

Ext3 Super block:

http://lxr.linux.no/#linux+v2.6.30.4/include/linux/ext3_fs.h#L455

These superblocks gets written to the disk sectors.

Also, if you are interested in super block operation. Then you might want
took at these functions:
http://lxr.linux.no/#linux+v2.6.30.4/fs/ext3/super.c#L2986




>
> I am not sure whether I stated the problem precisely or not but if I did
> not described it properly then let me know.
>
> This is just an understanding sort of issue which I am looking for teaching
> purpose.
>
> Note:
>   Please free to change the subject line if not proper.
>

HTH,



>
> --
> Thanks & Regards,
> Ajit Subhash Mote
>
>
Regards,
Sandeep.

Reply via email to