source: postlfs/filesystems/btrfs-progs.xml@ ef35d61

12.2 lazarus trunk xry111/for-12.3
Last change on this file since ef35d61 was 61c7e61, checked in by Bruce Dubbs <bdubbs@…>, 5 weeks ago

Update to btrfs-progs-6.10.1.

  • Property mode set to 100644
File size: 11.6 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[1f1a9e9]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
[8dfc5c3]7 <!ENTITY btrfs-progs-download-http "&kernel-dl;/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v&btrfs-progs-version;.tar.xz">
[1f1a9e9]8 <!ENTITY btrfs-progs-download-ftp " ">
[61c7e61]9 <!ENTITY btrfs-progs-md5sum "a72e76a634ad70dd183153bb99034e4c">
[f484ed33]10 <!ENTITY btrfs-progs-size "2.5 MB">
[61c7e61]11 <!ENTITY btrfs-progs-buildsize "65 MB (transient files created during tests need up to 10 GB)">
12 <!ENTITY btrfs-progs-time "0.3 SBU (with parallelism=4; add 4.0 SBU for tests, up to 14 SBU on slow disks)">
[1f1a9e9]13]>
14
15<sect1 id="btrfs-progs" xreflabel="btrfs-progs-&btrfs-progs-version;">
16 <?dbhtml filename="btrfs-progs.html"?>
17
18
19 <title>btrfs-progs-&btrfs-progs-version;</title>
20
21 <indexterm zone="btrfs-progs">
22 <primary sortas="a-btrfs-progs">btrfs-progs</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to btrfs-progs</title>
27
[29244b7]28 <para>
29 The <application>btrfs-progs</application> package contains
30 administration and debugging tools for the B-tree file system (btrfs).
31 </para>
[1f1a9e9]32
[868811b]33 &lfs121_checked;
[1f1a9e9]34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
[29244b7]38 <para>
39 Download (HTTP): <ulink url="&btrfs-progs-download-http;"/>
40 </para>
[1f1a9e9]41 </listitem>
42 <listitem>
[29244b7]43 <para>
44 Download (FTP): <ulink url="&btrfs-progs-download-ftp;"/>
45 </para>
[1f1a9e9]46 </listitem>
47 <listitem>
[29244b7]48 <para>
49 Download MD5 sum: &btrfs-progs-md5sum;
50 </para>
[1f1a9e9]51 </listitem>
52 <listitem>
[29244b7]53 <para>
54 Download size: &btrfs-progs-size;
55 </para>
[1f1a9e9]56 </listitem>
57 <listitem>
[29244b7]58 <para>
59 Estimated disk space required: &btrfs-progs-buildsize;
60 </para>
[1f1a9e9]61 </listitem>
62 <listitem>
[29244b7]63 <para>
64 Estimated build time: &btrfs-progs-time;
65 </para>
[1f1a9e9]66 </listitem>
67 </itemizedlist>
[83d0863f]68
[1f1a9e9]69 <bridgehead renderas="sect3">Btrfs-progs Dependencies</bridgehead>
70
[61439d5]71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required">
[8558044]73 <xref linkend="lzo"/>
[61439d5]74 </para>
[83d0863f]75
[292a840]76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
[27cee7a]78 <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests),
[8674204]79 <xref linkend="sphinx"/> and <xref linkend="sphinx_rtd_theme"/>
80 (required to build documentation), and
[b643f16b]81 <ulink
82 url='https://mirrors.edge.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/'>
83 reiserfsprogs</ulink> (for tests).
[292a840]84 </para>
85
[1f1a9e9]86 </sect2>
87
88 <sect2 role="kernel" id="btrfs-progs-kernel">
89 <title>Kernel Configuration</title>
90
[29244b7]91 <para>
92 Enable the following option in the kernel configuration
93 and recompile the kernel:
94 </para>
[1f1a9e9]95
[d67d543]96 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
97 href="btrfs-progs-kernel.xml"/>
[1f1a9e9]98
[8388aa7]99 <para>
100 In addition to the above and to the options required for
[b643f16b]101 <xref linkend="lvm2"/>, the following
[227ecfb]102 options must be set for running tests. The options marked
103 as empty should <emphasis>not</emphasis> be selected because they
104 are for developers and make some tests fail.
[8388aa7]105 </para>
106
[d67d543]107 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
108 href="btrfs-progs-test-kernel.xml"/>
[1f1a9e9]109
110 <indexterm zone="btrfs-progs btrfs-progs-kernel">
[2630345]111 <primary sortas="d-btrfs-progs">BTRFS Programs</primary>
[1f1a9e9]112 </indexterm>
113
114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of btrfs-progs</title>
[ef94f43]118
[29244b7]119 <para>
120 Install <application>btrfs-progs</application> by running the following
121 commands:
122 </para>
[7b2b4b11]123
[827154b]124<screen><userinput>./configure --prefix=/usr \
125 --disable-static \
126 --disable-documentation &amp;&amp;
[1f1a9e9]127make</userinput></screen>
128
[29244b7]129 <note>
130 <para>
131 Some tests require grep built with perl regular expressions. To
[170e308]132 obtain this, rebuild grep with the LFS Chapter 8 instructions after
[4bd4b77]133 installing <xref linkend="pcre2"/>.
[29244b7]134 </para>
135 </note>
[83d0863f]136
[29244b7]137 <para>
[16d563c]138 Before running tests, build a support program:
[29244b7]139 </para>
[1f1a9e9]140
[85ac148]141<screen remap="test"><userinput>make fssum</userinput></screen>
[32bc8e4c]142
[29244b7]143 <para>
[b0d1dc0]144 To test the results, issue (as the &root; user):
[29244b7]145 </para>
[32bc8e4c]146
[5af02b37]147<screen role="root" remap="test"><userinput>pushd tests
[85ac148]148 ./fsck-tests.sh
149 ./mkfs-tests.sh
150 ./cli-tests.sh
[90696a3b]151 ./convert-tests.sh
[85ac148]152 ./misc-tests.sh
[27cee7a]153 ./fuzz-tests.sh
[32bc8e4c]154popd</userinput></screen>
[b0d1dc0]155
[16d563c]156<!-- Template for failed test removal:
[8388aa7]157 the other ones to run:
158 </para>
159
[37ede2a]160<screen remap="test"><userinput>mv tests/fsck-tests/012-leaf-corruption/test.sh{,.broken}</userinput></screen>
[8558044]161Substitute your test failure with the one above.
[85ac148]162 <para>
163 To test the results, run (as the
[949387d0]164 <systemitem class="username">root</systemitem> user):
[85ac148]165 </para>
166
[8388aa7]167<screen role="root" remap="test"><userinput>make -j1 -k test</userinput></screen>
[16d563c]168-->
[85ac148]169 <note>
170 <para>
171 If the above mentioned kernel options are not enabled, some tests
[416be1c9]172 fail, and prevent all the remaining tests from running because the test
[90696a3b]173 disk image is not cleanly unmounted. Also make sure that the btrfs
174 kernel module is loaded.
[85ac148]175 </para>
176 </note>
[f484ed33]177
[83d0863f]178<!-- 6.10 - No test failures. -->
179
[29244b7]180 <para>
[b0d1dc0]181 Install the package as the &root; user:
[29244b7]182 </para>
[1f1a9e9]183
[16d563c]184<screen role="root"><userinput>make install</userinput></screen>
[1f1a9e9]185
[f7b3469]186 <para>
187 If you have passed <parameter>--disable-documentation</parameter> to
188 <command>configure</command> and you need the manual pages, install them
189 by running, as the &root; user:
190 </para>
191
192<screen role="root"><userinput>for i in 5 8; do
193 install Documentation/*.$i /usr/share/man/man$i
194done</userinput></screen>
195
[1f1a9e9]196 </sect2>
197
198 <sect2 role="commands">
199 <title>Command Explanations</title>
200
[827154b]201 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
202 href="../../xincludes/static-libraries.xml"/>
203
[29244b7]204 <para>
[f7b3469]205 <parameter>--disable-documentation</parameter>: This switch
206 disables rebuilding the manual pages, because it requires
207 <xref linkend="sphinx"/>.
[29244b7]208 </para>
[9164647]209<!--
[29244b7]210 <para>
[827154b]211 <command>sed 's/,orphan_file//" ...</command>: In this version of
212 <application>btrfs-progs</application>, the
213 <command>btrfs-convert</command> program produces a btrfs filesystem
214 containing errors if converting from an ext4 filesystem created
215 with the <quote>orphan_file</quote> feature. This command creates
216 a custom configuration file that prevents creating a filesystem
217 with this feature.
[29244b7]218 </para>
[9164647]219-->
[827154b]220 <!--
[29244b7]221 <para>
[8558044]222 <command>ln -s ... /usr/lib/libbtrfs.so</command>: Creates a
[29244b7]223 symbolic link in the directory where it is expected.
224 </para>
[1f1a9e9]225
[29244b7]226 <para>
227 <command>rm /lib/libbtrfs.{a,so}</command>: Removes unneeded
228 library entries.
229 </para>
[16d563c]230-->
[1f1a9e9]231 </sect2>
[bef4385]232<!--
[827154b]233 <sect2 role="using" id="using-btrfs-convert">
234 <title>Using the btrfs-convert Program</title>
[bef4385]235
[827154b]236 <para>
237 This version of <application>btrfs-progs</application> does not convert
238 correctly ext4 filesystems to btrfs if the ext4
239 <option>orphan_file</option> feature is turned on. If you happen to
240 convert such a filesystem, you need to first run:
241 </para>
242
243<screen role="nodump"><userinput>tune2fs -O ^orphan_file <replaceable>/dev/sdxx</replaceable></userinput></screen>
244
245 <para>
246 where <filename>/dev/sdxx</filename> is the partition of the filesystem
247 you want to convert.
248 </para>
249 </sect2>
[bef4385]250-->
[827154b]251
[1f1a9e9]252 <sect2 role="content">
253 <title>Contents</title>
254
255 <segmentedlist>
256 <segtitle>Installed Programs</segtitle>
257 <segtitle>Installed Libraries</segtitle>
258 <segtitle>Installed Directories</segtitle>
259
260 <seglistitem>
261 <seg>
262 btrfs,
263 btrfs-convert,
264 btrfs-find-root,
265 btrfs-image,
266 btrfs-map-logical,
267 btrfs-select-super,
268 btrfsck (link to btrfs),
269 btrfstune,
270 fsck.btrfs, and
271 mkfs.btrfs
272 </seg>
273
[5d01724]274 <seg>
275 libbtrfs.so and
276 libbtrfsutil.so
277 </seg>
[1f1a9e9]278
279 <seg>/usr/include/btrfs</seg>
280 </seglistitem>
281 </segmentedlist>
282
283 <variablelist>
284 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
285 <?dbfo list-presentation="list"?>
286 <?dbhtml list-presentation="table"?>
287
288 <varlistentry id="btrfs-prog">
289 <term><command>btrfs</command></term>
290 <listitem>
291 <para>
[4c24eb0a]292 is the main interface into btrfs filesystem operations
[1f1a9e9]293 </para>
294 <indexterm zone="btrfs-progs btrfs-prog">
295 <primary sortas="b-btrfs">btrfs</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
[292a840]300 <varlistentry id="btrfs-convert">
301 <term><command>btrfs-convert</command></term>
302 <listitem>
303 <para>
[bef4385]304 converts from an ext2/3/4 or reiserfs filesystem to btrfs <!--(see
305 <xref linkend="using-btrfs-convert"/> above)-->
[292a840]306 </para>
307 <indexterm zone="btrfs-progs btrfs-convert">
308 <primary sortas="b-btrfs-convert">btrfs-convert</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="btrfs-find-root">
314 <term><command>btrfs-find-root</command></term>
315 <listitem>
316 <para>
[4c24eb0a]317 is a filter to find btrfs root
[292a840]318 </para>
319 <indexterm zone="btrfs-progs btrfs-find-root">
320 <primary sortas="b-btrfs-find-root">btrfs-find-root</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="btrfs-map-logical">
326 <term><command>btrfs-map-logical</command></term>
327 <listitem>
328 <para>
[4c24eb0a]329 maps btrfs logical extent to physical extent
[292a840]330 </para>
331 <indexterm zone="btrfs-progs btrfs-map-logical">
332 <primary sortas="b-btrfs-map-logical">btrfs-map-logical</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336
337 <varlistentry id="btrfs-select-super">
338 <term><command>btrfs-select-super</command></term>
339 <listitem>
340 <para>
[4c24eb0a]341 overwrites the primary superblock with a backup copy
[292a840]342 </para>
343 <indexterm zone="btrfs-progs btrfs-select-super">
344 <primary sortas="b-btrfs-select-super">btrfs-select-super</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 <varlistentry id="btrfstune">
350 <term><command>btrfstune</command></term>
351 <listitem>
352 <para>
[4c24eb0a]353 tunes various filesystem parameters
[292a840]354 </para>
355 <indexterm zone="btrfs-progs btrfstune">
356 <primary sortas="b-btrfstune">btrfstune</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
[1f1a9e9]361 <varlistentry id="fsck.btrfs">
362 <term><command>fsck.btrfs</command></term>
363 <listitem>
364 <para>
[4c24eb0a]365 does nothing, but is present for consistency with fstab
[1f1a9e9]366 </para>
367 <indexterm zone="btrfs-progs fsck.btrfs">
368 <primary sortas="b-fsck.btrfs">fsck.btrfs</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="mkfs.btrfs">
374 <term><command>mkfs.btrfs</command></term>
375 <listitem>
[29244b7]376 <para>
[4c24eb0a]377 creates a btrfs file system
[29244b7]378 </para>
[1f1a9e9]379 <indexterm zone="btrfs-progs mkfs.btrfs">
380 <primary sortas="b-mkfs.btrfs">mkfs.btrfs</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 </variablelist>
386
387 </sect2>
388
389</sect1>
Note: See TracBrowser for help on using the repository browser.