Re: Map a disk LBA to filename?

KELEMEN Peter
2008-10-28T09:38:44Z

* 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
.+' `+...+' `+...+' `+...+' `+...+'