<br><br><div class="gmail_quote">On Mon, Apr 2, 2012 at 5:59 PM, Pritam Bankar <span dir="ltr"><<a href="mailto:pritambankar1988@gmail.com">pritambankar1988@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
May I know what is
<span>e4_inode</span> ?<div><br></div><div>Thanks,</div><div>Pritam<br><br><div class="gmail_quote"><div><div class="h5">On Mon, Mar 12, 2012 at 6:51 PM, Ganesh Patil <span dir="ltr"><<a href="mailto:patil.ganesh170@gmail.com" target="_blank">patil.ganesh170@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">Hello,<br><br> I have printed the i_blocks[EXT4_N_BLOCKS] filed from ext4_inode structure. of my file (a.txt);<br>
<br>code:<br> ret= ext4_get_inode_loc(d_inode1, &iloc);<br> e4_inode= ext4_raw_inode(&iloc);<br>
for(i=0;i<5;i++)<br> {<br> printk(KERN_INFO "%d",e4_inode->i_block[i]);<br> }<br><br> I got the following result.:<br><br> 127754<br> 4<br> 0<br> 0<br> 1<br> 8705<br><br> what is the 127754 (Address of extent or data block)?<br>
what is 8705 &1 ?<span><font color="#888888"><br><br clear="all"><br>-- <br>Regards,<br>Ganesh Patil.<br><br>
</font></span><br></div></div>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><br>Pritam Bankar<br>
</font></span></div>
</blockquote></div><br><br clear="all">Above e4_inode field is the pointer of type struct ext4_inode i.e on disk structure of ext4 inode. i.e<br><br> Struct ext4_inode *e4_inode=ext4_raw_inode(&iloc);<br><br> Sir, but for above question I got answer. because i copied first 12 byte of i_block[..] to ext4_header structure and next 12 bytes in to ext4_extent.so from that I got actual physical block numbers.<br>
<br> struct ext4_extent_header *eeh = (struct ext4_extent_header*)EXT4_I(d_inode1)->i_data; <br>struct ext4_extent *eex=eex = EXT_FIRST_EXTENT(eeh);<br>-- <br>Regards,<br>Ganesh Patil.<br><br>