From: Dave Chinner <david@fromorbit.com>
To: xfs@oss.sgi.com
Subject: Re: Map a disk LBA to filename?
Date: Thu, 30 Oct 2008 16:23:09 +1100 [thread overview]
Message-ID: <20081030052309.GM17077@disturbed> (raw)
In-Reply-To: <20081028093827.GA12133@kyra>
On Tue, Oct 28, 2008 at 10:38:27AM +0100, 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
I think all of you need to know about the "convert" command ;)
e.g. to do the above conversion correctly:
xfs_db> convert daddr 660 fsb
0x52 (82)
The xfs_db man page tells you all the different formats that can
be converted between. The convert command automatically takes into
account the geometry of the filesystem where appropriate (e.g.
filesystem block size).
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2008-10-30 5:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-27 11:20 Map a disk LBA to filename? Carsten Aulbert
2008-10-27 11:49 ` Dave Chinner
2008-10-27 12:31 ` Carsten Aulbert
2008-10-27 13:03 ` Michal Soltys
2008-10-27 13:54 ` Carsten Aulbert
2008-10-27 15:56 ` Michal Soltys
2008-10-27 23:35 ` Dave Chinner
2008-10-28 7:11 ` Carsten Aulbert
2008-10-28 7:21 ` Dave Chinner
2008-10-28 7:38 ` Carsten Aulbert
2008-10-28 7:52 ` KELEMEN Peter
2008-10-28 9:14 ` Carsten Aulbert
2008-10-28 9:38 ` KELEMEN Peter
2008-10-28 9:52 ` Justin Piszcz
2008-10-30 5:23 ` Dave Chinner [this message]
2008-10-28 9:51 ` Michal Soltys
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081030052309.GM17077@disturbed \
--to=david@fromorbit.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox