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

12.2 lazarus trunk
Last change on this file since 0375659 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
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 "&kernel-dl;/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v&btrfs-progs-version;.tar.xz">
8 <!ENTITY btrfs-progs-download-ftp " ">
9 <!ENTITY btrfs-progs-md5sum "a72e76a634ad70dd183153bb99034e4c">
10 <!ENTITY btrfs-progs-size "2.5 MB">
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)">
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
28 <para>
29 The <application>btrfs-progs</application> package contains
30 administration and debugging tools for the B-tree file system (btrfs).
31 </para>
32
33 &lfs121_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&btrfs-progs-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&btrfs-progs-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &btrfs-progs-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &btrfs-progs-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &btrfs-progs-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &btrfs-progs-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Btrfs-progs Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required">
73 <xref linkend="lzo"/>
74 </para>
75
76 <bridgehead renderas="sect4">Optional</bridgehead>
77 <para role="optional">
78 <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests),
79 <xref linkend="sphinx"/> and <xref linkend="sphinx_rtd_theme"/>
80 (required to build documentation), and
81 <ulink
82 url='https://mirrors.edge.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/'>
83 reiserfsprogs</ulink> (for tests).
84 </para>
85
86 </sect2>
87
88 <sect2 role="kernel" id="btrfs-progs-kernel">
89 <title>Kernel Configuration</title>
90
91 <para>
92 Enable the following option in the kernel configuration
93 and recompile the kernel:
94 </para>
95
96 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
97 href="btrfs-progs-kernel.xml"/>
98
99 <para>
100 In addition to the above and to the options required for
101 <xref linkend="lvm2"/>, the following
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.
105 </para>
106
107 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
108 href="btrfs-progs-test-kernel.xml"/>
109
110 <indexterm zone="btrfs-progs btrfs-progs-kernel">
111 <primary sortas="d-btrfs-progs">BTRFS Programs</primary>
112 </indexterm>
113
114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of btrfs-progs</title>
118
119 <para>
120 Install <application>btrfs-progs</application> by running the following
121 commands:
122 </para>
123
124<screen><userinput>./configure --prefix=/usr \
125 --disable-static \
126 --disable-documentation &amp;&amp;
127make</userinput></screen>
128
129 <note>
130 <para>
131 Some tests require grep built with perl regular expressions. To
132 obtain this, rebuild grep with the LFS Chapter 8 instructions after
133 installing <xref linkend="pcre2"/>.
134 </para>
135 </note>
136
137 <para>
138 Before running tests, build a support program:
139 </para>
140
141<screen remap="test"><userinput>make fssum</userinput></screen>
142
143 <para>
144 To test the results, issue (as the &root; user):
145 </para>
146
147<screen role="root" remap="test"><userinput>pushd tests
148 ./fsck-tests.sh
149 ./mkfs-tests.sh
150 ./cli-tests.sh
151 ./convert-tests.sh
152 ./misc-tests.sh
153 ./fuzz-tests.sh
154popd</userinput></screen>
155
156<!-- Template for failed test removal:
157 the other ones to run:
158 </para>
159
160<screen remap="test"><userinput>mv tests/fsck-tests/012-leaf-corruption/test.sh{,.broken}</userinput></screen>
161Substitute your test failure with the one above.
162 <para>
163 To test the results, run (as the
164 <systemitem class="username">root</systemitem> user):
165 </para>
166
167<screen role="root" remap="test"><userinput>make -j1 -k test</userinput></screen>
168-->
169 <note>
170 <para>
171 If the above mentioned kernel options are not enabled, some tests
172 fail, and prevent all the remaining tests from running because the test
173 disk image is not cleanly unmounted. Also make sure that the btrfs
174 kernel module is loaded.
175 </para>
176 </note>
177
178<!-- 6.10 - No test failures. -->
179
180 <para>
181 Install the package as the &root; user:
182 </para>
183
184<screen role="root"><userinput>make install</userinput></screen>
185
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
196 </sect2>
197
198 <sect2 role="commands">
199 <title>Command Explanations</title>
200
201 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
202 href="../../xincludes/static-libraries.xml"/>
203
204 <para>
205 <parameter>--disable-documentation</parameter>: This switch
206 disables rebuilding the manual pages, because it requires
207 <xref linkend="sphinx"/>.
208 </para>
209<!--
210 <para>
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.
218 </para>
219-->
220 <!--
221 <para>
222 <command>ln -s ... /usr/lib/libbtrfs.so</command>: Creates a
223 symbolic link in the directory where it is expected.
224 </para>
225
226 <para>
227 <command>rm /lib/libbtrfs.{a,so}</command>: Removes unneeded
228 library entries.
229 </para>
230-->
231 </sect2>
232<!--
233 <sect2 role="using" id="using-btrfs-convert">
234 <title>Using the btrfs-convert Program</title>
235
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>
250-->
251
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
274 <seg>
275 libbtrfs.so and
276 libbtrfsutil.so
277 </seg>
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>
292 is the main interface into btrfs filesystem operations
293 </para>
294 <indexterm zone="btrfs-progs btrfs-prog">
295 <primary sortas="b-btrfs">btrfs</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="btrfs-convert">
301 <term><command>btrfs-convert</command></term>
302 <listitem>
303 <para>
304 converts from an ext2/3/4 or reiserfs filesystem to btrfs <!--(see
305 <xref linkend="using-btrfs-convert"/> above)-->
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>
317 is a filter to find btrfs root
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>
329 maps btrfs logical extent to physical extent
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>
341 overwrites the primary superblock with a backup copy
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>
353 tunes various filesystem parameters
354 </para>
355 <indexterm zone="btrfs-progs btrfstune">
356 <primary sortas="b-btrfstune">btrfstune</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="fsck.btrfs">
362 <term><command>fsck.btrfs</command></term>
363 <listitem>
364 <para>
365 does nothing, but is present for consistency with fstab
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>
376 <para>
377 creates a btrfs file system
378 </para>
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.