public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Sergey Stepanov <g65434.2@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: Question about AGFL
Date: Fri, 19 Oct 2012 08:13:11 +1100	[thread overview]
Message-ID: <20121018211311.GV2739@dastard> (raw)
In-Reply-To: <CAGNmme5p0k5zoNufs2040Aim3mkP_q4pP7z98WoRRkhdrf0JDw@mail.gmail.com>

On Thu, Oct 18, 2012 at 07:27:09PM +0400, Sergey Stepanov wrote:
> Hi.
> 
> I have a device with XFS on it and if I run xfs_db on it, I get the
> following:
> 
> xfs_db> agf 0
> xfs_db> p
> magicnum = 0x58414746
> versionnum = 1
> seqno = 0
> length = 6553344
> bnoroot = 19432
> cntroot = 20689
> bnolevel = 1
> cntlevel = 1
> flfirst = 0
> fllast = 3
> flcount = 4
> freeblks = 6529632
> longest = 6522442
> btreeblks = 0
> xfs_db> agfl 0
> xfs_db> p
> bno[0-127] = 0:1 1:2 2:3 3:4
> 
> As you can see, AGFL contains block numbers 1-4.
> 
> As far as I understand, blocks 1-3 contain roots for inode and free space
> trees, so it seems really suspicious to me that they are listed in free
> list.

Roots of the freespace btrees are at blocks:

> bnoroot = 19432
> cntroot = 20689

Root blocks move around, because the are reallocated during splits
change during merges.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

      reply	other threads:[~2012-10-18 21:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-18 15:27 Question about AGFL Sergey Stepanov
2012-10-18 21:13 ` Dave Chinner [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=20121018211311.GV2739@dastard \
    --to=david@fromorbit.com \
    --cc=g65434.2@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox