xfs
[Top] [All Lists]

How to find the inodes in XFS

To: xfs@xxxxxxxxxxx
Subject: How to find the inodes in XFS
From: Felipe Monteiro de Carvalho <felipemonteiro.carvalho@xxxxxxxxx>
Date: Thu, 24 Apr 2014 19:09:08 -0300
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=v3mclePX4YW9daqsYEKq/SbM/uk6r+/T4b6Cix0lTQY=; b=F+Caxw+yYmH4vWc5oU7uHP92bgwXteZ2ZhSzRVa5ruJZQu4dEYd3K/daLKnspMK60v PG3SjreO7i9AMujWW4BPTVt2eU9foA4hLU49LiZF7H3wtXihiafXlMYyH0zsDCuUcTO7 05RH8omrJJrY/Gv5uUkbrCCXmyWhB2r6cRvYo5csKm54zj/T7Y43Hm8PrO0EbH74rdVe +E8VQ6WATf8OAPqy+EOhqcJzbc6LKySxEJ+b/XAFqrK+v6QeDXKYYfNp5joJxvABCKGU TWIIWzJSrbIwxfdjHSkZRWNomyC5rZoUNT47yh2uySylC6FzhMeBoDib+3i1bM41zngr EhPQ==
Hello,

I am writing an application which reads XFS partitions, so I am trying
to understand the internal working of XFS. I read the documentation
here: 
http://www.dubeyko.com/development/FileSystems/XFS/xfs_filesystem_structure.pdf

But I am stuck at a particular point. To get to the inodes I see that
I should first read xfs_agi_t, no problem here, then its root field
points to a block which contains xfs_inobt_block_t + a sequence of
xfs_inobt_rec_t records and those records are supposed to show me
where the inodes are, but there is no field in xfs_inobt_rec_t such as
a block number =( Any idea how to get then the physical position in
the disk where the inodes are from xfs_inobt_block_t + a sequence of
xfs_inobt_rec_t?

thanks,
-- 
Felipe Monteiro de Carvalho

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