{"id":3375,"date":"2022-12-20T17:02:29","date_gmt":"2022-12-20T20:02:29","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/xfs_bmap-man8\/"},"modified":"2022-12-20T17:02:29","modified_gmt":"2022-12-20T20:02:29","slug":"xfs_bmap-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/xfs_bmap-man8\/","title":{"rendered":"xfs_bmap (man8)"},"content":{"rendered":"<h1 align=\"center\">xfs_bmap<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">xfs_bmap \u2212 print block mapping for an XFS file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>xfs_bmap<\/b> [ <b>\u2212adelpv<\/b> ] [ <b>\u2212n<\/b> <i>num_extents<\/i> ] <i>file<\/i> <b><br \/> xfs_bmap \u2212V<\/b><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>xfs_bmap<\/b> prints the map of disk blocks used by files in an XFS filesystem. The map lists each <i>extent<\/i> 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:<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"><i>extent<\/i>: [<i>startoffset<\/i>..<i>endoffset<\/i>]: <i>startblock<\/i>..<i>endblock<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Holes are marked by replacing the <i>startblock<\/i>..<i>endblock<\/i> with <i>hole<\/i>. All the file offsets and disk blocks are in units of 512-byte blocks, no matter what the filesystem\u2019s block size is.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><b>\u2212a<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p style=\"margin-top: 1em\">If this option is specified, information about the file\u2019s attribute fork is printed instead of the default data fork.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212e<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>If this option is used, <b>xfs_bmap<\/b> obtains all delayed allocation extents, and does not flush dirty pages to disk before querying extent data. With the <b>\u2212v<\/b> option, the <i>flags<\/i> column will show which extents have not yet been allocated.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212l<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>If this option is used, then<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\"><<i>nblocks<\/i>> blocks<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">will be appended to each line. <i>nblocks<\/i> is the length of the extent described on the line in units of 512-byte blocks.<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">This flag has no effect if the <b>\u2212v<\/b> option is used.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212n<\/b> <i>num_extents<\/i><\/p>\n<p style=\"margin-left:22%;\">If this option is given, <b>xfs_bmap<\/b> will display at most <i>num_extents<\/i> extents. In the absence of <b>\u2212n<\/b>, <b>xfs_bmap<\/b> will display all extents in the file.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212p<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>If this option is used, <b>xfs_bmap<\/b> obtains all unwritten (preallocated) extents that do not contain written data. With the <b>\u2212v<\/b> option, the <i>flags<\/i> column will show which extents are preallocated\/unwritten.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212v<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"78%\">\n<p>Shows verbose information. When this flag is specified, additional AG specific information is appended to each line in the following form:<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:29%; margin-top: 1em\"><i>agno<\/i> (<i>startagoffset<\/i>..<i>endagoffset<\/i>) <i>nblocks flags<\/i><\/p>\n<p style=\"margin-left:22%; margin-top: 1em\">A second <b>\u2212v<\/b> option will print out the <i>flags<\/i> legend.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><b>\u2212V<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"55%\">\n<p style=\"margin-top: 1em\">Prints the version number and exits.<\/p>\n<\/td>\n<td width=\"23%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>xfs_fsr<\/b>(8), <b>xfs<\/b>(5).<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  xfs_bmap \u2212 print block mapping for an XFS file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,503],"class_list":["post-3375","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-xfs_bmap"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3375"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3375\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}