[BACK]Return to xfs_db.html CVS log [TXT][DIR] Up to [Development] / xfs-website.orig / manpages

File: [Development] / xfs-website.orig / manpages / xfs_db.html (download) (as text)

Revision 1.4, Thu Jan 25 19:55:30 2001 UTC (16 years, 9 months ago) by xfs
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1118 -588 lines

Man pages update.

<html>
<head>
<meta name="Content-Style" content="text/css">
</head>
<body>
<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#CONCEPTS">CONCEPTS</a><br>
<a href="#COMMANDS">COMMANDS</a><br>
<a href="#blockfree">blockfree</a><br>
<a href="#TYPES">TYPES</a><br>
<a href="#rtbitmap">rtbitmap</a><br>
<a href="#rtsummary">rtsummary</a><br>
<a href="#DIAGNOSTICS">DIAGNOSTICS</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>
<!-- Creator     : groff version 1.16.1  -->
<!-- CreationDate: Wed Jan 24 01:42:53 2001
 -->
<!-- Total number of pages: 11 -->
<!-- Page: 1 -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->
<a name="NAME"></a><h2>NAME</h2><p style="margin-left: 18%"><font size=3>xfs_db - debug an XFS filesystem</font></p>
<a name="SYNOPSIS"></a><h2>SYNOPSIS</h2><p style="margin-left: 18%"><font size=3><B>xfs_db</B></font> <font size=3>[</font> <font size=3><B>-c</B></font> <font size=3>cmd ] ... [</font> <font size=3><B>-p</B></font> <font size=3>prog ] [</font> <font size=3><B>-r</B></font> <font size=3>] [</font> <font size=3><B>-x</B></font> <font size=3>] xfs_special</font></p>
<p style="margin-left: 18%"><font size=3><B>xfs_db -f</B></font> <font size=3>[</font> <font size=3><B>-c</B></font> <font size=3>cmd ] ... [</font> <font size=3><B>-p</B></font> <font size=3>prog ] [</font> <font size=3><B>-f</B></font> <font size=3>] [</font> <font size=3><B>-r</B></font> <font size=3>] [</font> <font size=3><B>-x</B></font> <font size=3>] file</font></p>
<a name="DESCRIPTION"></a><h2>DESCRIPTION</h2><p style="margin-left: 18%"><font size=3><I>xfs_db</I></font> <font size=3>is used to examine an XFS filesystem. Under rare circumstances it can also be used to modify an XFS filesystem, but that task is normally left to</font> <font size=3><I>xfs_repair</I></font><font size=3>(8) or to scripts such as</font> <font size=3><I>xfs_chver</I></font> <font size=3>that run</font> <font size=3><I>xfs_db</I></font><font size=3>.</font></p>
<p style="margin-left: 18%"><font size=3>The options to</font> <font size=3><I>xfs_db</I></font> <font size=3>are:</font>
<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>-c</B></font> <font size=3><I>cmd</I></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><I>xfs_db</I></font> <font size=3>commands may be run interactively (the default) or as arguments on the command line. Multiple</font> <font size=3><B>-c</B></font> <font size=3>arguments may be given. The commands are run in the sequence given, then the program exits. This is the mechanism used to implement</font> <font size=3><I>xfs_check</I></font><font size=3>(8).</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>-f</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Specifies that the filesystem image to be processed is stored in a regular file (see the</font> <font size=3><I>mkfs.xfs</I></font> <font size=3><B>-d</B></font> <font size=3><I>file</I></font> <font size=3>option). This might happen if an image copy of a filesystem has been made into an ordinary file with</font> <font size=3><I>xfs_copy</I></font><font size=3>(8).</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>-i</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Allows execution on a mounted filesystem, provided it is mounted read&shy;only. Useful for shell scripts such as</font> <font size=3><I>xfs_check</I></font><font size=3>(8), which must only operate on filesystems in a guarenteed consistent state (either unmounted or mounted read&shy;only). These semantics are slightly different to that of the</font> <font size=3><B>-r</B></font> <font size=3>option.</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>-p</B></font> <font size=3><I>prog</I></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set the program name for prompts and some error messages, the default value is</font> <font size=3><I>xfs_db</I></font><font size=3>.</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>-r</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Open</font> <font size=3><I>file</I></font> <font size=3>or</font> <font size=3><I>xfs_special</I></font> <font size=3>read&shy;only. This option is required if</font> <font size=3><I>xfs_special</I></font> <font size=3>is a mounted filesystem. It is only necessary to omit this flag if a command that changes data (</font><font size=3><B>write</B></font><font size=3>,</font> <font size=3><B>blocktrash</B></font><font size=3>) is to be used.</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>-x</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Specifies expert mode. This enables the</font> <font size=3><B>write</B></font> <font size=3>command.</font></p>
</td>
</tr>
</table>
</p>
<a name="CONCEPTS"></a><h2>CONCEPTS</h2><p style="margin-left: 18%"><font size=3><I>xfs_db</I></font> <font size=3>commands can be broken up into two classes. Most commands are for the navigation and display of data structures in the filesystem. Other commands are for scanning the filesystem in some way.</font></p>
<p style="margin-left: 18%"><font size=3>Commands which are used to navigate the filesystem structure take arguments which reflect the names of filesystem structure fields. There can be multiple field names separated by dots when the underlying structures are nested, as in C. The field names can be indexed (as an array index) if the underlying field is an array. The array indices can be specified as a range, two numbers separated by a dash.</font></p>
<p style="margin-left: 18%"><font size=3><I>xfs_db</I></font> <font size=3>maintains a current address in the filesystem. The granularity of the address is a filesystem structure. This can be a filesystem block, an inode or quota (smaller than a filesystem block), or a directory block (could be larger than a filesystem block). There are a variety of commands to set the current address. Associated with the current address is the current data type, which is the structural type of this data. Commands which follow the structure of the filesystem always set the type as well as the address. Commands which examine pieces of an individual file (inode) need the current inode to be set, this is done with the</font> <font size=3><B>inode</B></font> <font size=3>command.</font></p>
<p style="margin-left: 18%"><font size=3>The current address/type information is actually maintained in a stack that can be explicitly manipulated with the</font> <font size=3><B>push</B></font><font size=3>,</font> <font size=3><B>pop</B></font><font size=3>, and</font> <font size=3><B>stack</B></font> <font size=3>commands. This allows for easy examination of a nested filesystem structure. Also, the last several locations visited are stored in a ring buffer which can be manipulated with the</font> <font size=3><B>forward</B></font><font size=3>,</font> <font size=3><B>back, and ring</B></font> <font size=3>commands.</font></p>
<p style="margin-left: 18%"><font size=3>XFS filesystems are divided into a small number of allocation groups.</font> <font size=3><I>xfs_db</I></font> <font size=3>maintains a notion of the current allocation group which is manipulated by some commands. The initial allocation group is 0.</font></p>
<a name="COMMANDS"></a><h2>COMMANDS</h2><p style="margin-left: 18%"><font size=3>Many commands have extensive online help. Use the</font> <font size=3><B>help</B></font> <font size=3>command for more details on any command.</font><br>
</p>

<!-- Page: 2  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="81%">
<p><font size=3><B>a</B></font></p>
</td>
</tr>
</table>
<p style="margin-left: 18%"><font size=3><B>ablock</B></font> <font size=3><I>filoff</I></font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to the offset</font> <font size=3><I>filoff</I></font> <font size=3>(a filesystem block number) in the attribute area of the current inode.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>addr</B></font> <font size=3>[</font> <font size=3><I>field&shy;expression</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to the value of the</font> <font size=3><I>field&shy;expression</I></font><font size=3>. This is used to ``follow'' a reference in one structure to the object being referred to. If no argument is given the current address is printed.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>agf</B></font> <font size=3>[</font> <font size=3><I>agno</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to the AGF block for allocation group</font> <font size=3><I>agno</I></font><font size=3>. If no argument is given use the current allocation group.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>agfl</B></font> <font size=3>[</font> <font size=3><I>agno</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to the AGFL block for allocation group</font> <font size=3><I>agno</I></font><font size=3>. If no argument is given use the current allocation group.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>agi</B></font> <font size=3>[</font> <font size=3><I>agno</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to the AGI block for allocation group</font> <font size=3><I>agno</I></font><font size=3>. If no argument is given use the current allocation group.</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>b</B></font></p>
<p><font size=3><B>back</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>See the</font> <font size=3><B>back</B></font> <font size=3>command.</font></p>
<p><font size=3>Move to the previous location in the position ring.</font></p>
</td>
</tr>
</table>
</p>
<a name="blockfree"></a><h2>blockfree</h2>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Free block usage information collected by the last execution of the</font> <font size=3><B>blockget</B></font> <font size=3>command. This must be done before another</font> <font size=3><B>blockget</B></font> <font size=3>command can be given, presumably with different arguments than the previous one.</font></p>
</td>
</tr>
</table>
<p style="margin-left: 18%"><font size=3><B>blockget</B></font> <font size=3>[</font> <font size=3><B>-npsv</B></font> <font size=3>] [</font> <font size=3><B>-b</B></font> <font size=3><I>bno</I></font> <font size=3>] ... [</font> <font size=3><B>-i</B></font> <font size=3><I>ino</I></font> <font size=3>] ...</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Get block usage and check filesystem consistency. The information is saved for use by a subsequent</font> <font size=3><B>blockuse</B></font><font size=3>,</font> <font size=3><B>ncheck</B></font><font size=3>, or</font> <font size=3><B>blocktrash</B></font> <font size=3>command. See</font> <font size=3><I>xfs_check</I></font><font size=3>(8) for more information.<br>
The</font> <font size=3><B>-b</B></font> <font size=3>option is used to specify filesystem block numbers about which verbose information should be printed.<br>
The</font> <font size=3><B>-i</B></font> <font size=3>option is used to specify inode numbers about which verbose information should be printed.<br>
The</font> <font size=3><B>-n</B></font> <font size=3>option is used to save pathnames for inodes visited, this is used to support the</font> <font size=3><I>xfs_ncheck</I></font><font size=3>(8) command. It also means that pathnames will be printed for inodes that have problems. This option uses a lot of memory so is not enabled by default.<br>
The</font> <font size=3><B>-p</B></font> <font size=3>option causes error messages to be prefixed with the filesystem name being processed. This is useful if several copies of</font> <font size=3><I>xfs_db</I></font> <font size=3>are run in parallel.<br>
The</font> <font size=3><B>-s</B></font> <font size=3>option restricts output to severe errors only. This is useful if the output is too long otherwise.<br>
The</font> <font size=3><B>-v</B></font> <font size=3>option enables verbose output. Messages will be printed for every block and inode processed.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>blocktrash</B></font> <font size=3>[</font> <font size=3><B>-n</B></font> <font size=3><I>c</I></font> <font size=3>] [</font> <font size=3><B>-x</B></font> <font size=3><I>a</I></font> <font size=3>] [</font> <font size=3><B>-y</B></font> <font size=3><I>b</I></font> <font size=3>] [</font> <font size=3><B>-s</B></font> <font size=3><I>s</I></font> <font size=3>] [</font> <font size=3><B>-0123</B></font> <font size=3>] [</font> <font size=3><B>-t</B></font> <font size=3><I>t</I></font> <font size=3>] ...</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Trash randomly selected filesystem metadata blocks. Trashing occurs to randomly selected bits in the chosen blocks. This command is available only in debugging versions of</font> <font size=3><I>xfs_db</I></font><font size=3>. It is useful for testing</font> <font size=3><I>xfs_repair</I></font><font size=3>(8) and</font> <font size=3><I>xfs_check</I></font><font size=3>(8).<br>
The</font> <font size=3><B>-0</B></font><font size=3>,</font> <font size=3><B>-1</B></font><font size=3>,</font> <font size=3><B>-2</B></font><font size=3>, and</font> <font size=3><B>-3</B></font> <font size=3>options (mutually exclusive) set the operating mode for</font> <font size=3><B>blocktrash</B></font><font size=3>. In</font> <font size=3><B>-0</B></font> <font size=3>mode, changed bits are cleared. In</font> <font size=3><B>-1</B></font> <font size=3>mode, changed bits are set. In</font> <font size=3><B>-2</B></font> <font size=3>mode, changed bits are inverted. In</font> <font size=3><B>-3</B></font> <font size=3>mode, changed bits are randomized.<br>
The</font> <font size=3><B>-n</B></font> <font size=3>option supplies the count of block&shy;trashings to perform (default 1).<br>
The</font> <font size=3><B>-s</B></font> <font size=3>option supplies a seed to the random processing.<br>
The</font> <font size=3><B>-t</B></font> <font size=3>option gives a type of blocks to be selected for trashing. Multiple</font> <font size=3><B>-t</B></font> <font size=3>options may be given. If no</font> <font size=3><B>-t</B></font> <font size=3>options are given then all metadata types can be trashed.<br>
The</font> <font size=3><B>-x</B></font> <font size=3>option sets the minimum size of bit range to be trashed. The default value is 1.<br>
The</font> <font size=3><B>-y</B></font> <font size=3>option sets the maximum size of bit range to be trashed. The default value</font></p>
</td>
</tr>
</table>
<br>
</p>

<!-- Page: 3  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>is 1024.</font></p>
</td>
</tr>
</table>
<p style="margin-left: 18%"><font size=3><B>blockuse</B></font> <font size=3>[</font> <font size=3><B>-n</B></font> <font size=3>] [</font> <font size=3><B>-c</B></font> <font size=3><I>blockcount</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Print usage for current filesystem block(s). For each block, the type and (if any) inode are printed.<br>
The</font> <font size=3><B>-c</B></font> <font size=3>option specifies a count of blocks to process. The default value is 1 (the current block only).<br>
The</font> <font size=3><B>-n</B></font> <font size=3>option specifies that file names should be printed. The prior</font> <font size=3><B>blockget</B></font> <font size=3>command must have also specified the</font> <font size=3><B>-n</B></font> <font size=3>option.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>bmap</B></font> <font size=3>[</font> <font size=3><B>-a</B></font> <font size=3>] [</font> <font size=3><B>-d</B></font> <font size=3>] [</font> <font size=3><I>block</I></font> <font size=3>[</font> <font size=3><I>len</I></font> <font size=3>] ]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Show the block map for the current inode. The map display can be restricted to an area of the file with the</font> <font size=3><I>block</I></font> <font size=3>and</font> <font size=3><I>len</I></font> <font size=3>arguments. If</font> <font size=3><I>block</I></font> <font size=3>is given and</font> <font size=3><I>len</I></font> <font size=3>is omitted then 1 is assumed for len.<br>
The</font> <font size=3><B>-a</B></font> <font size=3>and</font> <font size=3><B>-d</B></font> <font size=3>options are used to select the attribute or data area of the inode, if neither option is given then both areas are shown.</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="81%">
<p><font size=3><B>check</B></font> <font size=3>See the</font> <font size=3><B>blockget</B></font> <font size=3>command.</font></p>
<p><font size=3><B>convert</B></font> <font size=3><I>type number</I></font> <font size=3>[</font> <font size=3><I>type number</I></font> <font size=3>] ...</font> <font size=3><I>type<br>
<span style=" text-indent: 9%;"></span></I>Convert from one address form to another.</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>names, are:</font> <font size=3><B>agblock</B></font> <font size=3>or</font> <font size=3><B>agbno</B></font> <font size=3>(filesystem block within an allocation group),</font> <font size=3><B>agino</B></font> <font size=3>or</font> <font size=3><B>aginode</B></font> <font size=3>(inode number within an allocation group),</font> <font size=3><B>agnumber</B></font> <font size=3>or</font> <font size=3><B>agno</B></font> <font size=3>(allocation group number),</font> <font size=3><B>bboff</B></font> <font size=3>or</font> <font size=3><B>daddroff</B></font> <font size=3>(byte offset in a</font> <font size=3><B>daddr</B></font><font size=3>),</font> <font size=3><B>blkoff</B></font> <font size=3>or</font> <font size=3><B>fsboff</B></font> <font size=3>or</font> <font size=3><B>agboff</B></font> <font size=3>(byte offset in a</font> <font size=3><B>agblock</B></font> <font size=3>or</font> <font size=3><B>fsblock</B></font><font size=3>),</font> <font size=3><B>byte</B></font> <font size=3>or</font> <font size=3><B>fsbyte</B></font> <font size=3>(byte address in filesystem),</font> <font size=3><B>daddr</B></font> <font size=3>or</font> <font size=3><B>bb</B></font> <font size=3>(disk address, 512&shy;byte blocks),</font> <font size=3><B>fsblock</B></font> <font size=3>or</font> <font size=3><B>fsb</B></font> <font size=3>or</font> <font size=3><B>fsbno</B></font> <font size=3>(filesystem block, see the</font> <font size=3><B>fsblock</B></font> <font size=3>command),</font> <font size=3><B>ino</B></font> <font size=3>or</font> <font size=3><B>inode</B></font> <font size=3>(inode number),</font> <font size=3><B>inoidx</B></font> <font size=3>or</font> <font size=3><B>offset</B></font> <font size=3>(index of inode in filesystem block), and</font> <font size=3><B>inooff</B></font> <font size=3>or</font> <font size=3><B>inodeoff</B></font> <font size=3>(byte offset in inode). Only conversions that ``make sense'' are allowed. The compound form (with more than three arguments) is useful for conversions such as</font> <font size=3><B>convert agno</B></font> <font size=3><I>ag</I></font> <font size=3><B>agbno</B></font> <font size=3><I>agb</I></font> <font size=3><B>fsblock</B></font><font size=3>.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>daddr</B></font> <font size=3>[</font> <font size=3><I>d</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to the daddr (512 byte block) given by</font> <font size=3><I>d</I></font><font size=3>. If no value for</font> <font size=3><I>d</I></font> <font size=3>is given the current address is printed, expressed as a daddr. The type is set to</font> <font size=3><B>data</B></font> <font size=3>(uninterpreted).</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>dblock</B></font> <font size=3><I>filoff</I></font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to the offset</font> <font size=3><I>filoff</I></font> <font size=3>(a filesystem block number) in the data area of the current inode.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>debug</B></font> <font size=3>[</font> <font size=3><I>flagbits</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set debug option bits. These are used for debugging</font> <font size=3><I>xfs_db</I></font><font size=3>. If no value is given for</font> <font size=3><I>flagbits</I></font><font size=3>, print the current debug option bits. These are for the use of the implementor.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>dquot</B></font> <font size=3>[</font> <font size=3><I>projectid_or_userid</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to a project or user quota block.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>echo</B></font> <font size=3>[</font> <font size=3><I>arg</I></font> <font size=3>] ...</font>
<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="9%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Echo the arguments to the output.</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>f</B></font></p>
<p><font size=3><B>forward</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>See the</font> <font size=3><B>forward</B></font> <font size=3>command.</font></p>
<p><font size=3>Move forward to the next entry in the position ring.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>frag</B></font> <font size=3>[</font> <font size=3><B>-adflqRrv</B></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Get file fragmentation data. This prints information about fragmentation of file data in the filesystem (as opposed to fragmentation of freespace, for which see the</font> <font size=3><B>freesp</B></font> <font size=3>command). Every file in the filesystem is examined to see how far from ideal its extent mappings are. A summary is printed giving the totals.<br>
The</font> <font size=3><B>-v</B></font> <font size=3>option sets verbosity, every inode has information printed for it. The remaining options select which inodes and extents are examined. If no options are given then all are assumed set, otherwise just those given are enabled.<br>
The</font> <font size=3><B>-a</B></font> <font size=3>option enables processing of attribute data.<br>
The</font> <font size=3><B>-d</B></font> <font size=3>option enables processing of directory data.<br>
The</font> <font size=3><B>-f</B></font> <font size=3>option enables processing of regular file data.<br>
The</font> <font size=3><B>-l</B></font> <font size=3>option enables processing of symbolic link data.<br>
The</font> <font size=3><B>-q</B></font> <font size=3>option enables processing of quota file data.</font></p>
</td>
</tr>
</table>
<br>
</p>

<!-- Page: 4  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>The</font> <font size=3><B>-R</B></font> <font size=3>option enables processing of realtime control file data.</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>The</font> <font size=3><B>-r</B></font> <font size=3>option enables processing of realtime file data.</font></p>
</td>
</tr>
</table>
<p style="margin-left: 18%"><font size=3><B>freesp</B></font> <font size=3>[</font> <font size=3><B>-bcds</B></font> <font size=3>] [</font> <font size=3><B>-a</B></font> <font size=3><I>a</I></font> <font size=3>] ... [</font> <font size=3><B>-e</B></font> <font size=3><I>i</I></font> <font size=3>] [</font> <font size=3><B>-h</B></font> <font size=3><I>h1</I></font> <font size=3>] ... [</font> <font size=3><B>-m</B></font> <font size=3><I>m</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Summarize free space for the filesystem. The free blocks are examined and totalled, and displayed in the form of a histogram, with a count of extents in each range of free extent sizes.<br>
The</font> <font size=3><B>-a</B></font> <font size=3><I>a</I></font> <font size=3>option adds</font> <font size=3><I>a</I></font> <font size=3>to the list of allocation groups to be processed. If no</font> <font size=3><B>-a</B></font> <font size=3>options are given then all allocation groups are processed.<br>
The</font> <font size=3><B>-b</B></font> <font size=3>option specifies that the histogram buckets are binary&shy;sized, with the starting sizes being the powers of 2.<br>
The</font> <font size=3><B>-c</B></font> <font size=3>option specifies that</font> <font size=3><B>freesp</B></font> <font size=3>will search the by&shy;size (cnt) space Btree instead of the default by&shy;block (bno) space Btree.<br>
The</font> <font size=3><B>-d</B></font> <font size=3>option specifies that every free extent will be displayed.<br>
The</font> <font size=3><B>-e</B></font> <font size=3><I>i</I></font> <font size=3>option specifies that the histogram buckets are equal&shy;sized, with the size specified as</font> <font size=3><I>i</I></font><font size=3>.<br>
The</font> <font size=3><B>-h</B></font> <font size=3><I>h1</I></font> <font size=3>option specifies a starting block number for a histogram bucket as</font> <font size=3><I>h1</I></font><font size=3>. Multiple</font> <font size=3><B>-h</B></font> <font size=3>options are given to specify the complete set of buckets.<br>
The</font> <font size=3><B>-m</B></font> <font size=3><I>m</I></font> <font size=3>option specifies that the histogram starting block numbers are powers of</font> <font size=3><I>m</I></font><font size=3>. This is the general case of</font> <font size=3><B>-b</B></font><font size=3>.<br>
The</font> <font size=3><B>-s</B></font> <font size=3>option specifies that a final summary of total free extents, free blocks, and the average free extent size is printed.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>fsb</B></font> <font size=3>See the</font> <font size=3><B>fsblock</B></font> <font size=3>command.</font></p>
<p style="margin-left: 18%"><font size=3><B>fsblock</B></font> <font size=3>[</font> <font size=3><I>fsb</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to the fsblock value given by</font> <font size=3><I>fsb</I></font><font size=3>. If no value for</font> <font size=3><I>fsb</I></font> <font size=3>is given the current address is printed, expressed as an fsb. The type is set to</font> <font size=3><B>data</B></font> <font size=3>(uninterpreted). XFS filesystem block numbers are computed ((</font><font size=3><I>agno</I></font> <font size=3>&lt;&lt;</font> <font size=3><I>agshift</I></font><font size=3>) |</font> <font size=3><I>agblock</I></font><font size=3>) where</font> <font size=3><I>agshift</I></font> <font size=3>depends on the size of an allocation group. Use the</font> <font size=3><B>convert</B></font> <font size=3>command to convert to and from this form. Block numbers given for file blocks (for instance from the</font> <font size=3><B>bmap</B></font> <font size=3>command) are in this form.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>hash</B></font> <font size=3><I>string</I></font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Prints the hash value of</font> <font size=3><I>string</I></font> <font size=3>using the hash function of the XFS directory and attribute implementation.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>help</B></font> <font size=3>[</font> <font size=3><I>command</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Print help for one or all commands.</font></p>
</td>
</tr>
</table>

<table width="98%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="38%">
<p><font size=3><B>inode</B></font> <font size=3>[</font> <font size=3><I>inode#</I></font> <font size=3>]</font></p>
</td>
<td valign="top" align="left" width="42%">
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="38%">
<p><font size=3><span style=" text-indent: 9%;"></span>Set the current inode number.<br>
<span style=" text-indent: 9%;"></span>number.</font></p>
<p><font size=3><B>log</B></font> <font size=3>[</font> <font size=3><B>stop</B></font> <font size=3>|</font> <font size=3><B>start</B></font> <font size=3><I>filename</I></font> <font size=3>]</font></p>
</td>
<td valign="top" align="left" width="42%">
<p><font size=3>If no</font> <font size=3><I>inode#</I></font> <font size=3>is given, print the current inode</font></p>
</td>
</tr>
</table>
<br>
<span style=" text-indent: 9%;"></span><font size=3>Start logging output to</font> <font size=3><I>filename</I></font><font size=3>, stop logging, or print the current logging status.</font></p>
<p style="margin-left: 18%"><font size=3><B>ncheck</B></font> <font size=3>[</font> <font size=3><B>-s</B></font> <font size=3>] [</font> <font size=3><B>-i</B></font> <font size=3><I>ino</I></font> <font size=3>] ...</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Print name&shy;inode pairs. A</font> <font size=3><B>blockget &shy;n</B></font> <font size=3>command must be run first to gather the information.<br>
The</font> <font size=3><B>-i</B></font> <font size=3>option specifies an inode number to be printed. If no</font> <font size=3><B>-i</B></font> <font size=3>options are given then all inodes are printed.<br>
The</font> <font size=3><B>-s</B></font> <font size=3>option specifies that only setuid and setgid files are printed.</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>p</B></font></p>
<p><font size=3><B>pop</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>See the</font> <font size=3><B>print</B></font> <font size=3>command.</font></p>
<p><font size=3>Pop location from the stack.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>print</B></font> <font size=3>[</font> <font size=3><I>field&shy;expression</I></font> <font size=3>] ...</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Print field values. If no argument is given, print all fields in the current structure.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>push</B></font> <font size=3>[</font> <font size=3><I>command</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Push location to the stack. If</font> <font size=3><I>command</I></font> <font size=3>is supplied, set the current location to the results of</font> <font size=3><I>command</I></font> <font size=3>after pushing the old location.</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="81%">
<p><font size=3><B>q</B></font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>quit</B></font> <font size=3>Exit</font> <font size=3><I>xfs_db</I></font><font size=3>.</font><br>
</p>

<!-- Page: 5  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->
<p style="margin-left: 18%"><font size=3><B>ring</B></font> <font size=3>[</font> <font size=3><I>index</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Show position ring (if no</font> <font size=3><I>index</I></font> <font size=3>argument is given), or move to a specific entry in the position ring given by</font> <font size=3><I>index</I></font><font size=3>.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>sb</B></font> <font size=3>[</font> <font size=3><I>agno</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set current address to SB header in allocation group</font> <font size=3><I>agno</I></font><font size=3>. If no</font> <font size=3><I>agno</I></font> <font size=3>is given use the current allocation group number.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>source</B></font> <font size=3><I>source&shy;file</I></font></p>
<p align=center><font size=3>Process commands from</font> <font size=3><I>source&shy;file</I></font><font size=3>.</font> <font size=3><B>source</B></font> <font size=3>commands can be nested.</font></p>
<p style="margin-left: 18%"><font size=3><B>stack</B></font> <font size=3>View the location stack.</font></p>
<p style="margin-left: 18%"><font size=3><B>type</B></font> <font size=3>[</font> <font size=3><I>type</I></font> <font size=3>]</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Set the current data type to</font> <font size=3><I>type</I></font><font size=3>. If no argument is given, show the current data type. The possible data types are:</font> <font size=3><B>agf</B></font><font size=3>,</font> <font size=3><B>agfl</B></font><font size=3>,</font> <font size=3><B>agi</B></font><font size=3>,</font> <font size=3><B>attr</B></font><font size=3>,</font> <font size=3><B>bmapbta</B></font><font size=3>,</font> <font size=3><B>bmapbtd</B></font><font size=3>,</font> <font size=3><B>bnobt</B></font><font size=3>,</font> <font size=3><B>cntbt</B></font><font size=3>,</font> <font size=3><B>data</B></font><font size=3>,</font> <font size=3><B>dir</B></font><font size=3>,</font> <font size=3><B>dir2</B></font><font size=3>,</font> <font size=3><B>dqblk</B></font><font size=3>,</font> <font size=3><B>inobt</B></font><font size=3>,</font> <font size=3><B>inode</B></font><font size=3>,</font> <font size=3><B>log</B></font><font size=3>,</font> <font size=3><B>rtbitmap</B></font><font size=3>,</font> <font size=3><B>rtsummary</B></font><font size=3>,</font> <font size=3><B>sb</B></font><font size=3>, and</font> <font size=3><B>symlink</B></font><font size=3>. See the TYPES section below for more information on these data types.</font></p>
</td>
</tr>
</table>
</p>
<p style="margin-left: 18%"><font size=3><B>write</B></font> <font size=3>[</font> <font size=3><I>field or value</I></font> <font size=3>] ...</font>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Write a value to disk. Specific fields can be set in structures (struct mode), or a block can be set to data values (data mode), or a block can be set to string values (string mode, for symlink blocks). The operation happens immediately: there is no buffering.<br>
Struct mode is in effect when the current type is structural, i.e. not data. For struct mode, the syntax is ``</font><font size=3><B>write</B></font> <font size=3><I>field value</I></font><font size=3>''.<br>
Data mode is in effect when the current type is data. In this case the contents of the block can be shifted or rotated left or right, or filled with a sequence, a constant value, or a random value. In this mode</font> <font size=3><B>write</B></font> <font size=3>with no arguments gives more information on the allowed commands.</font></p>
</td>
</tr>
</table>
</p>
<a name="TYPES"></a><h2>TYPES</h2><p style="margin-left: 18%"><font size=3>This section gives the fields in each structure type and their meanings. Note that some types of block cover multiple actual structures, for instance directory blocks.</font>
<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</p>
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>agf</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>The AGF block is the header for block allocation information; it is in the second 512&shy;byte block of each allocation group. The following fields are defined:<br>
<B>magicnum</B></font><font size=3>: AGF block magic number, 0x58414746 ('XAGF')<br>
<B>versionnum</B></font><font size=3>: version number, currently 1<br>
<B>seqno</B></font><font size=3>: sequence number starting from 0<br>
<B>length</B></font><font size=3>: size in filesystem blocks of the allocation group. All allocation groups except the last one of the filesystem have the superblock's</font> <font size=3><B>agblocks</B></font> <font size=3>value here<br>
<B>bnoroot</B></font><font size=3>: block number of the root of the Btree holding free space information sorted by block number<br>
<B>cntroot</B></font><font size=3>: block number of the root of the Btree holding free space information sorted by block count<br>
<B>bnolevel</B></font><font size=3>: number of levels in the by&shy;block&shy;number Btree<br>
<B>cntlevel</B></font><font size=3>: number of levels in the by&shy;block&shy;count Btree<br>
<B>flfirst</B></font><font size=3>: index into the AGFL block of the first active entry<br>
<B>fllast</B></font><font size=3>: index into the AGFL block of the last active entry<br>
<B>flcount</B></font><font size=3>: count of active entries in the AGFL block<br>
<B>freeblks</B></font><font size=3>: count of blocks represented in the freespace Btrees<br>
<B>longest</B></font><font size=3>: longest free space represented in the freespace Btrees</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>agfl</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>The AGFL block contains block numbers for use of the block allocator; it is in the fourth 512&shy;byte block of each allocation group. Each entry in the active list is a block number within the allocation group that can be used for any purpose if space runs low. The AGF block fields</font> <font size=3><B>flfirst</B></font><font size=3>,</font> <font size=3><B>fllast</B></font><font size=3>, and</font> <font size=3><B>flcount</B></font> <font size=3>designate which entries are currently active. Entry space is allocated in a circular manner within the AGFL block. Fields defined:<br>
<B>bno</B></font><font size=3>: array of all block numbers. Even those which are not active are printed</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>agi</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>The AGI block is the header for inode allocation information; it is in the third 512&shy;byte block of each allocation group. Fields defined:<br>
<B>magicnum</B></font><font size=3>: AGI block magic number, 0x58414749 ('XAGI')<br>
<B>versionnum</B></font><font size=3>: version number, currently 1<br>
<B>seqno</B></font><font size=3>: sequence number starting from 0</font></p>
</td>
</tr>
</table>
<br>
</p>

<!-- Page: 6  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>length</B></font><font size=3>: size in filesystem blocks of the allocation group</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>count</B></font><font size=3>: count of inodes allocated</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>root</B></font><font size=3>: block number of the root of the Btree holding inode allocation information</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>level</B></font><font size=3>: number of levels in the inode allocation Btree</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>freecount</B></font><font size=3>: count of allocated inodes that are not in use</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>newino</B></font><font size=3>: last inode number allocated</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>dirino</B></font><font size=3>: unused</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>unlinked</B></font><font size=3>: an array of inode numbers within the allocation group. The entries in the AGI block are the heads of lists which run through the inode</font> <font size=3><B>next_unlinked</B></font> <font size=3>field. These inodes are to be unlinked the next time the filesystem is mounted</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>attr</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>An attribute fork is organized as a Btree with the actual data embedded in the leaf blocks. The root of the Btree is found in block 0 of the fork. The index (sort order) of the Btree is the hash value of the attribute name. All the blocks contain a</font> <font size=3><B>blkinfo</B></font> <font size=3>structure at the beginning, see type</font> <font size=3><B>dir</B></font> <font size=3>for a description. Nonleaf blocks are identical in format to those for version 1 and version 2 directories, see type</font> <font size=3><B>dir</B></font> <font size=3>for a description. Leaf blocks can refer to ``local'' or ``remote'' attribute values. Local values are stored directly in the leaf block. Remote values are stored in an independent block in the attribute fork (with no structure). Leaf blocks contain the following fields:<br>
<B>hdr</B></font><font size=3>: header containing a</font> <font size=3><B>blkinfo</B></font> <font size=3>structure</font> <font size=3><B>info</B></font> <font size=3>(magic number 0xfbee), a</font> <font size=3><B>count</B></font> <font size=3>of active entries,</font> <font size=3><B>usedbytes</B></font> <font size=3>total bytes of names and values, the</font> <font size=3><B>firstused</B></font> <font size=3>byte in the name area,</font> <font size=3><B>holes</B></font> <font size=3>set if the block needs compaction, and array</font> <font size=3><B>freemap</B></font> <font size=3>as for</font> <font size=3><B>dir</B></font> <font size=3>leaf blocks<br>
<B>entries</B></font><font size=3>: array of structures containing a</font> <font size=3><B>hashval</B></font><font size=3>,</font> <font size=3><B>nameidx</B></font> <font size=3>(index into the block of the name), and flags</font> <font size=3><B>incomplete</B></font><font size=3>,</font> <font size=3><B>root</B></font><font size=3>, and</font> <font size=3><B>local<br>
nvlist</B></font><font size=3>: array of structures describing the attribute names and values. Fields always present:</font> <font size=3><B>valuelen</B></font> <font size=3>(length of value in bytes),</font> <font size=3><B>namelen</B></font><font size=3>, and</font> <font size=3><B>name</B></font><font size=3>. Fields present for local values:</font> <font size=3><B>value</B></font> <font size=3>(value string). Fields present for remote values:</font> <font size=3><B>valueblk</B></font> <font size=3>(fork block number of containing the value).</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>bmapbt</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Files with many extents in their data or attribute fork will have the extents described by the contents of a Btree for that fork, instead of being stored directly in the inode. Each bmap Btree starts with a root block contained within the inode. The other levels of the Btree are stored in filesystem blocks. The blocks are linked to sibling left and right blocks at each level, as well as by pointers from parent to child blocks. Each block contains the following fields:<br>
<B>magic</B></font><font size=3>: bmap Btree block magic number, 0x424d4150 ('BMAP')<br>
<B>level</B></font><font size=3>: level of this block above the leaf level<br>
<B>numrecs</B></font><font size=3>: number of records or keys in the block<br>
<B>leftsib</B></font><font size=3>: left (logically lower) sibling block, 0 if none<br>
<B>rightsib</B></font><font size=3>: right (logically higher) sibling block, 0 if none<br>
<B>recs</B></font><font size=3>: [leaf blocks only] array of extent records. Each record contains</font> <font size=3><B>startoff</B></font><font size=3>,</font> <font size=3><B>startblock</B></font><font size=3>,</font> <font size=3><B>blockcount</B></font><font size=3>, and</font> <font size=3><B>extentflag</B></font> <font size=3>(1 if the extent is unwritten)<br>
<B>keys</B></font><font size=3>: [nonleaf blocks only] array of key records. These are the first key value of each block in the level below this one. Each record contains</font> <font size=3><B>startoff<br>
ptrs</B></font><font size=3>: [nonleaf blocks only] array of child block pointers. Each pointer is a filesystem block number to the next level in the Btree</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>bnobt</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>There is one set of filesystem blocks forming the by&shy;block&shy;number allocation Btree for each allocation group. The root block of this Btree is designated by the</font> <font size=3><B>bnoroot</B></font> <font size=3>field in the coresponding AGF block. The blocks are linked to sibling left and right blocks at each level, as well as by pointers from parent to child blocks. Each block has the following fields:<br>
<B>magic</B></font><font size=3>: BNOBT block magic number, 0x41425442 ('ABTB')<br>
<B>level</B></font><font size=3>: level number of this block, 0 is a leaf<br>
<B>numrecs</B></font><font size=3>: number of data entries in the block<br>
<B>leftsib</B></font><font size=3>: left (logically lower) sibling block, 0 if none<br>
<B>rightsib</B></font><font size=3>: right (logically higher) sibling block, 0 if none<br>
<B>recs</B></font><font size=3>: [leaf blocks only] array of freespace records. Each record contains</font> <font size=3><B>startblock</B></font> <font size=3>and</font> <font size=3><B>blockcount<br>
keys</B></font><font size=3>: [nonleaf blocks only] array of key records. These are the first value of each block in the level below this one. Each record contains</font> <font size=3><B>startblock</B></font> <font size=3>and</font> <font size=3><B>blockcount ptrs</B></font><font size=3>: [nonleaf blocks only] array of child block pointers. Each pointer is a block</font></p>
</td>
</tr>
</table>
<br>
<!-- Page: 7  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>number within the allocation group to the next level in the Btree</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>cntbt</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>There is one set of filesystem blocks forming the by&shy;block&shy;count allocation Btree for each allocation group. The root block of this Btree is designated by the coresponding AGF block. The blocks are linked to sibling left and right blocks at each level, as well as by pointers from parent to child blocks. Each block has the following fields:<br>
<B>magic</B></font><font size=3>: CNTBT block magic number, 0x41425443 ('ABTC')<br>
<B>level</B></font><font size=3>: level number of this block, 0 is a leaf<br>
<B>numrecs</B></font><font size=3>: number of data entries in the block<br>
<B>leftsib</B></font><font size=3>: left (logically lower) sibling block, 0 if none<br>
<B>rightsib</B></font><font size=3>: right (logically higher) sibling block, 0 if none<br>
<B>recs</B></font><font size=3>: [leaf blocks only] array of freespace records. Each record contains</font> <font size=3><B>startblock</B></font> <font size=3>and</font> <font size=3><B>blockcount<br>
keys</B></font><font size=3>: [nonleaf blocks only] array of key records. These are the first value of each block in the level below this one. Each record contains</font> <font size=3><B>blockcount</B></font> <font size=3>and</font> <font size=3><B>startblock ptrs</B></font><font size=3>: [nonleaf blocks only] array of child block pointers. Each pointer is a block number within the allocation group to the next level in the Btree</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>data</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>User file blocks, and other blocks whose type is unknown, have this type for display purposes in</font> <font size=3><I>xfs_db</I></font><font size=3>. The block data is displayed in hexadecimal format.</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>dir</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>A version 1 directory is organized as a Btree with the directory data embedded in the leaf blocks. The root of the Btree is found in block 0 of the file. The index (sort order) of the Btree is the hash value of the entry name. All the blocks contain a</font> <font size=3><B>blkinfo</B></font> <font size=3>structure at the beginning with the following fields:<br>
<B>forw</B></font><font size=3>: next sibling block<br>
<B>back</B></font><font size=3>: previous sibling block<br>
<B>magic</B></font><font size=3>: magic number for this block type</font></p>
<p><font size=3>The nonleaf (node) blocks have the following fields:<br>
<B>hdr</B></font><font size=3>: header containing a</font> <font size=3><B>blkinfo</B></font> <font size=3>structure</font> <font size=3><B>info</B></font> <font size=3>(magic number 0xfebe), the</font> <font size=3><B>count</B></font> <font size=3>of active entries, and the</font> <font size=3><B>level</B></font> <font size=3>of this block above the leaves<br>
<B>btree</B></font><font size=3>: array of entries containing</font> <font size=3><B>hashval</B></font> <font size=3>and</font> <font size=3><B>before</B></font> <font size=3>fields. The</font> <font size=3><B>before</B></font> <font size=3>value is a block number within the directory file to the child block, the</font> <font size=3><B>hashval</B></font> <font size=3>is the last hash value in that block</font></p>
<p><font size=3>The leaf blocks have the following fields:<br>
<B>hdr</B></font><font size=3>: header containing a</font> <font size=3><B>blkinfo</B></font> <font size=3>structure</font> <font size=3><B>info</B></font> <font size=3>(magic number 0xfeeb), the</font> <font size=3><B>count</B></font> <font size=3>of active entries,</font> <font size=3><B>namebytes</B></font> <font size=3>(total name string bytes),</font> <font size=3><B>holes</B></font> <font size=3>flag (block needs compaction), and</font> <font size=3><B>freemap</B></font> <font size=3>(array of</font> <font size=3><B>base</B></font><font size=3>,</font> <font size=3><B>size</B></font> <font size=3>entries for free regions)<br>
<B>entries</B></font><font size=3>: array of structures containing</font> <font size=3><B>hashval</B></font><font size=3>,</font> <font size=3><B>nameidx</B></font> <font size=3>(byte index into the block of the name string), and</font> <font size=3><B>namelen<br>
namelist</B></font><font size=3>: array of structures containing</font> <font size=3><B>inumber</B></font> <font size=3>and</font> <font size=3><B>name</B></font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>dir2</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>A version 2 directory has four kinds of blocks. Data blocks start at offset 0 in the file. There are two kinds of data blocks: single&shy;block directories have the leaf information embedded at the end of the block, data blocks in multi&shy;block directories do not. Node and leaf blocks start at offset 32GB (with either a single leaf block or the root node block). Freespace blocks start at offset 64GB. The node and leaf blocks form a Btree, with references to the data in the data blocks. The freespace blocks form an index of longest free spaces within the data blocks.</font></p>
<p><font size=3>A single&shy;block directory block contains the following fields:<br>
<B>bhdr</B></font><font size=3>: header containing</font> <font size=3><B>magic</B></font> <font size=3>number 0x58443242 ('XD2B') and an array</font> <font size=3><B>bestfree</B></font> <font size=3>of the longest 3 free spaces in the block (</font><font size=3><B>offset</B></font><font size=3>,</font> <font size=3><B>length</B></font><font size=3>)<br>
<B>bu</B></font><font size=3>: array of union structures. Each element is either an entry or a freespace. For entries, there are the following fields:</font> <font size=3><B>inumber</B></font><font size=3>,</font> <font size=3><B>namelen</B></font><font size=3>,</font> <font size=3><B>name</B></font><font size=3>, and</font> <font size=3><B>tag</B></font><font size=3>. For freespace, there are the following fields:</font> <font size=3><B>freetag</B></font> <font size=3>(0xffff),</font> <font size=3><B>length</B></font><font size=3>, and</font> <font size=3><B>tag</B></font><font size=3>. The</font> <font size=3><B>tag</B></font> <font size=3>value is the byte offset in the block of the start of the entry it is contained in<br>
<B>bleaf</B></font><font size=3>: array of leaf entries containing</font> <font size=3><B>hashval</B></font> <font size=3>and</font> <font size=3><B>address</B></font><font size=3>. The</font> <font size=3><B>address</B></font> <font size=3>is a 64&shy;bit word offset into the file<br>
<B>btail</B></font><font size=3>: tail structure containing the total</font> <font size=3><B>count</B></font> <font size=3>of leaf entries and</font> <font size=3><B>stale</B></font> <font size=3>count of unused leaf entries</font></p>
</td>
</tr>
</table>
<br>
<!-- Page: 8  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>A data block contains the following fields:</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>dhdr</B></font><font size=3>: header containing</font> <font size=3><B>magic</B></font> <font size=3>number 0x58443244 ('XD2D') and an array</font> <font size=3><B>bestfree</B></font> <font size=3>of the longest 3 free spaces in the block (</font><font size=3><B>offset</B></font><font size=3>,</font> <font size=3><B>length</B></font><font size=3>)<br>
<B>du</B></font><font size=3>: array of union structures as for</font> <font size=3><B>bu</B></font></p>
<p><font size=3>Leaf blocks have two possible forms. If the Btree consists of a single leaf then the freespace information is in the leaf block, otherwise it is in separate blocks and the root of the Btree is a node block. A leaf block contains the following fields:<br>
<B>lhdr</B></font><font size=3>: header containing a</font> <font size=3><B>blkinfo</B></font> <font size=3>structure</font> <font size=3><B>info</B></font> <font size=3>(magic number 0xd2f1 for the single leaf case, 0xd2ff for the true Btree case), the total</font> <font size=3><B>count</B></font> <font size=3>of leaf entries, and</font> <font size=3><B>stale</B></font> <font size=3>count of unused leaf entries<br>
<B>lents</B></font><font size=3>: leaf entries, as for</font> <font size=3><B>bleaf<br>
lbests</B></font><font size=3>: [single leaf only] array of values which represent the longest freespace in each data block in the directory<br>
<B>ltail</B></font><font size=3>: [single leaf only] tail structure containing</font> <font size=3><B>bestcount</B></font> <font size=3>count of</font> <font size=3><B>lbests</B></font></p>
<p><font size=3>A node block is identical to that for types</font> <font size=3><B>attr</B></font> <font size=3>and</font> <font size=3><B>dir</B></font><font size=3>.</font></p>
<p><font size=3>A freespace block contains the following fields:<br>
<B>fhdr</B></font><font size=3>: header containing</font> <font size=3><B>magic</B></font> <font size=3>number 0x58443246 ('XD2F'),</font> <font size=3><B>firstdb</B></font> <font size=3>first data block number covered by this freespace block,</font> <font size=3><B>nvalid</B></font> <font size=3>number of valid entries, and</font> <font size=3><B>nused</B></font> <font size=3>number of entries representing real data blocks<br>
<B>fbests</B></font><font size=3>: array of values as for</font> <font size=3><B>lbests</B></font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>dqblk</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>The quota information is stored in files referred to by the superblock</font> <font size=3><B>uquotino</B></font> <font size=3>and</font> <font size=3><B>pquotino</B></font> <font size=3>fields. Each filesystem block in a quota file contains a constant number of quota entries. The quota entry size is currently 136 bytes, so with a 4KB filesystem block size there are 30 quota entries per block. The</font> <font size=3><B>dquot</B></font> <font size=3>command is used to locate these entries in the filesystem. The file entries are indexed by the user or project identifier to determine the block and offset. Each quota entry has the following fields:<br>
<B>magic</B></font><font size=3>: magic number, 0x4451 ('DQ')<br>
<B>version</B></font><font size=3>: version number, currently 1<br>
<B>flags</B></font><font size=3>: flags, values include 0x01 for user quota, 0x02 for project quota<br>
<B>id</B></font><font size=3>: user or project identifier<br>
<B>blk_hardlimit</B></font><font size=3>: absolute limit on blocks in use<br>
<B>blk_softlimit</B></font><font size=3>: preferred limit on blocks in use<br>
<B>ino_hardlimit</B></font><font size=3>: absolute limit on inodes in use<br>
<B>ino_softlimit</B></font><font size=3>: preferred limit on inodes in use<br>
<B>bcount</B></font><font size=3>: blocks actually in use<br>
<B>icount</B></font><font size=3>: inodes actually in use<br>
<B>itimer</B></font><font size=3>: time when service will be refused if soft limit is violated for inodes<br>
<B>btimer</B></font><font size=3>: time when service will be refused if soft limit is violated for blocks<br>
<B>iwarns</B></font><font size=3>: number of warnings issued about inode limit violations<br>
<B>bwarns</B></font><font size=3>: number of warnings issued about block limit violations<br>
<B>rtb_hardlimit</B></font><font size=3>: absolute limit on realtime blocks in use<br>
<B>rtb_softlimit</B></font><font size=3>: preferred limit on realtime blocks in use<br>
<B>rtbcount</B></font><font size=3>: realtime blocks actually in use<br>
<B>rtbtimer</B></font><font size=3>: time when service will be refused if soft limit is violated for realtime blocks<br>
<B>rtbwarns</B></font><font size=3>: number of warnings issued about realtime block limit violations</font></p>
</td>
</tr>
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>inobt</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>There is one set of filesystem blocks forming the inode allocation Btree for each allocation group. The root block of this Btree is designated by the</font> <font size=3><B>root</B></font> <font size=3>field in the coresponding AGI block. The blocks are linked to sibling left and right blocks at each level, as well as by pointers from parent to child blocks. Each block has the following fields:<br>
<B>magic</B></font><font size=3>: INOBT block magic number, 0x49414254 ('IABT')<br>
<B>level</B></font><font size=3>: level number of this block, 0 is a leaf<br>
<B>numrecs</B></font><font size=3>: number of data entries in the block<br>
<B>leftsib</B></font><font size=3>: left (logically lower) sibling block, 0 if none<br>
<B>rightsib</B></font><font size=3>: right (logically higher) sibling block, 0 if none<br>
<B>recs</B></font><font size=3>: [leaf blocks only] array of inode records. Each record contains</font> <font size=3><B>startino</B></font></p>
</td>
</tr>
</table>
<br>
<!-- Page: 9  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>allocation&shy;group relative inode number,</font> <font size=3><B>freecount</B></font> <font size=3>count of free inodes in this chunk, and</font> <font size=3><B>free</B></font> <font size=3>bitmap, LSB corresponds to inode 0<br>
<B>keys</B></font><font size=3>: [nonleaf blocks only] array of key records. These are the first value of each block in the level below this one. Each record contains</font> <font size=3><B>startino<br>
ptrs</B></font><font size=3>: [nonleaf blocks only] array of child block pointers. Each pointer is a block number within the allocation group to the next level in the Btree</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>inode</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Inodes are allocated in ``chunks'' of 64 inodes each. Usually a chunk is multiple filesystem blocks, although there are cases with large filesystem blocks where a chunk is less than one block. The inode Btree (see</font> <font size=3><B>inobt</B></font> <font size=3>above) refers to the inode numbers per allocation group. The inode numbers directly reflect the location of the inode block on disk. Use the</font> <font size=3><B>inode</B></font> <font size=3>command to point</font> <font size=3><I>xfs_db</I></font> <font size=3>to a specific inode. Each inode contains four regions:</font> <font size=3><B>core</B></font><font size=3>,</font> <font size=3><B>next_unlinked</B></font><font size=3>,</font> <font size=3><B>u</B></font><font size=3>, and</font> <font size=3><B>a</B></font><font size=3>.</font> <font size=3><B>core</B></font> <font size=3>contains the fixed information.</font> <font size=3><B>next_unlinked</B></font> <font size=3>is separated from the core due to journalling considerations, see type</font> <font size=3><B>agi</B></font> <font size=3>field</font> <font size=3><B>unlinked</B></font><font size=3>.</font> <font size=3><B>u</B></font> <font size=3>is a union structure that is different in size and format depending on the type and representation of the file data (``data fork'').</font> <font size=3><B>a</B></font> <font size=3>is an optional union structure to describe attribute data, that is different in size, format, and location depending on the presence and representation of attribute data, and the size of the</font> <font size=3><B>u</B></font> <font size=3>data (``attribute fork'').</font> <font size=3><I>xfs_db</I></font> <font size=3>automatically selects the proper union members based on information in the inode.<br>
The following are fields in the inode core:<br>
<B>magic</B></font><font size=3>: inode magic number, 0x494e ('IN')<br>
<B>mode</B></font><font size=3>: mode and type of file, as described in</font> <font size=3><B>chmod</B></font><font size=3>(2),</font> <font size=3><B>mknod</B></font><font size=3>(2), and</font> <font size=3><B>stat</B></font><font size=3>(2)<br>
<B>version</B></font><font size=3>: inode version, 1 or 2<br>
<B>format</B></font><font size=3>: format of</font> <font size=3><B>u</B></font> <font size=3>union data (0: dev_t, 1: local file - in&shy;inode directory or symlink, 2: extent list, 3: Btree root, 4: unique id [unused])<br>
<B>nlinkv1</B></font><font size=3>: number of links to the file in a version 1 inode<br>
<B>nlinkv2</B></font><font size=3>: number of links to the file in a version 2 inode<br>
<B>projid</B></font><font size=3>: owner's project id (version 2 inode only)<br>
<B>uid</B></font><font size=3>: owner's user id<br>
<B>gid</B></font><font size=3>: owner's group id<br>
<B>atime</B></font><font size=3>: time last accessed (seconds and nanoseconds)<br>
<B>mtime</B></font><font size=3>: time last modified<br>
<B>ctime</B></font><font size=3>: time created or inode last modified<br>
<B>size</B></font><font size=3>: number of bytes in the file<br>
<B>nblocks</B></font><font size=3>: total number of blocks in the file including indirect and attribute<br>
<B>extsize</B></font><font size=3>: basic/minimum extent size for the file, used only for realtime<br>
<B>nextents</B></font><font size=3>: number of extents in the data fork<br>
<B>naextents</B></font><font size=3>: number of extents in the attribute fork<br>
<B>forkoff</B></font><font size=3>: attribute fork offset in the inode, in 64&shy;bit words from the start of</font> <font size=3><B>u<br>
aformat</B></font><font size=3>: format of</font> <font size=3><B>a</B></font> <font size=3>data (1: local attribute data, 2: extent list, 3: Btree root)<br>
<B>dmevmask</B></font><font size=3>: DMAPI event mask<br>
<B>dmstate</B></font><font size=3>: DMAPI state information<br>
<B>newrtbm</B></font><font size=3>: file is the realtime bitmap and is ``new'' format<br>
<B>prealloc</B></font><font size=3>: file has preallocated data space after EOF<br>
<B>realtime</B></font><font size=3>: file data is in the realtime subvolume<br>
<B>gen</B></font><font size=3>: inode generation number</font></p>
<p><font size=3>The following fields are in the</font> <font size=3><B>u</B></font> <font size=3>data fork union:<br>
<B>bmbt</B></font><font size=3>: bmap Btree root. This looks like a</font> <font size=3><B>bmapbtd</B></font> <font size=3>block with redundant information removed<br>
<B>bmx</B></font><font size=3>: array of extent descriptors<br>
<B>dev</B></font><font size=3>: dev_t for the block or character device<br>
<B>sfdir</B></font><font size=3>: shortform (in&shy;inode) version 1 directory. This consists of a</font> <font size=3><B>hdr</B></font> <font size=3>containing the</font> <font size=3><B>parent</B></font> <font size=3>inode number and a</font> <font size=3><B>count</B></font> <font size=3>of active entries in the directory, followed by an array</font> <font size=3><B>list</B></font> <font size=3>of</font> <font size=3><B>hdr</B></font><font size=3>.</font><font size=3><B>count</B></font> <font size=3>entries. Each such entry contains</font> <font size=3><B>inumber</B></font><font size=3>,</font> <font size=3><B>namelen</B></font><font size=3>, and</font> <font size=3><B>name</B></font> <font size=3>string<br>
<B>sfdir2</B></font><font size=3>: shortform (in&shy;inode) version 2 directory. This consists of a</font> <font size=3><B>hdr</B></font> <font size=3>containing a</font> <font size=3><B>count</B></font> <font size=3>of active entries in the directory, an</font> <font size=3><B>i8count</B></font> <font size=3>of entries with inumbers that don't fit in a 32&shy;bit value, and the</font> <font size=3><B>parent</B></font> <font size=3>inode number, followed by an array</font> <font size=3><B>list</B></font> <font size=3>of</font> <font size=3><B>hdr</B></font><font size=3>.</font><font size=3><B>count</B></font> <font size=3>entries. Each such entry contains</font> <font size=3><B>namelen</B></font><font size=3>, a saved</font> <font size=3><B>offset</B></font> <font size=3>used when the directory is converted to a larger form, a</font> <font size=3><B>name</B></font> <font size=3>string, and the</font> <font size=3><B>inumber</B></font></p>
</td>
</tr>
</table>
<br>
<!-- Page: 10  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>symlink</B></font><font size=3>: symbolic link string value</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>The following fields are in the</font> <font size=3><B>a</B></font> <font size=3>attribute fork union if it exists:</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>bmbt</B></font><font size=3>: bmap Btree root, as above</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>bmx</B></font><font size=3>: array of extent descriptors</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>sfattr</B></font><font size=3>: shortform (in&shy;inode) attribute values. This consists of a</font> <font size=3><B>hdr</B></font> <font size=3>containing a</font> <font size=3><B>totsize</B></font> <font size=3>(total size in bytes) and a</font> <font size=3><B>count</B></font> <font size=3>of active entries, followed by an array</font> <font size=3><B>list</B></font> <font size=3>of</font> <font size=3><B>hdr</B></font><font size=3>.</font><font size=3><B>count</B></font> <font size=3>entries. Each such entry contains</font> <font size=3><B>namelen</B></font><font size=3>,</font> <font size=3><B>valuelen</B></font><font size=3>,</font> <font size=3><B>root</B></font> <font size=3>flag,</font> <font size=3><B>name</B></font><font size=3>, and</font> <font size=3><B>value</B></font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>log</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Log blocks contain the journal entries for XFS. It's not useful to examine these with</font> <font size=3><I>xfs_db</I></font><font size=3>, use</font> <font size=3><I>xfs_logprint</I></font><font size=3>(8) instead.</font></p>
</td>
</tr>
</table>
<a name="rtbitmap"></a><h2>rtbitmap</h2>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>If the filesystem has a realtime subvolume, then the</font> <font size=3><B>rbmino</B></font> <font size=3>field in the superblock refers to a file that contains the realtime bitmap. Each bit in the bitmap file controls the allocation of a single realtime extent (set == free). The bitmap is processed in 32&shy;bit words, the LSB of a word is used for the first extent controlled by that bitmap word. The</font> <font size=3><B>atime</B></font> <font size=3>field of the realtime bitmap inode contains a counter that is used to control where the next new realtime file will start.</font></p>
</td>
</tr>
</table>
<a name="rtsummary"></a><h2>rtsummary</h2>
<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>If the filesystem has a realtime subvolume, then the</font> <font size=3><B>rsumino</B></font> <font size=3>field in the superblock refers to a file that contains the realtime summary data. The summary file contains a two&shy;dimensional array of 16&shy;bit values. Each value counts the number of free extent runs (consecutive free realtime extents) of a given range of sizes that starts in a given bitmap block. The size ranges are binary buckets (low size in the bucket is a power of 2). There are as many size ranges as are necessary given the size of the realtime subvolume. The first dimension is the size range, the second dimension is the starting bitmap block number (adjacent entries are for the same size, adjacent bitmap blocks).</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>sb</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>There is one sb (superblock) structure per allocation group. It is the first disk block in the allocation group. Only the first one (block 0 of the filesystem) is actually used; the other blocks are redundant information for</font> <font size=3><I>xfs_repair</I></font><font size=3>(8) to use if the first superblock is damaged. Fields defined:<br>
<B>magicnum</B></font><font size=3>: superblock magic number, 0x58465342 ('XFSB')<br>
<B>blocksize</B></font><font size=3>: filesystem block size in bytes<br>
<B>dblocks</B></font><font size=3>: number of filesystem blocks present in the data subvolume<br>
<B>rblocks</B></font><font size=3>: number of filesystem blocks present in the realtime subvolume<br>
<B>rextents</B></font><font size=3>: number of realtime extents that</font> <font size=3><B>rblocks</B></font> <font size=3>contain<br>
<B>uuid</B></font><font size=3>: unique identifier of the filesystem<br>
<B>logstart</B></font><font size=3>: starting filesystem block number of the log (journal). If this value is 0 the log is ``external''<br>
<B>rootino</B></font><font size=3>: root inode number<br>
<B>rbmino</B></font><font size=3>: realtime bitmap inode number<br>
<B>rsumino</B></font><font size=3>: realtime summary data inode number<br>
<B>rextsize</B></font><font size=3>: realtime extent size in filesystem blocks<br>
<B>agblocks</B></font><font size=3>: size of an allocation group in filesystem blocks<br>
<B>agcount</B></font><font size=3>: number of allocation groups<br>
<B>rbmblocks</B></font><font size=3>: number of realtime bitmap blocks<br>
<B>logblocks</B></font><font size=3>: number of log blocks (filesystem blocks)<br>
<B>versionnum</B></font><font size=3>: filesystem version information. This value is currently 1, 2, 3, or 4 in the low 4 bits. If the low bits are 4 then the other bits have additional meanings. 1 is the original value. 2 means that attributes were used. 3 means that version 2 inodes (large link counts) were used. 4 is the bitmask version of the version number. In this case, the other bits are used as flags (0x0010: attributes were used, 0x0020: version 2 inodes were used, 0x0040: quotas were used, 0x0080: inode cluster alignment is in force, 0x0100: data stripe alignment is in force, 0x0200: the</font> <font size=3><B>shared_vn</B></font> <font size=3>field is used, 0x1000: unwritten extent tracking is on, 0x2000: version 2 directories are in use)<br>
<B>sectsize</B></font><font size=3>: sector size in bytes, currently always 512. This is the size of the superblock and the other header blocks<br>
<B>inodesize</B></font><font size=3>: inode size in bytes</font></p>
</td>
</tr>
</table>

<!-- Page: 11  -->
<!-- left  margin: 220 -->
<!-- right margin: 750 -->

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>inopblock</B></font><font size=3>: number of inodes per filesystem block</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>fname</B></font><font size=3>: obsolete, filesystem name</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>fpack</B></font><font size=3>: obsolete, filesystem pack name</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>blocklog</B></font><font size=3>: log2 of</font> <font size=3><B>blocksize</B></font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>sectlog</B></font><font size=3>: log2 of</font> <font size=3><B>sectsize</B></font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>inodelog</B></font><font size=3>: log2 of</font> <font size=3><B>inodesize</B></font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>inopblog</B></font><font size=3>: log2 of</font> <font size=3><B>inopblock</B></font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>agblklog</B></font><font size=3>: log2 of</font> <font size=3><B>agblocks</B></font> <font size=3>(rounded up)</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>rextslog</B></font><font size=3>: log2 of</font> <font size=3><B>rextents</B></font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>inprogress</B></font><font size=3>:</font> <font size=3><I>mkfs.xfs</I></font><font size=3>(8) aborted before completing this filesystem</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>imax_pct</B></font><font size=3>: maximum percentage of filesystem space used for inode blocks</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>icount</B></font><font size=3>: number of allocated inodes</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>ifree</B></font><font size=3>: number of allocated inodes that are not in use</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>fdblocks</B></font><font size=3>: number of free data blocks</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>frextents</B></font><font size=3>: number of free realtime extents</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>uquotino</B></font><font size=3>: user quota inode number</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>pquotino</B></font><font size=3>: project quota inode number; this is currently unused</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="2" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="27%">
</td>
<td valign="top" align="left" width="72%">
<p><font size=3><B>qflags</B></font><font size=3>: quota status flags (0x01: user quota accounting is on, 0x02: user quota limits are enforced, 0x04: quotacheck has been run on user quotas, 0x08: project quota accounting is on, 0x10: project quota limits are enforced, 0x20: quotacheck has been run on project quotas)<br>
<B>flags</B></font><font size=3>: random flags. 0x01: only read&shy;only mounts are allowed<br>
<B>shared_vn</B></font><font size=3>: shared version number (shared readonly filesystems)<br>
<B>inoalignmt</B></font><font size=3>: inode chunk alignment in filesystem blocks<br>
<B>unit</B></font><font size=3>: stripe or RAID unit<br>
<B>width</B></font><font size=3>: stripe or RAID width<br>
<B>dirblklog</B></font><font size=3>: log2 of directory block size (filesystem blocks)</font></p>
</td>
</tr>
</table>

<table width="99%" rules="none" frame="none" cols="3" cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td valign="top" align="left" width="18%">
</td>
<td valign="top" align="left" width="9%">
<p><font size=3><B>symlink</B></font></p>
</td>
<td valign="top" align="left" width="72%">
<p><font size=3>Symbolic link blocks are used only when the symbolic link value does not fit inside the inode. The block content is just the string value. Bytes past the logical end of the symbolic link value have arbitrary values.</font></p>
</td>
</tr>
</table>
<a name="DIAGNOSTICS"></a><h2>DIAGNOSTICS</h2><p style="margin-left: 18%"><font size=3>Many messages can come from the</font> <font size=3><B>check</B></font> <font size=3>(</font><font size=3><B>blockget</B></font><font size=3>) command; these are documented in</font> <font size=3><I>xfs_check</I></font><font size=3>(8).</font></p>
<a name="SEE ALSO"></a><h2>SEE ALSO</h2><p style="margin-left: 18%"><font size=3>mkfs.xfs(8), xfs_check(8), xfs_copy(8), xfs_logprint(8), xfs_ncheck(8), xfs_repair(8), chmod(2), mknod(2), stat(2), xfs(5).</font><br>
</p>
</body>
</html>