Re: Map a disk LBA to filename?

Justin Piszcz
2008-10-28T09:52:49Z

[-- Attachment #1: Type: TEXT/PLAIN, Size: 900 bytes --]

On Tue, 28 Oct 2008, KELEMEN Peter wrote:

> * Carsten Aulbert (carsten.aulbert@aei.mpg.de) [20081028 10:14]:
>
>> Is it possible that blocks != bsized_blocks?
>
> xfs_bmap(8) talks in basic blocks (512 bytes).
> 660 div 8 = 82, so try:
>
> blockget -b 82 -n
>
>> Sorry for these questions, but I'm quite lost and I have not
>> been able to find the answer in the man pages.
>
> The second paragraph of man xfs_bmap says:
>
> ?[...] All the file offsets and disk blocks are in units of
> 512-byte blocks, no matter what the filesystem?s block size
> is.?
>
> HTH,
> Peter
>
> --
> .+'''+. .+'''+. .+'''+. .+'''+. .+''
> Kelemen Péter / \ / \ Peter.Kelemen@cern.ch
> .+' `+...+' `+...+' `+...+' `+...+'
>
>

If you figure it out a little how-to would be nice :)

Justin.