public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* blktrace and xfs_db block offset mismatch
@ 2014-09-27  7:32 Sushma R
  2014-09-27 14:38 ` Brian Foster
  0 siblings, 1 reply; 4+ messages in thread
From: Sushma R @ 2014-09-27  7:32 UTC (permalink / raw)
  To: xfs


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

Hi,

I ran blktrace while reading a file on XFS partition and here's it's output.

8,17   3        1    22.065944956  5489  D   R 20973896 + 8 [cat]

Using xfs_db, I dumped the inode for the same file and it shows the
following as its data extents.

u.bmx[0] = [startoff,startblock,blockcount,extentflag] 0:[0,2621481,1,0]

I understand that blktrace reports in 512-byte sectors while xfs_db in
filesystem block size (which is the default 4KB on my setup).
Converting blktrace offset to fs block = 2621737 which is close to the data
extent startblock (2621481), but still off by 256 fs blocks.

Could someone please help understand the reason for this mismatch?

Thanks,
Sushma

[-- Attachment #1.2: Type: text/html, Size: 915 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] 4+ messages in thread

end of thread, other threads:[~2014-09-27 17:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-27  7:32 blktrace and xfs_db block offset mismatch Sushma R
2014-09-27 14:38 ` Brian Foster
2014-09-27 15:40   ` Sushma R
2014-09-27 16:53     ` Sushma R

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