[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: User space tool to extract ext3 inode information
- From: Aravindan Raghuveer <aravindan_raghu yahoo com>
- To: Andreas Dilger <adilger clusterfs com>
- Cc: ext3-users redhat com
- Subject: Re: User space tool to extract ext3 inode information
- Date: Mon, 16 Apr 2007 12:27:24 -0700 (PDT)
Hi Andreas,
Thanks a bunch for your quick response! I checked the
command and the output is terms of filesytem block
numbers [mine seems to have a 4K block size]. I can
convert this into LBAs in my perl script.
Thanks again.
Regards,
-Aravind.
--- Andreas Dilger <adilger clusterfs com> wrote:
> On Apr 16, 2007 11:17 -0700, Aravindan Raghuveer
> wrote:
> > I need to write a user space tool that can dump
> > logical block addresses used by every file in a
> ext3
> > file system. For example, if file foo uses LBAs
> 2,3
> > and file bar uses LBAs 100,102,156, then the
> ouptut
> > should read:
> >
> > FILENAME LBAs
> > foo 2, 3
> > bar 100,102,156
> >
> > Is there a tool that exists that can do this? If
> not,
> > what would be a good strategy to write this tool.
> I am
> > learning filesystem programming and would really
> > appreciate any pointers.
>
> "debugfs -c -R 'stat /path/to/file' /dev/XXX"
> reports, among other things
> the blocks used by that file.
>
> Cheers, Andreas
> --
> Andreas Dilger
> Principal Software Engineer
> Cluster File Systems, Inc.
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]