glfs/postlfs/filesystems/btrfs-progs.xml

213 lines
6.5 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY btrfs-progs-download-http "https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v&btrfs-progs-version;.tar.xz">
<!ENTITY btrfs-progs-download-ftp " ">
<!ENTITY btrfs-progs-md5sum "3feb593cb52df7570769559366d5e320">
<!ENTITY btrfs-progs-size "1.2 MB">
<!ENTITY btrfs-progs-buildsize "46 MB (add 1.4 GB for tests)">
<!ENTITY btrfs-progs-time "0.4 SBU (add 2.1 SBU for tests)">
]>
<sect1 id="btrfs-progs" xreflabel="btrfs-progs-&btrfs-progs-version;">
<?dbhtml filename="btrfs-progs.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>btrfs-progs-&btrfs-progs-version;</title>
<indexterm zone="btrfs-progs">
<primary sortas="a-btrfs-progs">btrfs-progs</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to btrfs-progs</title>
<para>The <application>btrfs-progs</application> package contains administration
and debugging tools for the B-tree file system (btrfs).</para>
&lfs79_checked;
&gcc6_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&btrfs-progs-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&btrfs-progs-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &btrfs-progs-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &btrfs-progs-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &btrfs-progs-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &btrfs-progs-time;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Btrfs-progs Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="lzo"/>
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="asciidoc"/> and
<xref linkend="xmlto"/> (both required to generate man pages)
</para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/xfs"/></para>
</sect2>
<sect2 role="kernel" id="btrfs-progs-kernel">
<title>Kernel Configuration</title>
<para>Enable the following option in the kernel configuration
and recompile the kernel:</para>
<screen><literal>File systems ---&gt;
&lt;*/M&gt; Btrfs filesystem support [CONFIG_BTRFS_FS]</literal></screen>
<note><para>Other Btrfs options are optional.</para></note>
<indexterm zone="btrfs-progs btrfs-progs-kernel">
<primary sortas="d-xfs">BTRFS Programs</primary>
</indexterm>
</sect2>
<sect2 role="installation">
<title>Installation of btrfs-progs</title>
<para>Install <application>btrfs-progs</application> by running the following
commands:</para>
<screen><userinput>sed -i '1,106 s/\.gz//g' Documentation/Makefile.in &amp;&amp;
./configure --prefix=/usr \
--bindir=/bin \
--libdir=/lib &amp;&amp;
make</userinput></screen>
<para>To test the results, as the <systemitem
class="username">root</systemitem> user, issue: <command>make -k
test</command>. One test, long-device-name-for-ssd, is known to fail.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install &amp;&amp;
ln -sf ../../lib/$(readlink /lib/libbtrfs.so) /usr/lib/libbtrfs.so &amp;&amp;
rm /lib/libbtrfs.{a,so}</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><command>sed ... Documentation/Makefile.in</command>: Disables
compressing man pages to be consistent with the rest of BLFS.</para>
<para><option>--disable-documentation</option>: This option
is needed if the recommended dependencies are not installed.</para>
<para><command>ln -s ... /usr/lib/libbtrfs.so</command>: Creates a
symbolic link in the directory where it is expected.</para>
<para><command>rm /lib/libbtrfs.{a,so}</command>: Removes unneeded
library entries.</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
btrfs,
btrfs-convert,
btrfs-debug-tree,
btrfs-find-root,
btrfs-image,
btrfs-map-logical,
btrfs-select-super,
btrfs-show-super,
btrfs-zero-log,
btrfsck (link to btrfs),
btrfstune,
fsck.btrfs, and
mkfs.btrfs
</seg>
<seg>libbtrfs.so</seg>
<seg>/usr/include/btrfs</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="btrfs-prog">
<term><command>btrfs</command></term>
<listitem>
<para>
is the main interface into btrfs filesystem operations.
</para>
<indexterm zone="btrfs-progs btrfs-prog">
<primary sortas="b-btrfs">btrfs</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="fsck.btrfs">
<term><command>fsck.btrfs</command></term>
<listitem>
<para>
does nothing, but is present for consistency with fstab.
</para>
<indexterm zone="btrfs-progs fsck.btrfs">
<primary sortas="b-fsck.btrfs">fsck.btrfs</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="mkfs.btrfs">
<term><command>mkfs.btrfs</command></term>
<listitem>
<para>creates a btrfs file system.</para>
<indexterm zone="btrfs-progs mkfs.btrfs">
<primary sortas="b-mkfs.btrfs">mkfs.btrfs</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>