<div dir="ltr">Hi Dave,<div><br><div>Thanks for the reply. I think I may get my solution. Can you explain the difference between the two?</div><div>I've created sample xfs file using mkfs.xfs with mostly default parameter </div>
<div>1. Sector Size = 512</div><div>2. Block size = 4096</div><div>3. AG Number = 2</div><div>4. Number of blocks per AG = 6400.</div><div><br></div><div>So when I get absolute block 9420 from file extent data  I'm going to (6400 + 3020) , 3020 block of second AG which is wrong. The file start from 7628 absolute block or (6400 + 1228), 1228 block of second AG. </div>
<div>Please describe in some detail above the conversion which you are talking about.</div><div><br></div><div>Thanks and Regards,</div><div>Pradeep</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 22 October 2013 02:12, Dave Chinner <span dir="ltr"><<a href="mailto:david@fromorbit.com" target="_blank">david@fromorbit.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Oct 22, 2013 at 01:32:22AM +0200, Pradeep Kumar wrote:<br>
> Hi,<br>
><br>
> I'm writing a small utility to parse XFS fs image on windows.<br>
> I'm able to fetch the files in the first AG (0).<br>
> However when it comes to the files which are in different AG I'm facing<br>
> some problem in parsing extent bmap 128bits data of file inode (format ==<br>
> 2).<br>
<br>
</div>Extents use filesystem block encodings, not disk addresses. Look up<br>
the macros XFS_DADDR_TO_FSB and XFS_FSB_TO_DADDR.<br>
<br>
Cheers,<br>
<br>
Dave.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Dave Chinner<br>
<a href="mailto:david@fromorbit.com">david@fromorbit.com</a><br>
</font></span></blockquote></div><br></div>