[1f1a9e9] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY btrfs-progs-download-http "https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v&btrfs-progs-version;.tar.xz">
|
---|
| 8 | <!ENTITY btrfs-progs-download-ftp " ">
|
---|
[292a840] | 9 | <!ENTITY btrfs-progs-md5sum "39c6395eeb5cb0d642b78464e05d9283">
|
---|
[af40aac4] | 10 | <!ENTITY btrfs-progs-size "1.2 MB">
|
---|
[292a840] | 11 | <!ENTITY btrfs-progs-buildsize "73 MB (add 1.4 GB for tests)">
|
---|
| 12 | <!ENTITY btrfs-progs-time "0.3 SBU (add 6 SBU for tests)">
|
---|
[1f1a9e9] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="btrfs-progs" xreflabel="btrfs-progs-&btrfs-progs-version;">
|
---|
| 16 | <?dbhtml filename="btrfs-progs.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>btrfs-progs-&btrfs-progs-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="btrfs-progs">
|
---|
| 26 | <primary sortas="a-btrfs-progs">btrfs-progs</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to btrfs-progs</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>btrfs-progs</application> package contains administration
|
---|
| 33 | and debugging tools for the B-tree file system (btrfs).</para>
|
---|
| 34 |
|
---|
[ff178b4] | 35 | &lfs79_checked;&gcc6_checked;
|
---|
[1f1a9e9] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&btrfs-progs-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&btrfs-progs-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &btrfs-progs-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &btrfs-progs-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &btrfs-progs-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &btrfs-progs-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 59 | <bridgehead renderas="sect3">Btrfs-progs Dependencies</bridgehead>
|
---|
| 60 |
|
---|
[61439d5] | 61 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 62 | <para role="required">
|
---|
| 63 | <xref linkend="lzo"/>
|
---|
| 64 | </para>
|
---|
| 65 |
|
---|
[1f1a9e9] | 66 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 67 | <para role="recommended">
|
---|
| 68 | <xref linkend="asciidoc"/> and
|
---|
| 69 | <xref linkend="xmlto"/> (both required to generate man pages)
|
---|
| 70 | </para>
|
---|
| 71 |
|
---|
[292a840] | 72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 73 | <para role="optional">
|
---|
| 74 | <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests)
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
[1f1a9e9] | 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url="&blfs-wiki;/xfs"/></para>
|
---|
| 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="kernel" id="btrfs-progs-kernel">
|
---|
| 83 | <title>Kernel Configuration</title>
|
---|
| 84 |
|
---|
| 85 | <para>Enable the following option in the kernel configuration
|
---|
| 86 | and recompile the kernel:</para>
|
---|
| 87 |
|
---|
| 88 | <screen><literal>File systems --->
|
---|
| 89 | <*/M> Btrfs filesystem support [CONFIG_BTRFS_FS]</literal></screen>
|
---|
| 90 |
|
---|
| 91 | <note><para>Other Btrfs options are optional.</para></note>
|
---|
| 92 |
|
---|
| 93 | <indexterm zone="btrfs-progs btrfs-progs-kernel">
|
---|
| 94 | <primary sortas="d-xfs">BTRFS Programs</primary>
|
---|
| 95 | </indexterm>
|
---|
| 96 |
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="installation">
|
---|
| 100 | <title>Installation of btrfs-progs</title>
|
---|
| 101 |
|
---|
| 102 | <para>Install <application>btrfs-progs</application> by running the following
|
---|
| 103 | commands:</para>
|
---|
| 104 |
|
---|
| 105 | <screen><userinput>sed -i '1,106 s/\.gz//g' Documentation/Makefile.in &&
|
---|
| 106 |
|
---|
| 107 | ./configure --prefix=/usr \
|
---|
| 108 | --bindir=/bin \
|
---|
| 109 | --libdir=/lib &&
|
---|
| 110 | make</userinput></screen>
|
---|
| 111 |
|
---|
| 112 | <para>To test the results, as the <systemitem
|
---|
| 113 | class="username">root</systemitem> user, issue: <command>make -k
|
---|
[ff178b4] | 114 | test</command>.</para>
|
---|
[1f1a9e9] | 115 |
|
---|
| 116 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 117 |
|
---|
[01e86d88] | 118 | <screen role="root"><userinput>make install &&
|
---|
[1f1a9e9] | 119 |
|
---|
[01e86d88] | 120 | ln -sf ../../lib/$(readlink /lib/libbtrfs.so) /usr/lib/libbtrfs.so &&
|
---|
[1f1a9e9] | 121 | rm /lib/libbtrfs.{a,so}</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2 role="commands">
|
---|
| 126 | <title>Command Explanations</title>
|
---|
| 127 |
|
---|
| 128 | <para><command>sed ... Documentation/Makefile.in</command>: Disables
|
---|
| 129 | compressing man pages to be consistent with the rest of BLFS.</para>
|
---|
| 130 |
|
---|
[61439d5] | 131 | <para><option>--disable-documentation</option>: This option
|
---|
| 132 | is needed if the recommended dependencies are not installed.</para>
|
---|
| 133 |
|
---|
[1f1a9e9] | 134 | <para><command>ln -s ... /usr/lib/libbtrfs.so</command>: Creates a
|
---|
| 135 | symbolic link in the directory where it is expected.</para>
|
---|
| 136 |
|
---|
| 137 | <para><command>rm /lib/libbtrfs.{a,so}</command>: Removes unneeded
|
---|
| 138 | library entries.</para>
|
---|
| 139 |
|
---|
| 140 | </sect2>
|
---|
| 141 |
|
---|
| 142 | <sect2 role="content">
|
---|
| 143 | <title>Contents</title>
|
---|
| 144 |
|
---|
| 145 | <segmentedlist>
|
---|
| 146 | <segtitle>Installed Programs</segtitle>
|
---|
| 147 | <segtitle>Installed Libraries</segtitle>
|
---|
| 148 | <segtitle>Installed Directories</segtitle>
|
---|
| 149 |
|
---|
| 150 | <seglistitem>
|
---|
| 151 | <seg>
|
---|
| 152 | btrfs,
|
---|
| 153 | btrfs-convert,
|
---|
| 154 | btrfs-debug-tree,
|
---|
| 155 | btrfs-find-root,
|
---|
| 156 | btrfs-image,
|
---|
| 157 | btrfs-map-logical,
|
---|
| 158 | btrfs-select-super,
|
---|
| 159 | btrfs-show-super,
|
---|
| 160 | btrfs-zero-log,
|
---|
| 161 | btrfsck (link to btrfs),
|
---|
| 162 | btrfstune,
|
---|
| 163 | fsck.btrfs, and
|
---|
| 164 | mkfs.btrfs
|
---|
| 165 | </seg>
|
---|
| 166 |
|
---|
| 167 | <seg>libbtrfs.so</seg>
|
---|
| 168 |
|
---|
| 169 | <seg>/usr/include/btrfs</seg>
|
---|
| 170 | </seglistitem>
|
---|
| 171 | </segmentedlist>
|
---|
| 172 |
|
---|
| 173 | <variablelist>
|
---|
| 174 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 175 | <?dbfo list-presentation="list"?>
|
---|
| 176 | <?dbhtml list-presentation="table"?>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="btrfs-prog">
|
---|
| 179 | <term><command>btrfs</command></term>
|
---|
| 180 | <listitem>
|
---|
| 181 | <para>
|
---|
| 182 | is the main interface into btrfs filesystem operations.
|
---|
| 183 | </para>
|
---|
| 184 | <indexterm zone="btrfs-progs btrfs-prog">
|
---|
| 185 | <primary sortas="b-btrfs">btrfs</primary>
|
---|
| 186 | </indexterm>
|
---|
| 187 | </listitem>
|
---|
| 188 | </varlistentry>
|
---|
| 189 |
|
---|
[292a840] | 190 | <varlistentry id="btrfs-convert">
|
---|
| 191 | <term><command>btrfs-convert</command></term>
|
---|
| 192 | <listitem>
|
---|
| 193 | <para>
|
---|
| 194 | converts from ext2/3/4 filesystem to btrfs.
|
---|
| 195 | </para>
|
---|
| 196 | <indexterm zone="btrfs-progs btrfs-convert">
|
---|
| 197 | <primary sortas="b-btrfs-convert">btrfs-convert</primary>
|
---|
| 198 | </indexterm>
|
---|
| 199 | </listitem>
|
---|
| 200 | </varlistentry>
|
---|
| 201 |
|
---|
| 202 | <varlistentry id="btrfs-debug-tree">
|
---|
| 203 | <term><command>btrfs-debug-tree</command></term>
|
---|
| 204 | <listitem>
|
---|
| 205 | <para>
|
---|
| 206 | queries various internal information.
|
---|
| 207 | </para>
|
---|
| 208 | <indexterm zone="btrfs-progs btrfs-debug-tree">
|
---|
| 209 | <primary sortas="b-btrfs-debug-tree">btrfs-debug-tree</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
| 214 | <varlistentry id="btrfs-find-root">
|
---|
| 215 | <term><command>btrfs-find-root</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>
|
---|
| 218 | is a filter to find btrfs root.
|
---|
| 219 | </para>
|
---|
| 220 | <indexterm zone="btrfs-progs btrfs-find-root">
|
---|
| 221 | <primary sortas="b-btrfs-find-root">btrfs-find-root</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="btrfs-map-logical">
|
---|
| 227 | <term><command>btrfs-map-logical</command></term>
|
---|
| 228 | <listitem>
|
---|
| 229 | <para>
|
---|
| 230 | maps btrfs logical extent to physical extent.
|
---|
| 231 | </para>
|
---|
| 232 | <indexterm zone="btrfs-progs btrfs-map-logical">
|
---|
| 233 | <primary sortas="b-btrfs-map-logical">btrfs-map-logical</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 | </listitem>
|
---|
| 236 | </varlistentry>
|
---|
| 237 |
|
---|
| 238 | <varlistentry id="btrfs-select-super">
|
---|
| 239 | <term><command>btrfs-select-super</command></term>
|
---|
| 240 | <listitem>
|
---|
| 241 | <para>
|
---|
| 242 | overwrites primary superblock with a backup copy.
|
---|
| 243 | </para>
|
---|
| 244 | <indexterm zone="btrfs-progs btrfs-select-super">
|
---|
| 245 | <primary sortas="b-btrfs-select-super">btrfs-select-super</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
| 249 |
|
---|
| 250 | <varlistentry id="btrfs-show-super">
|
---|
| 251 | <term><command>btrfs-show-super</command></term>
|
---|
| 252 | <listitem>
|
---|
| 253 | <para>
|
---|
| 254 | queries various internal information.
|
---|
| 255 | </para>
|
---|
| 256 | <indexterm zone="btrfs-progs btrfs-show-super">
|
---|
| 257 | <primary sortas="b-btrfs-show-super">btrfs-show-super</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
| 262 | <varlistentry id="btrfs-zero-log">
|
---|
| 263 | <term><command>btrfs-zero-log</command></term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>
|
---|
| 266 | recovers a damaged btrfs filesystem.
|
---|
| 267 | </para>
|
---|
| 268 | <indexterm zone="btrfs-progs btrfs-zero-log">
|
---|
| 269 | <primary sortas="b-btrfs-zero-log">btrfs-zero-log</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="btrfstune">
|
---|
| 275 | <term><command>btrfstune</command></term>
|
---|
| 276 | <listitem>
|
---|
| 277 | <para>
|
---|
| 278 | tunes various filesystem parameters.
|
---|
| 279 | </para>
|
---|
| 280 | <indexterm zone="btrfs-progs btrfstune">
|
---|
| 281 | <primary sortas="b-btrfstune">btrfstune</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 |
|
---|
[1f1a9e9] | 286 | <varlistentry id="fsck.btrfs">
|
---|
| 287 | <term><command>fsck.btrfs</command></term>
|
---|
| 288 | <listitem>
|
---|
| 289 | <para>
|
---|
| 290 | does nothing, but is present for consistency with fstab.
|
---|
| 291 | </para>
|
---|
| 292 | <indexterm zone="btrfs-progs fsck.btrfs">
|
---|
| 293 | <primary sortas="b-fsck.btrfs">fsck.btrfs</primary>
|
---|
| 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
| 297 |
|
---|
| 298 | <varlistentry id="mkfs.btrfs">
|
---|
| 299 | <term><command>mkfs.btrfs</command></term>
|
---|
| 300 | <listitem>
|
---|
| 301 | <para>creates a btrfs file system.</para>
|
---|
| 302 | <indexterm zone="btrfs-progs mkfs.btrfs">
|
---|
| 303 | <primary sortas="b-mkfs.btrfs">mkfs.btrfs</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
| 308 | </variablelist>
|
---|
| 309 |
|
---|
| 310 | </sect2>
|
---|
| 311 |
|
---|
| 312 | </sect1>
|
---|