<div dir="ltr">Hi,<div><br></div><div>I'm writing a small utility to parse XFS fs image on windows.</div><div>I'm able to fetch the files in the first AG (0). </div><div>However when it comes to the files which are in different AG I'm facing some problem in parsing extent bmap 128bits data of file inode (format == 2).</div>
<div><br></div><div>Here is the sample 128bits data</div><div>1. 00 00 00 00 00 00 00 00 00 00 00 04 99 80 00 01 (LSB)</div><div><br></div><div>After unpacking the bits are per doc and source code</div><div>In the above case I'm getting following</div>
<div>Num Of blocks = 1 (correct) (0 to 20 bits)</div><div>absolute block number = 9420 (0x24CC) (wrong) (21 to 72)</div><div>file offset = 0 (72 to 126)</div><div><br></div><div>I'm always getting wrong absolute block number . Actual data is in block 7628 (0x1DCC).</div>
<div>No matter what I try I'm always getting the same result. I've even verified this </div><div>by using the code from xfs_bmbt_get_all function from xfs source which too gives me same result (9420). </div><div>Please someone help me with this. I'm stuck on this from 3 days. </div>
<div><br></div><div>Thanks and Regards,</div><div>Pradeep</div></div>