lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <23904f640907130803w20089c79md6f6ceef54ff8f8e@mail.gmail.com>
Date:	Mon, 13 Jul 2009 08:03:26 -0700
From:	Manuel Benitez <rickyb@...gle.com>
To:	Andreas Dilger <adilger@....com>
Cc:	linux-ext4@...r.kernel.org
Subject: Re: Tool to view extent metadata

Andreas,

Thank you for the reply. I wrote a program that uses FIEMAP to see
what I could get from it. It gives the same information that you can
extract from FIBMAP except that it is much more efficient (one ioctl
call per extent rather than one call per block). Unfortunately, it
does not give much insight into the structure of the metadata, so
there is no way to tell how efficiently the metadata represents the
file (depth of extent tree, number of internal and leaf nodes, etc.).

-Ricky

On Thu, Jul 9, 2009 at 3:55 PM, Andreas Dilger<adilger@....com> wrote:
> On Jul 09, 2009  15:17 -0700, Manuel Benitez wrote:
>> I'm currently evaluating the ext4 allocator and one thing I've come
>> across is the lack of a tool that displays the exact structure of the
>> extents making up a file. I've found plenty of tools that will tell me
>> how many contiguous segments a file contains, but nothing so far to
>> let me see the actual makeup of the extents that map the inode to the
>> blocks that comprise the file. Have I just missed something obvious,
>> or would this be something worth me spending some time doing?
>>
>> If so, one option would be to either modify the stat command or add a
>> similar command in debugfs to show the extents from the roots through
>> the root down to the leafs. Anyone have preferences or opinions?
>
> The "filefrag" tool in recent e2fsprogs should provide such information,
> using the FIEMAP ioctl to extract extent information from the kernel.
>
> Cheers, Andreas
> --
> Andreas Dilger
> Sr. Staff Engineer, Lustre Group
> Sun Microsystems of Canada, Inc.
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ