xfs
[Top] [All Lists]

Re: Reading directory entries from BMAP

To: cyjoyp <cyjoyp@xxxxxxxxx>
Subject: Re: Reading directory entries from BMAP
From: "Bhagi rathi" <jahnu77@xxxxxxxxx>
Date: Thu, 4 Oct 2007 09:52:52 -0700
Cc: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=CNCJag1HXM0wZ0dZD0Q959Zh0SK1fUm+qyQiQyn8OWk=; b=C6Z58XdX7bzaK7kioCqfpCicwY7TpXFLOcGmLg7BpeNUH+GQE2x2EkqEFjsQ8+CqkNGJYh5gngASjcQhbfiafdftuFoaPiSao1CnZWnrn6vUYHX9xrdgwYTQn8WCY+cfucWk0NkgG7r/6E3kv/q0E9FktcS1V04qbtGFTBwWKl8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qFNVM7fDs5rBe0uE2kBcibtFfx3GNo7XKtz1THrKRHvSliCKIIPowPI51Qge7O0SOkZ07Gc95HfUmb2xrlcdt9nt9QcW4LVisKVVfoOoOzcgC7WKCQU9rgwRdkxpEXDH4OVFXLDf3Ic0Q3H7elR92/42v/SJdHeRQjz1DVfmAwQ=
In-reply-to: <13040897.post@xxxxxxxxxxxxxxx>
References: <13040897.post@xxxxxxxxxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
br_startoff is starting offset of a file. The problem you are facing is not
clear to me.
XFS uses 16 bytes to represet start offset, length of the extent and then
start bloock
offset.

If you are interested with directories of XFS, the blocks that start from 0
offset and with
in the file address space of 32GB is the name space. After name space, you
have
lookup space and then free space manager for directories. Typically, reading
of
directory entries is reading of the total blocks reported by stat command. A
directory
can be in single block format, embedded in the inode itself, etc.

You are talking about bmbt_irec and then going towards directory entries.
This was
 not clear to me.

-Saradhi.

On 10/4/07, cyjoyp <cyjoyp@xxxxxxxxx> wrote:
>
>
> Hi there,
>           I am a beginner in learning XFS file system.. I have a doubt,
> dont
> know whether is silly..If you could help me with this...Thank you..
>
>    An extent is 128 bit in size and uses the following struct,
>
>         typedef struct xfs_bmbt_irec {
>                       xfs_fileoff_t              br_startoff;
>                       xfs_fsblock_t            br_startblock;
>                       xfs_filblks_t              br_blockcount;
>                       xfs_exntst_t             br_state;
>                      }
>
>      I have got in to the BMAP position after traversing the BTREE..
>      The BMAP has a leaf and no other siblings..
>      I have the extents for directory entries stored in the BMAP..
>      This is where is struck badly..
>
>     Now I have a 16 byte value from which I can calculate the block count
> ,AG number ,etc...
>              00 00 00 01 00 00 02 00 00 00 00 00 02 A0 00 02
>    In this case I lan up some where else instead going to the block of
> directory entries..
>    This br_startoff (logical offset) is causing a difference...I am going
> wrong somwhere in this case..
>
>
>      Could you please tell me br_startoff does really mean???
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Reading-directory-entries-from-BMAP-tf4569129.html#a13040897
> Sent from the Xfs - General mailing list archive at Nabble.com.
>
>
> [[HTML alternate version deleted]]
>
>
>


[[HTML alternate version deleted]]


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