<br><br><div class="gmail_quote">On Sun, Feb 20, 2011 at 7:32 PM, Abhijit Hoskeri <span dir="ltr"><<a href="mailto:abhijithoskeri@gmail.com">abhijithoskeri@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia <<a href="mailto:koolest77@gmail.com">koolest77@gmail.com</a>> wrote:<br>
> Is there any method/command/utility to know what are the block numbers which<br>
> are allocated to a file in ext2 fs?<br>
><br>
<br>
</div>The FIBMAP ioctl gives you the block number give an integer, which is<br>
the nth block attached to the inode. It includes blocks allocated to<br>
store indirect blocks too.<br>
<font color="#888888"><br>
-Abhijit<br>
</font></blockquote></div><br><br>What exactly FIBMAP is and how to use it ?<br><br>For instance , if I made my own module and I am using ioctl. Then how should I use it?<br><br>Is it a function?<br><br clear="all"><br>
-- <br><span style="color: rgb(51, 51, 51);">Regards,</span><br>Kashish<br><br>