public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* 128 bits extent bmap for file format 2
@ 2013-10-21 23:32 Pradeep Kumar
  2013-10-22  0:12 ` Dave Chinner
  2013-10-22 13:11 ` Greg Freemyer
  0 siblings, 2 replies; 7+ messages in thread
From: Pradeep Kumar @ 2013-10-21 23:32 UTC (permalink / raw)
  To: xfs


[-- Attachment #1.1: Type: text/plain, Size: 946 bytes --]

Hi,

I'm writing a small utility to parse XFS fs image on windows.
I'm able to fetch the files in the first AG (0).
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).

Here is the sample 128bits data
1. 00 00 00 00 00 00 00 00 00 00 00 04 99 80 00 01 (LSB)

After unpacking the bits are per doc and source code
In the above case I'm getting following
Num Of blocks = 1 (correct) (0 to 20 bits)
absolute block number = 9420 (0x24CC) (wrong) (21 to 72)
file offset = 0 (72 to 126)

I'm always getting wrong absolute block number . Actual data is in block
7628 (0x1DCC).
No matter what I try I'm always getting the same result. I've even verified
this
by using the code from xfs_bmbt_get_all function from xfs source which too
gives me same result (9420).
Please someone help me with this. I'm stuck on this from 3 days.

Thanks and Regards,
Pradeep

[-- Attachment #1.2: Type: text/html, Size: 1242 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

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

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

end of thread, other threads:[~2013-11-03  5:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-21 23:32 128 bits extent bmap for file format 2 Pradeep Kumar
2013-10-22  0:12 ` Dave Chinner
2013-10-22  8:08   ` Pradeep Kumar
2013-10-22 11:25     ` Pradeep Kumar
2013-10-22 15:03       ` Eric Sandeen
2013-10-22 13:11 ` Greg Freemyer
2013-11-03  5:20   ` Pradeep Kumar

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