1xfs_bmap(8) System Manager's Manual xfs_bmap(8)
2
3
4
6 xfs_bmap - print block mapping for an XFS file
7
9 xfs_bmap [ -adlpv ] [ -n num_extents ] file
10 xfs_bmap -V
11
13 xfs_bmap prints the map of disk blocks used by files in an XFS filesys‐
14 tem. The map lists each extent used by the file, as well as regions in
15 the file that do not have any corresponding blocks (holes). Each line
16 of the listings takes the following form:
17
18 extent: [startoffset..endoffset]: startblock..endblock
19
20 Holes are marked by replacing the startblock..endblock with hole. All
21 the file offsets and disk blocks are in units of 512-byte blocks, no
22 matter what the filesystem's block size is.
23
25 -a If this option is specified, information about the file's
26 attribute fork is printed instead of the default data fork.
27
28 -d If portions of the file have been migrated offline by a DMAPI
29 application, a DMAPI read event will be generated to bring those
30 portions back online before the disk block map is printed. How‐
31 ever if the -d option is used, no DMAPI read event will be gen‐
32 erated for a DMAPI file and offline portions will be reported as
33 holes.
34
35 -l If this option is used, then
36
37 <nblocks> blocks
38
39 will be appended to each line. nblocks is the length of the
40 extent described on the line in units of 512-byte blocks.
41
42 This flag has no effect if the -v option is used.
43
44 -n num_extents
45 If this option is given, xfs_bmap obtains the extent list of the
46 file in groups of num_extents extents. In the absence of -n,
47 xfs_bmap queries the system for the number of extents in the
48 file and uses that value to compute the group size.
49
50 -p If this option is used, xfs_bmap obtains all unwritten (preallo‐
51 cated) extents that do not contain written data. With the -v
52 option, the flags column will show which extents are preallo‐
53 cated/unwritten.
54
55 -v Shows verbose information. When this flag is specified, addi‐
56 tional AG specific information is appended to each line in the
57 following form:
58
59 agno (startagoffset..endagoffset) nblocks flags
60
61 A second -v option will print out the flags legend.
62
63 -V Prints the version number and exits.
64
66 xfs_fsr(8), xfs(5).
67
68
69
70 xfs_bmap(8)