public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Reading directory entries from BMAP
@ 2007-10-04 14:27 cyjoyp
  2007-10-04 16:52 ` Bhagi rathi
  2007-10-04 23:26 ` David Chinner
  0 siblings, 2 replies; 4+ messages in thread
From: cyjoyp @ 2007-10-04 14:27 UTC (permalink / raw)
  To: xfs


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]]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-10-05  5:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-04 14:27 Reading directory entries from BMAP cyjoyp
2007-10-04 16:52 ` Bhagi rathi
2007-10-05  5:16   ` cyjoyp
2007-10-04 23:26 ` David Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox