How to verify block numbers of file ?
Abhijit Hoskeri
abhijithoskeri at gmail.com
Sun Feb 20 09:02:16 EST 2011
On Sun, Feb 20, 2011 at 6:52 PM, kashish bhatia <koolest77 at gmail.com> wrote:
> Is there any method/command/utility to know what are the block numbers which
> are allocated to a file in ext2 fs?
>
The FIBMAP ioctl gives you the block number give an integer, which is
the nth block attached to the inode. It includes blocks allocated to
store indirect blocks too.
-Abhijit
More information about the Kernelnewbies
mailing list