[4122007] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[4122007] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[b8fa16e] | 6 |
|
---|
[59ebf93] | 7 | <!-- <!ENTITY xfsprogs-download-http "http://mirrors.sunsite.dk/xfs/download/cmd_tars/xfsprogs_&xfsprogs-version;-1.tar.gz"> -->
|
---|
[9f28cbee] | 8 | <!ENTITY xfsprogs-download-http "&files-anduin;/sources/xfsprogs_&xfsprogs-version;-1.tar.gz">
|
---|
| 9 | <!-- <!ENTITY xfsprogs-download-ftp "ftp://oss.sgi.com/projects/xfs/download/cmd_tars/xfsprogs_&xfsprogs-version;-1.tar.gz"> -->
|
---|
| 10 | <!ENTITY xfsprogs-download-ftp " ">
|
---|
[857d5ca] | 11 | <!ENTITY xfsprogs-md5sum "2bba6d3e4183defacf99e5e8ce805460">
|
---|
[c65d4375] | 12 | <!ENTITY xfsprogs-size "976 KB">
|
---|
| 13 | <!ENTITY xfsprogs-buildsize "37 MB">
|
---|
| 14 | <!ENTITY xfsprogs-time "0.6 SBU">
|
---|
[4122007] | 15 | ]>
|
---|
| 16 |
|
---|
[79f87f94] | 17 | <sect1 id="xfs" xreflabel="XFS-&xfsprogs-version;">
|
---|
[152fb77] | 18 | <?dbhtml filename="xfsfs.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>XFS-&xfsprogs-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="xfs">
|
---|
| 28 | <primary sortas="a-XFS">XFS</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to XFS</title>
|
---|
| 33 |
|
---|
[99b1c520] | 34 | <para>The <application>XFS</application> package contains administration
|
---|
[152fb77] | 35 | and debugging tools for the XFS file system.</para>
|
---|
| 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&xfsprogs-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&xfsprogs-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &xfsprogs-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &xfsprogs-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &xfsprogs-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &xfsprogs-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
[9f28cbee] | 59 | <caution><para>The XFS developers regularly remove the current
|
---|
| 60 | package when a new package is available. Unfortunately, this has led to
|
---|
[410e228b] | 61 | severe incompatibilities, including
|
---|
[9f28cbee] | 62 | <ulink url="http://bugs.debian.org/465737">unmountable filesystems</ulink>,
|
---|
| 63 | due to kernel version requirements in new versions of the package. Using a
|
---|
| 64 | version not in the book is strongly discouraged. Additional information,
|
---|
| 65 | is available at the
|
---|
| 66 | <ulink url="http://oss.sgi.com/projects/xfs/">XFS</ulink> project
|
---|
| 67 | page.</para></caution>
|
---|
| 68 |
|
---|
[410e228b] | 69 | <!-- For more information on this problem, see this thread on BLFS-Dev
|
---|
[9f28cbee] | 70 | http://linuxfromscratch.org/pipermail/blfs-dev/2008-March/018311.html
|
---|
[410e228b] | 71 | -->
|
---|
[3597eb6] | 72 | <para condition="html" role="usernotes">User Notes:
|
---|
| 73 | <ulink url="&blfs-wiki;/xfs"/></para>
|
---|
| 74 |
|
---|
[152fb77] | 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2 role="installation">
|
---|
| 78 | <title>Installation of XFS</title>
|
---|
| 79 |
|
---|
[99b1c520] | 80 | <para>Install <application>XFS</application> by running the following
|
---|
[152fb77] | 81 | commands:</para>
|
---|
| 82 |
|
---|
[b5972ac] | 83 | <screen><userinput>make DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root \
|
---|
[1ba83240] | 84 | LOCAL_CONFIGURE_OPTIONS="--enable-readline=yes"</userinput></screen>
|
---|
| 85 |
|
---|
| 86 | <para>This package does not come with a test suite.</para>
|
---|
[152fb77] | 87 |
|
---|
| 88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 89 |
|
---|
[381628a] | 90 | <screen role="root"><userinput>make install &&
|
---|
[1ba83240] | 91 | make install-dev &&
|
---|
| 92 | chmod -v 755 /lib/libhandle.so* &&
|
---|
| 93 | rm -f /lib/libhandle.{a,la,so} &&
|
---|
| 94 | ln -svf ../../lib/libhandle.so.1 /usr/lib/libhandle.so</userinput></screen>
|
---|
[2da2e6a] | 95 |
|
---|
[152fb77] | 96 | </sect2>
|
---|
| 97 |
|
---|
[55329727] | 98 | <sect2 role="commands">
|
---|
| 99 | <title>Command Explanations</title>
|
---|
| 100 |
|
---|
[410e228b] | 101 | <para><command>make DEBUG=-DNDEBUG</command>: Turns off debugging
|
---|
[b160786] | 102 | symbols.</para>
|
---|
[2da2e6a] | 103 |
|
---|
[1ba83240] | 104 | <para><parameter>INSTALL_USER=root INSTALL_GROUP=root</parameter>: This
|
---|
| 105 | sets the owner and group of the installed files.</para>
|
---|
| 106 | <!-- relevant only if building as non-root -->
|
---|
[864b24de] | 107 |
|
---|
[1ba83240] | 108 | <para><parameter>LOCAL_CONFIGURE_OPTIONS="..."</parameter>: This passes
|
---|
| 109 | extra configuration options to the <filename>configure</filename> script.
|
---|
| 110 | The example <parameter>--enable-readline=yes</parameter> parameter
|
---|
| 111 | enables linking the XFS programs with the
|
---|
| 112 | <filename class="libraryfile">libreadline.so</filename> library, in order
|
---|
| 113 | to allow editing interactive commands.</para>
|
---|
[864b24de] | 114 |
|
---|
[2da2e6a] | 115 | <para><parameter>OPTIMIZER="..."</parameter>: Adding this parameter to
|
---|
[1ba83240] | 116 | the end of the <command>make</command> command overrides the
|
---|
| 117 | default optimization settings.</para>
|
---|
| 118 |
|
---|
| 119 | <para><command>make install-dev</command>: This command installs
|
---|
[b160786] | 120 | static XFS libraries, their headers and the corresponding
|
---|
| 121 | documentation.</para>
|
---|
[2da2e6a] | 122 |
|
---|
[55329727] | 123 | </sect2>
|
---|
| 124 |
|
---|
[152fb77] | 125 | <sect2 role="content">
|
---|
| 126 | <title>Contents</title>
|
---|
| 127 |
|
---|
| 128 | <segmentedlist>
|
---|
| 129 | <segtitle>Installed Programs</segtitle>
|
---|
[1ba83240] | 130 | <segtitle>Installed Libraries</segtitle>
|
---|
[152fb77] | 131 | <segtitle>Installed Directory</segtitle>
|
---|
| 132 |
|
---|
| 133 | <seglistitem>
|
---|
[99b1c520] | 134 | <seg>fsck.xfs, mkfs.xfs, xfs_admin, xfs_bmap, xfs_check, xfs_copy,
|
---|
| 135 | xfs_db, xfs_freeze, xfs_growfs, xfs_info, xfs_io, xfs_logprint,
|
---|
[5e72fc7] | 136 | xfs_mdrestore, xfs_metadump, xfs_mkfile, xfs_ncheck, xfs_quota,
|
---|
| 137 | xfs_repair, and xfs_rtcp</seg>
|
---|
[b160786] | 138 | <seg>libdisk.a, libhandle.{so,a}, libxcmd.a, libxfs.a, and
|
---|
| 139 | libxlog.a </seg>
|
---|
[152fb77] | 140 | <seg>/usr/share/doc/xfsprogs</seg>
|
---|
| 141 | </seglistitem>
|
---|
| 142 | </segmentedlist>
|
---|
| 143 |
|
---|
| 144 | <variablelist>
|
---|
| 145 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 146 | <?dbfo list-presentation="list"?>
|
---|
| 147 | <?dbhtml list-presentation="table"?>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="fsck.xfs">
|
---|
| 150 | <term><command>fsck.xfs</command></term>
|
---|
| 151 | <listitem>
|
---|
[99b1c520] | 152 | <para>simply exits with a zero status, since XFS
|
---|
[152fb77] | 153 | partitions are checked at mount time.</para>
|
---|
| 154 | <indexterm zone="xfs fsck.xfs">
|
---|
| 155 | <primary sortas="b-fsck.xfs">fsck.xfs</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="mkfs.xfs">
|
---|
| 161 | <term><command>mkfs.xfs</command></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>constructs an XFS file system.</para>
|
---|
| 164 | <indexterm zone="xfs mkfs.xfs">
|
---|
| 165 | <primary sortas="b-mkfs.xfs">mkfs.xfs</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="xfs_admin">
|
---|
| 171 | <term><command>xfs_admin</command></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>changes the parameters of an XFS file system.</para>
|
---|
| 174 | <indexterm zone="xfs xfs_admin">
|
---|
| 175 | <primary sortas="b-xfs_admin">xfs_admin</primary>
|
---|
| 176 | </indexterm>
|
---|
| 177 | </listitem>
|
---|
| 178 | </varlistentry>
|
---|
| 179 |
|
---|
| 180 | <varlistentry id="xfs_bmap">
|
---|
| 181 | <term><command>xfs_bmap</command></term>
|
---|
| 182 | <listitem>
|
---|
| 183 | <para>prints block mapping for an XFS file.</para>
|
---|
| 184 | <indexterm zone="xfs xfs_bmap">
|
---|
| 185 | <primary sortas="b-xfs_bmap">xfs_bmap</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
| 190 | <varlistentry id="xfs_check">
|
---|
| 191 | <term><command>xfs_check</command></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>checks XFS file system consistency.</para>
|
---|
| 194 | <indexterm zone="xfs xfs_check">
|
---|
| 195 | <primary sortas="b-xfs_check">xfs_check</primary>
|
---|
| 196 | </indexterm>
|
---|
| 197 | </listitem>
|
---|
| 198 | </varlistentry>
|
---|
| 199 |
|
---|
| 200 | <varlistentry id="xfs_copy">
|
---|
| 201 | <term><command>xfs_copy</command></term>
|
---|
| 202 | <listitem>
|
---|
[99b1c520] | 203 | <para>copies the contents of an XFS file system
|
---|
[152fb77] | 204 | to one or more targets in parallel.</para>
|
---|
| 205 | <indexterm zone="xfs xfs_copy">
|
---|
| 206 | <primary sortas="b-xfs_copy">xfs_copy</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
| 211 | <varlistentry id="xfs_db">
|
---|
| 212 | <term><command>xfs_db</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>is used to debug an XFS file system.</para>
|
---|
| 215 | <indexterm zone="xfs xfs_db">
|
---|
| 216 | <primary sortas="b-xfs_db">xfs_db</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="xfs_freeze">
|
---|
| 222 | <term><command>xfs_freeze</command></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>suspends access to an XFS file system.</para>
|
---|
| 225 | <indexterm zone="xfs xfs_freeze">
|
---|
| 226 | <primary sortas="b-xfs_freeze">xfs_freeze</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
| 231 | <varlistentry id="xfs_growfs">
|
---|
| 232 | <term><command>xfs_growfs</command></term>
|
---|
| 233 | <listitem>
|
---|
| 234 | <para>expands an XFS file system.</para>
|
---|
| 235 | <indexterm zone="xfs xfs_growfs">
|
---|
| 236 | <primary sortas="b-xfs_growfs">xfs_growfs</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
| 241 | <varlistentry id="xfs_info">
|
---|
| 242 | <term><command>xfs_info</command></term>
|
---|
| 243 | <listitem>
|
---|
[99b1c520] | 244 | <para>is equivalent to invoking <command>xfs_growfs</command>, but
|
---|
[152fb77] | 245 | specifying that no change to the file system is to be made.</para>
|
---|
| 246 | <indexterm zone="xfs xfs_info">
|
---|
| 247 | <primary sortas="b-xfs_info">xfs_info</primary>
|
---|
| 248 | </indexterm>
|
---|
| 249 | </listitem>
|
---|
| 250 | </varlistentry>
|
---|
| 251 |
|
---|
| 252 | <varlistentry id="xfs_io">
|
---|
| 253 | <term><command>xfs_io</command></term>
|
---|
| 254 | <listitem>
|
---|
[99b1c520] | 255 | <para>is a debugging tool like <command>xfs_db</command>, but is
|
---|
| 256 | aimed at examining the regular file I/O path rather than the raw
|
---|
[152fb77] | 257 | XFS volume itself.</para>
|
---|
| 258 | <indexterm zone="xfs xfs_io">
|
---|
| 259 | <primary sortas="b-xfs_io">xfs_io</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
| 264 | <varlistentry id="xfs_logprint">
|
---|
| 265 | <term><command>xfs_logprint</command></term>
|
---|
| 266 | <listitem>
|
---|
| 267 | <para>prints the log of an XFS file system.</para>
|
---|
| 268 | <indexterm zone="xfs xfs_logprint">
|
---|
| 269 | <primary sortas="b-xfs_logprint">xfs_logprint</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
[5e72fc7] | 274 | <varlistentry id="xfs_mdrestore">
|
---|
| 275 | <term><command>xfs_mdrestore</command></term>
|
---|
| 276 | <listitem>
|
---|
| 277 | <para>restores an XFS metadump image to a filesystem image.</para>
|
---|
| 278 | <indexterm zone="xfs xfs_mdrestore">
|
---|
| 279 | <primary sortas="b-xfs_mdrestore">xfs_mdrestore</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
| 283 |
|
---|
| 284 | <varlistentry id="xfs_metadump">
|
---|
| 285 | <term><command>xfs_metadump</command></term>
|
---|
| 286 | <listitem>
|
---|
| 287 | <para>copies XFS filesystem metadata to a file.</para>
|
---|
| 288 | <indexterm zone="xfs xfs_metadump">
|
---|
| 289 | <primary sortas="b-xfs_metadump">xfs_metadump</primary>
|
---|
| 290 | </indexterm>
|
---|
| 291 | </listitem>
|
---|
| 292 | </varlistentry>
|
---|
| 293 |
|
---|
| 294 | <varlistentry id="xfs_mkfile">
|
---|
[152fb77] | 295 | <term><command>xfs_mkfile</command></term>
|
---|
| 296 | <listitem>
|
---|
| 297 | <para>creates an XFS file, padded with zeroes by default.</para>
|
---|
| 298 | <indexterm zone="xfs xfs_mkfile">
|
---|
| 299 | <primary sortas="b-xfs_mkfile">xfs_mkfile</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
| 304 | <varlistentry id="xfs_ncheck">
|
---|
| 305 | <term><command>xfs_ncheck</command></term>
|
---|
| 306 | <listitem>
|
---|
[99b1c520] | 307 | <para>generates pathnames from inode numbers for an
|
---|
[152fb77] | 308 | XFS file system.</para>
|
---|
| 309 | <indexterm zone="xfs xfs_ncheck">
|
---|
| 310 | <primary sortas="b-xfs_ncheck">xfs_ncheck</primary>
|
---|
| 311 | </indexterm>
|
---|
| 312 | </listitem>
|
---|
| 313 | </varlistentry>
|
---|
| 314 |
|
---|
[2da2e6a] | 315 | <varlistentry id="xfs_quota">
|
---|
| 316 | <term><command>xfs_quota</command></term>
|
---|
| 317 | <listitem>
|
---|
| 318 | <para>is a utility for reporting and editing various
|
---|
| 319 | aspects of filesystem quota.</para>
|
---|
| 320 | <indexterm zone="xfs xfs_quota">
|
---|
| 321 | <primary sortas="b-xfs_quota">xfs_quota</primary>
|
---|
| 322 | </indexterm>
|
---|
| 323 | </listitem>
|
---|
| 324 | </varlistentry>
|
---|
| 325 |
|
---|
[152fb77] | 326 | <varlistentry id="xfs_repair">
|
---|
| 327 | <term><command>xfs_repair</command></term>
|
---|
| 328 | <listitem>
|
---|
| 329 | <para>repairs corrupt or damaged XFS file systems.</para>
|
---|
| 330 | <indexterm zone="xfs xfs_repair">
|
---|
| 331 | <primary sortas="b-xfs_repair">xfs_repair</primary>
|
---|
| 332 | </indexterm>
|
---|
| 333 | </listitem>
|
---|
| 334 | </varlistentry>
|
---|
| 335 |
|
---|
| 336 | <varlistentry id="xfs_rtcp">
|
---|
| 337 | <term><command>xfs_rtcp</command></term>
|
---|
| 338 | <listitem>
|
---|
[99b1c520] | 339 | <para>copies a file to the real-time partition on an
|
---|
[152fb77] | 340 | XFS file system.</para>
|
---|
| 341 | <indexterm zone="xfs xfs_rtcp">
|
---|
| 342 | <primary sortas="b-xfs_rtcp">xfs_rtcp</primary>
|
---|
| 343 | </indexterm>
|
---|
| 344 | </listitem>
|
---|
| 345 | </varlistentry>
|
---|
| 346 |
|
---|
| 347 | <varlistentry id="libhandle">
|
---|
| 348 | <term><filename class='libraryfile'>libhandle.so</filename></term>
|
---|
| 349 | <listitem>
|
---|
[1ba83240] | 350 | <para>contains XFS-specific functions that provide a way to perform
|
---|
[a4b9cd7] | 351 | certain filesystem operations without using a file descriptor to
|
---|
| 352 | access filesystem objects.</para>
|
---|
[152fb77] | 353 | <indexterm zone="xfs libhandle">
|
---|
| 354 | <primary sortas="c-libhandle">libhandle.so</primary>
|
---|
| 355 | </indexterm>
|
---|
| 356 | </listitem>
|
---|
| 357 | </varlistentry>
|
---|
[864b24de] | 358 |
|
---|
[fd7e0ed6] | 359 |
|
---|
[b160786] | 360 | <!-- FIXME: other libraries are undocumented 20080221 -->
|
---|
[152fb77] | 361 |
|
---|
| 362 | </variablelist>
|
---|
| 363 |
|
---|
| 364 | </sect2>
|
---|
[f45b1953] | 365 |
|
---|
| 366 | </sect1>
|
---|