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

11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c3e2b0e was 61ed6e9, checked in by Bruce Dubbs <bdubbs@…>, 2 years ago

Update to btrfs-progs-5.16.

  • Property mode set to 100644
File size: 10.9 KB
Line 
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 "&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 "ad0673504ece4c60ca041399a5826f78">
10 <!ENTITY btrfs-progs-size "2.2 MB">
11 <!ENTITY btrfs-progs-buildsize "51 MB (up to 2.7 GB are used during tests)">
12 <!ENTITY btrfs-progs-time "0.2 SBU (add 6.2 SBU for tests, but will be longer on slow disks)">
13]>
14
15<sect1 id="btrfs-progs" xreflabel="btrfs-progs-&btrfs-progs-version;">
16 <?dbhtml filename="btrfs-progs.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>btrfs-progs-&btrfs-progs-version;</title>
23
24 <indexterm zone="btrfs-progs">
25 <primary sortas="a-btrfs-progs">btrfs-progs</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to btrfs-progs</title>
30
31 <para>
32 The <application>btrfs-progs</application> package contains
33 administration and debugging tools for the B-tree file system (btrfs).
34 </para>
35
36 &lfs110a_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&btrfs-progs-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&btrfs-progs-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &btrfs-progs-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &btrfs-progs-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &btrfs-progs-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &btrfs-progs-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">Btrfs-progs Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
76 <xref linkend="lzo"/>
77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="asciidoc"/> (or <xref role="nodep" linkend="asciidoctor"/>)
82 and <xref linkend="xmlto"/> (both required to generate man pages)
83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests) and
88 <xref linkend="reiserfs"/> (for tests)
89 </para>
90
91 <para condition="html" role="usernotes">User Notes:
92 <ulink url="&blfs-wiki;/btrfs-progs"/></para>
93
94 </sect2>
95
96 <sect2 role="kernel" id="btrfs-progs-kernel">
97 <title>Kernel Configuration</title>
98
99 <para>
100 Enable the following option in the kernel configuration
101 and recompile the kernel:
102 </para>
103
104<screen><literal>File systems ---&gt;
105 &lt;*/M&gt; Btrfs filesystem support [CONFIG_BTRFS_FS]</literal></screen>
106
107 <para>
108 In addition to the above and to the options required for
109 <xref linkend="lvm2"/> and <xref linkend="reiserfs"/>, the following
110 options must be enabled for running tests:
111 </para>
112
113<screen><literal>File systems ---&gt;
114 [*] Btrfs POSIX Access Control Lists [CONFIG_BTRFS_FS_POSIX_ACL]
115 [*] ReiserFS extended attributes [CONFIG_REISERFS_FS_XATTR]
116 [*] ReiserFS POSIX Access Control Lists [CONFIG_REISERFS_FS_POSIX_ACL]</literal></screen>
117
118 <indexterm zone="btrfs-progs btrfs-progs-kernel">
119 <primary sortas="d-btrfs-progs">BTRFS Programs</primary>
120 </indexterm>
121
122 </sect2>
123
124 <sect2 role="installation">
125 <title>Installation of btrfs-progs</title>
126
127 <para>
128 Install <application>btrfs-progs</application> by running the following
129 commands:
130 </para>
131
132<screen><userinput>./configure --prefix=/usr &amp;&amp;
133make</userinput></screen>
134
135 <note>
136 <para>
137 Some tests require grep built with perl regular expressions. To
138 obtain this, rebuild grep with the LFS Chapter 8 instructions after
139 installing <xref linkend="pcre"/>.
140 </para>
141 </note>
142<!-- Keeping this for now, but it seems that calling "make test" is
143 simpler and does the same thing -->
144 <para>
145 Before running tests, build a support program:
146 </para>
147
148<screen remap="test"><userinput>make fssum</userinput></screen>
149
150 <para>
151 To test the results, issue (as the <systemitem
152 class="username">root</systemitem> user):
153 </para>
154
155<screen role="root" remap="test"><userinput>pushd tests
156 ./fsck-tests.sh
157 ./mkfs-tests.sh
158 ./cli-tests.sh
159 ./convert-tests.sh
160 ./misc-tests.sh
161 #./fuzz-tests.sh
162popd</userinput></screen>
163
164 <para>
165 The fuzz-tests are currently broken.
166 </para>
167
168<!-- Template for failed test removal:
169 <para>
170 To test the results, first disable one test that fails and prevents
171 the other ones to run:
172 </para>
173
174<screen remap="test"><userinput>mv tests/fsck-tests/012-leaf-corruption/test.sh{,.broken}</userinput></screen>
175Substitute your test failure with the one above.
176 <para>
177 To test the results, run (as the
178 <systemitem class="username">root</systemitem> user):
179 </para>
180
181<screen role="root" remap="test"><userinput>make -j1 -k test</userinput></screen>
182-->
183 <note>
184 <para>
185 If the above mentioned kernel options are not enabled, some tests
186 fail, and prevent all the remaining tests to run, because the test
187 disk image is not cleanly unmounted.
188 </para>
189 </note>
190<!--
191 <para>
192 Two tests fail for unknown reasons in the
193 <command>test-libbtrfsutil</command> section. Tests take a very long
194 time, and it may be interesting to run only part of them. Running tests
195 only in one directory can be done with
196 <command>make TEST=&lt;DIR&gt; test</command>.
197 </para>
198-->
199 <para>
200 Install the package as the <systemitem
201 class="username">root</systemitem> user:
202 </para>
203
204<screen role="root"><userinput>make install</userinput></screen>
205
206 </sect2>
207
208 <sect2 role="commands">
209 <title>Command Explanations</title>
210
211 <para>
212 <option>--disable-documentation</option>: This option
213 is needed if the recommended dependencies are not installed.
214 </para>
215<!-- not anymore in the commands
216 <para>
217 <command>mv tests/{cli,convert,misc,fuzz}-tests/ ...</command>: Disables
218 tests that fail and prevent tests from completing.
219 </para>
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="content">
234 <title>Contents</title>
235
236 <segmentedlist>
237 <segtitle>Installed Programs</segtitle>
238 <segtitle>Installed Libraries</segtitle>
239 <segtitle>Installed Directories</segtitle>
240
241 <seglistitem>
242 <seg>
243 btrfs,
244 btrfs-convert,
245 btrfs-find-root,
246 btrfs-image,
247 btrfs-map-logical,
248 btrfs-select-super,
249 btrfsck (link to btrfs),
250 btrfstune,
251 fsck.btrfs, and
252 mkfs.btrfs
253 </seg>
254
255 <seg>
256 libbtrfs.so and
257 libbtrfsutil.so
258 </seg>
259
260 <seg>/usr/include/btrfs</seg>
261 </seglistitem>
262 </segmentedlist>
263
264 <variablelist>
265 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
266 <?dbfo list-presentation="list"?>
267 <?dbhtml list-presentation="table"?>
268
269 <varlistentry id="btrfs-prog">
270 <term><command>btrfs</command></term>
271 <listitem>
272 <para>
273 is the main interface into btrfs filesystem operations
274 </para>
275 <indexterm zone="btrfs-progs btrfs-prog">
276 <primary sortas="b-btrfs">btrfs</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="btrfs-convert">
282 <term><command>btrfs-convert</command></term>
283 <listitem>
284 <para>
285 converts from an ext2/3/4 or reiserfs filesystem to btrfs
286 </para>
287 <indexterm zone="btrfs-progs btrfs-convert">
288 <primary sortas="b-btrfs-convert">btrfs-convert</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="btrfs-find-root">
294 <term><command>btrfs-find-root</command></term>
295 <listitem>
296 <para>
297 is a filter to find btrfs root
298 </para>
299 <indexterm zone="btrfs-progs btrfs-find-root">
300 <primary sortas="b-btrfs-find-root">btrfs-find-root</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 <varlistentry id="btrfs-map-logical">
306 <term><command>btrfs-map-logical</command></term>
307 <listitem>
308 <para>
309 maps btrfs logical extent to physical extent
310 </para>
311 <indexterm zone="btrfs-progs btrfs-map-logical">
312 <primary sortas="b-btrfs-map-logical">btrfs-map-logical</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="btrfs-select-super">
318 <term><command>btrfs-select-super</command></term>
319 <listitem>
320 <para>
321 overwrites the primary superblock with a backup copy
322 </para>
323 <indexterm zone="btrfs-progs btrfs-select-super">
324 <primary sortas="b-btrfs-select-super">btrfs-select-super</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="btrfstune">
330 <term><command>btrfstune</command></term>
331 <listitem>
332 <para>
333 tunes various filesystem parameters
334 </para>
335 <indexterm zone="btrfs-progs btrfstune">
336 <primary sortas="b-btrfstune">btrfstune</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
341 <varlistentry id="fsck.btrfs">
342 <term><command>fsck.btrfs</command></term>
343 <listitem>
344 <para>
345 does nothing, but is present for consistency with fstab
346 </para>
347 <indexterm zone="btrfs-progs fsck.btrfs">
348 <primary sortas="b-fsck.btrfs">fsck.btrfs</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="mkfs.btrfs">
354 <term><command>mkfs.btrfs</command></term>
355 <listitem>
356 <para>
357 creates a btrfs file system
358 </para>
359 <indexterm zone="btrfs-progs mkfs.btrfs">
360 <primary sortas="b-mkfs.btrfs">mkfs.btrfs</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 </variablelist>
366
367 </sect2>
368
369</sect1>
Note: See TracBrowser for help on using the repository browser.