All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: Felipe Monteiro de Carvalho <felipemonteiro.carvalho@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: How to find the inodes in XFS
Date: Sun, 27 Apr 2014 11:07:02 -0500	[thread overview]
Message-ID: <535D2B26.4010702@sandeen.net> (raw)
In-Reply-To: <CACyNnZMgSYdC+-=M6hYarAAUEZexc=HwD4Tn2AnO2DP=vGN6Hw@mail.gmail.com>

On 4/27/14, 10:53 AM, Felipe Monteiro de Carvalho wrote:
> Maybe my flaw is that to get the disk position I simply multiply the
> block number by the size of a block ... I tryed to use
> XFS_FSB_TO_DADDR instead but it gives 64 for block nr 8, which doesn't
> make much sense, I'd expect 0x8000

if you have 4k blocks, filesystem block #8 is at 32k, or 64 512-byte
"daddrs" so that is correct.  A "DADDR" is in 512-byte units.

-Eric

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2014-04-27 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CACyNnZMtP87y6VHum+J4xKEZqaYp2YERVnt3YuaCmeiZBmMTzQ@mail.gmail.com>
     [not found] ` <5359912A.70603@sandeen.net>
     [not found]   ` <CACyNnZPV89C87DggE4fiJX+_r3zh1hKhcX3ExmXRzpLLhWJ6CQ@mail.gmail.com>
     [not found]     ` <535AE19D.8@sandeen.net>
2014-04-26  2:21       ` How to find the inodes in XFS Felipe Monteiro de Carvalho
2014-04-27 15:53         ` Felipe Monteiro de Carvalho
2014-04-27 16:07           ` Eric Sandeen [this message]

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=535D2B26.4010702@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=felipemonteiro.carvalho@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.