Linux "xfs_bmap" Command Line Options and Examples
print block mapping for an XFS file

xfs_bmap prints the map of disk blocks used by files in an XFS filesystem. The map lists each extent used by the file, as well as regions in the file that do not have any corresponding blocks (holes). Each line of the listings takes the following form: extent: [startoffset.


Usage:

xfs_bmap [ -adlpv ] [ -n num_extents ] file
    xfs_bmap -V






Command Line Options:

-l
<nblocks> blockswill be appended to each line. nblocks is the length of the extent described on the line in units of512-byte blocks.This flag has no effect if the -v option is used.
xfs_bmap -l ...
-n
If this option is given, xfs_bmap obtains the extent list of the file in groups of num_extents extents.In the absence of -n, xfs_bmap queries the system for the number of extents in the file and uses thatvalue to compute the group size.
xfs_bmap -n ...
-V
Prints the version number and exits.
xfs_bmap -V ...