Printing logical address of block in ext4.

Manish Katiyar mkatiyar at gmail.com
Wed Mar 14 15:27:21 EDT 2012


On Wed, Mar 14, 2012 at 11:41 AM, Ganesh Patil
<patil.ganesh170 at gmail.com> wrote:
> Hello,
> I have to print logical addresses  of blocks of file from ext4 filesystem. I
> have array of  i_block[EXT4_N_BLOCKS].so how to fill objects of  struct
> ext4_extent_header (using first 12 byte of i_block) and  struct ext4_extent
> (using reminder bytes of i_block).

Use debugfs (from e2fsprogs)

-- 
Thanks -
Manish



More information about the Kernelnewbies mailing list