2004-06-10 10:40:59 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-05-14 02:51:03 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
2005-04-04 04:52:42 +08:00
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-10 10:40:59 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2004-06-24 02:53:05 +08:00
|
|
|
|
2006-04-27 18:48:30 +08:00
|
|
|
<!-- Inserted as a reminder to do this. The mention of a test suite
|
|
|
|
is usually right before the root user installation commands. Please
|
|
|
|
delete these 12 (including one blank) lines after you are done.-->
|
|
|
|
|
|
|
|
<!-- Use one of the two mentions below about a test suite,
|
|
|
|
delete the line that is not applicable. Of course, if the
|
|
|
|
test suite uses syntax other than "make check", revise the
|
|
|
|
line to reflect the actual syntax to run the test suite -->
|
|
|
|
|
|
|
|
<!-- <para>This package does not come with a test suite.</para> -->
|
|
|
|
<!-- <para>To test the results, issue: <command>make check</command>.</para> -->
|
|
|
|
|
2004-06-24 02:53:05 +08:00
|
|
|
<!ENTITY xfsprogs-download-http "http://mirrors.sunsite.dk/xfs/download/cmd_tars/xfsprogs-&xfsprogs-version;.src.tar.gz">
|
2005-01-28 02:24:29 +08:00
|
|
|
<!ENTITY xfsprogs-download-ftp "ftp://oss.sgi.com/projects/xfs/download/cmd_tars/xfsprogs-&xfsprogs-version;.src.tar.gz">
|
2006-03-01 13:18:41 +08:00
|
|
|
<!ENTITY xfsprogs-md5sum "d4a78fced98c0f3f32627a473e8e0a59">
|
|
|
|
<!ENTITY xfsprogs-size "878 KB">
|
|
|
|
<!ENTITY xfsprogs-buildsize "17.3 MB">
|
|
|
|
<!ENTITY xfsprogs-time "0.78 SBU">
|
2004-06-10 10:40:59 +08:00
|
|
|
]>
|
|
|
|
|
2003-09-27 02:58:36 +08:00
|
|
|
<sect1 id="xfs" xreflabel="XFS-&xfsprogs-version;">
|
2005-05-14 02:51:03 +08:00
|
|
|
<?dbhtml filename="xfsfs.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>XFS-&xfsprogs-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="xfs">
|
|
|
|
<primary sortas="a-XFS">XFS</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to XFS</title>
|
|
|
|
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>The <application>XFS</application> package contains administration
|
2005-05-14 02:51:03 +08:00
|
|
|
and debugging tools for the XFS file system.</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&xfsprogs-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&xfsprogs-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &xfsprogs-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &xfsprogs-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &xfsprogs-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &xfsprogs-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2006-04-11 02:38:22 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/xfs"/></para>
|
|
|
|
|
2005-05-14 02:51:03 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of XFS</title>
|
|
|
|
|
|
|
|
<note>
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>If you did not install the
|
2005-05-31 00:03:52 +08:00
|
|
|
<ulink url="&lfs-root;/chapter06/e2fsprogs.html">E2fsprogs</ulink>
|
2005-05-31 05:58:03 +08:00
|
|
|
package in LFS, you must install it, or
|
2006-03-01 13:18:41 +08:00
|
|
|
<ulink url="http://pecl.php.net/package/uuid">UUID</ulink> before
|
2005-05-14 02:51:03 +08:00
|
|
|
proceeding with the installation of <application>XFS</application>.</para>
|
|
|
|
</note>
|
|
|
|
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>Install <application>XFS</application> by running the following
|
2005-05-14 02:51:03 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2006-03-01 13:18:41 +08:00
|
|
|
<screen><userinput>sed -i '/autoconf/d' Makefile &&
|
|
|
|
make DEBUG=-DNDEBUG</userinput></screen>
|
2005-05-14 02:51:03 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
2006-03-01 13:18:41 +08:00
|
|
|
<para>The <application>XFS</application> library installation is
|
|
|
|
incomplete. To finish the installation, issue the following commands
|
|
|
|
as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>chmod -v 755 /lib/libhandle.so* &&
|
|
|
|
install -v -m755 -D libhandle/libhandle.la /usr/lib/libhandle.la &&
|
|
|
|
install -v -m644 libhandle/.libs/libhandle.a /usr/lib &&
|
|
|
|
ln -sv ../../lib/libhandle.so.1 /usr/lib/libhandle.so</userinput></screen>
|
|
|
|
|
2005-05-14 02:51:03 +08:00
|
|
|
</sect2>
|
|
|
|
|
2005-07-31 13:47:39 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2006-03-01 13:18:41 +08:00
|
|
|
<para><command>sed -i '/autoconf/d' Makefile</command>: This command
|
2005-07-31 13:47:39 +08:00
|
|
|
disables running <command>autoconf</command> because it is
|
|
|
|
unnecessary.</para>
|
|
|
|
|
2006-03-01 13:18:41 +08:00
|
|
|
<para><command>make DEBUG=-DNDEBUG</command>: The <application>XFS
|
|
|
|
</application> build will fail using the default -DDEBUG flags.</para>
|
|
|
|
|
|
|
|
<para><parameter>OPTIMIZER="..."</parameter>: Adding this parameter to
|
|
|
|
the <command>make</command> command overrides the default optimization
|
|
|
|
settings.</para>
|
|
|
|
|
|
|
|
<para><command>install -v ...</command>: These commands install the
|
|
|
|
static library and libtool archive for <filename>libhandle</filename>.</para>
|
|
|
|
|
|
|
|
<para><command>ln -sv ...</command>: This command installs a symlink
|
|
|
|
that is missed by the <command>make install</command> command.</para>
|
|
|
|
|
2005-07-31 13:47:39 +08:00
|
|
|
</sect2>
|
|
|
|
|
2005-05-14 02:51:03 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2005-05-31 05:58:03 +08:00
|
|
|
<seg>fsck.xfs, mkfs.xfs, xfs_admin, xfs_bmap, xfs_check, xfs_copy,
|
|
|
|
xfs_db, xfs_freeze, xfs_growfs, xfs_info, xfs_io, xfs_logprint,
|
2005-05-14 02:51:03 +08:00
|
|
|
xfs_mkfile, xfs_ncheck, xfs_repair, and xfs_rtcp</seg>
|
2006-04-11 02:38:22 +08:00
|
|
|
<seg>libhandle.{so,a}</seg>
|
2005-05-14 02:51:03 +08:00
|
|
|
<seg>/usr/share/doc/xfsprogs</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="fsck.xfs">
|
|
|
|
<term><command>fsck.xfs</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>simply exits with a zero status, since XFS
|
2005-05-14 02:51:03 +08:00
|
|
|
partitions are checked at mount time.</para>
|
|
|
|
<indexterm zone="xfs fsck.xfs">
|
|
|
|
<primary sortas="b-fsck.xfs">fsck.xfs</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="mkfs.xfs">
|
|
|
|
<term><command>mkfs.xfs</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>constructs an XFS file system.</para>
|
|
|
|
<indexterm zone="xfs mkfs.xfs">
|
|
|
|
<primary sortas="b-mkfs.xfs">mkfs.xfs</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_admin">
|
|
|
|
<term><command>xfs_admin</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>changes the parameters of an XFS file system.</para>
|
|
|
|
<indexterm zone="xfs xfs_admin">
|
|
|
|
<primary sortas="b-xfs_admin">xfs_admin</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_bmap">
|
|
|
|
<term><command>xfs_bmap</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>prints block mapping for an XFS file.</para>
|
|
|
|
<indexterm zone="xfs xfs_bmap">
|
|
|
|
<primary sortas="b-xfs_bmap">xfs_bmap</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_check">
|
|
|
|
<term><command>xfs_check</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>checks XFS file system consistency.</para>
|
|
|
|
<indexterm zone="xfs xfs_check">
|
|
|
|
<primary sortas="b-xfs_check">xfs_check</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_copy">
|
|
|
|
<term><command>xfs_copy</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>copies the contents of an XFS file system
|
2005-05-14 02:51:03 +08:00
|
|
|
to one or more targets in parallel.</para>
|
|
|
|
<indexterm zone="xfs xfs_copy">
|
|
|
|
<primary sortas="b-xfs_copy">xfs_copy</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_db">
|
|
|
|
<term><command>xfs_db</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is used to debug an XFS file system.</para>
|
|
|
|
<indexterm zone="xfs xfs_db">
|
|
|
|
<primary sortas="b-xfs_db">xfs_db</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_freeze">
|
|
|
|
<term><command>xfs_freeze</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>suspends access to an XFS file system.</para>
|
|
|
|
<indexterm zone="xfs xfs_freeze">
|
|
|
|
<primary sortas="b-xfs_freeze">xfs_freeze</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_growfs">
|
|
|
|
<term><command>xfs_growfs</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>expands an XFS file system.</para>
|
|
|
|
<indexterm zone="xfs xfs_growfs">
|
|
|
|
<primary sortas="b-xfs_growfs">xfs_growfs</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_info">
|
|
|
|
<term><command>xfs_info</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>is equivalent to invoking <command>xfs_growfs</command>, but
|
2005-05-14 02:51:03 +08:00
|
|
|
specifying that no change to the file system is to be made.</para>
|
|
|
|
<indexterm zone="xfs xfs_info">
|
|
|
|
<primary sortas="b-xfs_info">xfs_info</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_io">
|
|
|
|
<term><command>xfs_io</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>is a debugging tool like <command>xfs_db</command>, but is
|
|
|
|
aimed at examining the regular file I/O path rather than the raw
|
2005-05-14 02:51:03 +08:00
|
|
|
XFS volume itself.</para>
|
|
|
|
<indexterm zone="xfs xfs_io">
|
|
|
|
<primary sortas="b-xfs_io">xfs_io</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_logprint">
|
|
|
|
<term><command>xfs_logprint</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>prints the log of an XFS file system.</para>
|
|
|
|
<indexterm zone="xfs xfs_logprint">
|
|
|
|
<primary sortas="b-xfs_logprint">xfs_logprint</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_mkfile">
|
|
|
|
<term><command>xfs_mkfile</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>creates an XFS file, padded with zeroes by default.</para>
|
|
|
|
<indexterm zone="xfs xfs_mkfile">
|
|
|
|
<primary sortas="b-xfs_mkfile">xfs_mkfile</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_ncheck">
|
|
|
|
<term><command>xfs_ncheck</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>generates pathnames from inode numbers for an
|
2005-05-14 02:51:03 +08:00
|
|
|
XFS file system.</para>
|
|
|
|
<indexterm zone="xfs xfs_ncheck">
|
|
|
|
<primary sortas="b-xfs_ncheck">xfs_ncheck</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-03-01 13:18:41 +08:00
|
|
|
<varlistentry id="xfs_quota">
|
|
|
|
<term><command>xfs_quota</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a utility for reporting and editing various
|
|
|
|
aspects of filesystem quota.</para>
|
|
|
|
<indexterm zone="xfs xfs_quota">
|
|
|
|
<primary sortas="b-xfs_quota">xfs_quota</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2005-05-14 02:51:03 +08:00
|
|
|
<varlistentry id="xfs_repair">
|
|
|
|
<term><command>xfs_repair</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>repairs corrupt or damaged XFS file systems.</para>
|
|
|
|
<indexterm zone="xfs xfs_repair">
|
|
|
|
<primary sortas="b-xfs_repair">xfs_repair</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xfs_rtcp">
|
|
|
|
<term><command>xfs_rtcp</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>copies a file to the real-time partition on an
|
2005-05-14 02:51:03 +08:00
|
|
|
XFS file system.</para>
|
|
|
|
<indexterm zone="xfs xfs_rtcp">
|
|
|
|
<primary sortas="b-xfs_rtcp">xfs_rtcp</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libhandle">
|
|
|
|
<term><filename class='libraryfile'>libhandle.so</filename></term>
|
|
|
|
<listitem>
|
2005-05-31 05:58:03 +08:00
|
|
|
<para>contains functions to map filesystem handles to a
|
2005-05-14 02:51:03 +08:00
|
|
|
corresponding open file descriptor for that filesystem.</para>
|
|
|
|
<indexterm zone="xfs libhandle">
|
|
|
|
<primary sortas="c-libhandle">libhandle.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
</sect1>
|