[Top] [All Lists]

Re: Map a disk LBA to filename?

To: KELEMEN Peter <Peter.Kelemen@xxxxxxx>
Subject: Re: Map a disk LBA to filename?
From: Justin Piszcz <jpiszcz@xxxxxxxxxxxxxxx>
Date: Tue, 28 Oct 2008 05:52:29 -0400 (EDT)
Cc: xfs@xxxxxxxxxxx
In-reply-to: <20081028093827.GA12133@kyra>
References: <4905A3FB.6080709@xxxxxxxxxx> <20081027114945.GE4985@disturbed> <4905B48A.8010108@xxxxxxxxxx> <4905BC13.3030402@xxxxxxxxxxxxxx> <20081027233516.GG4985@disturbed> <4906BB32.8080403@xxxxxxxxxx> <20081028072105.GW4985@disturbed> <4906C164.6090704@xxxxxxxxxx> <4906D80F.9050500@xxxxxxxxxx> <20081028093827.GA12133@kyra>
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

On Tue, 28 Oct 2008, KELEMEN Peter wrote:

* Carsten Aulbert (carsten.aulbert@xxxxxxxxxx) [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


   .+'''+.         .+'''+.         .+'''+.         .+'''+.         .+''
Kelemen Péter     /       \       /       \     Peter.Kelemen@xxxxxxx
.+'         `+...+'         `+...+'         `+...+'         `+...+'

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

<Prev in Thread] Current Thread [Next in Thread>