xfs
[Top] [All Lists]

Re: How to find the inodes in XFS

To: Felipe Monteiro de Carvalho <felipemonteiro.carvalho@xxxxxxxxx>
Subject: Re: How to find the inodes in XFS
From: Eric Sandeen <sandeen@xxxxxxxxxxx>
Date: Sun, 27 Apr 2014 11:07:02 -0500
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CACyNnZMgSYdC+-=M6hYarAAUEZexc=HwD4Tn2AnO2DP=vGN6Hw@xxxxxxxxxxxxxx>
References: <CACyNnZMtP87y6VHum+J4xKEZqaYp2YERVnt3YuaCmeiZBmMTzQ@xxxxxxxxxxxxxx> <5359912A.70603@xxxxxxxxxxx> <CACyNnZPV89C87DggE4fiJX+_r3zh1hKhcX3ExmXRzpLLhWJ6CQ@xxxxxxxxxxxxxx> <535AE19D.8@xxxxxxxxxxx> <CACyNnZPzJGCQf5FYm+Oqkw5U3Ggm8wQd5LKC5Jnwiyksa-K1OA@xxxxxxxxxxxxxx> <CACyNnZMgSYdC+-=M6hYarAAUEZexc=HwD4Tn2AnO2DP=vGN6Hw@xxxxxxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
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

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