xfs
[Top] [All Lists]

Re: Map a disk LBA to filename?

To: xfs@xxxxxxxxxxx
Subject: Re: Map a disk LBA to filename?
From: KELEMEN Peter <Peter.Kelemen@xxxxxxx>
Date: Tue, 28 Oct 2008 10:38:27 +0100
In-reply-to: <4906D80F.9050500@xxxxxxxxxx>
Mail-followup-to: xfs@xxxxxxxxxxx
Organization: CERN European Laboratory for Particle Physics, Switzerland
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>
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
* 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
is.”

HTH,
Peter

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

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