<br>
1) Given a virtual inode, how do I get the block list associated to it?<br>
I tried to convert the inode to an ext3_inode_info using EXT3_I(), but I<br>
can't find the block list there.<br>
<br>block list is in the ext3_inode_info struct: <br><br>struct ext3_inode_info {<br>    __le32    i_data[15];    /* this is block list */<br>    __u32    i_flags;<br>.......<br>};<br><br>and i do'nt know the second question.<br>

<br><div class="gmail_quote">2009/6/6 Donato Capitella <span dir="ltr"><<a href="mailto:d.capitella@tin.it">d.capitella@tin.it</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi there,<br>
I just started hacking the linux kernel. I need to know how to do 2<br>
things:<br>
<br>
2) Given a block number, how do I write data to that block? Is there any<br>
function like write_to_block(int block_n, char *buf, int bytes) or<br>
something?<br>
<br>
Thank you in advance, I'm young and this is my first approach to kernel<br>
programming and don't know where to find documentation.<br>
<br>
Donato Capitella<br>
<br>
_______________________________________________<br>
Ext3-users mailing list<br>
<a href="mailto:Ext3-users@redhat.com">Ext3-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ext3-users" target="_blank">https://www.redhat.com/mailman/listinfo/ext3-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Sucan<br>