source: postlfs/filesystems/btrfs-progs.xml@ 16d563c

11.0 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 16d563c was 16d563c, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Update to btrfs-progs-v5.12.1

  • 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 "ab865e42890ba2c450ae920c87c51ca3">
10 <!ENTITY btrfs-progs-size "2.1 MB">
11 <!ENTITY btrfs-progs-buildsize "63 MB (up to 2.7 GB are used during tests)">
12 <!ENTITY btrfs-progs-time "0.2 SBU (add 12 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 &lfs101_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"/> and
82 <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 \
133 --bindir=/bin \
134 --libdir=/lib \
135 --with-pkgconfigdir=/usr/lib/pkgconfig &amp;&amp;
136make</userinput></screen>
137
138 <note>
139 <para>
140 Some tests require grep built with perl regular expressions. To
141 obtain this, rebuild grep with the LFS Chapter 8 instructions after
142 installing <xref linkend="pcre"/>.
143 </para>
144 </note>
145<!-- Keeping this for now, but it seems that calling "make test" is
146 simpler and does the same thing -->
147 <para>
148 Before running tests, build a support program:
149 </para>
150
151<screen remap="test"><userinput>make fssum</userinput></screen>
152
153 <para>
154 To test the results, issue (as the <systemitem
155 class="username">root</systemitem> user):
156 </para>
157
158<screen role="root" remap="test"><userinput>pushd tests
159 ./fsck-tests.sh
160 ./mkfs-tests.sh
161 ./cli-tests.sh
162 ./convert-tests.sh
163 ./misc-tests.sh
164 ./fuzz-tests.sh
165popd</userinput></screen>
166
167<!-- Template for failed test removal:
168 <para>
169 To test the results, first disable one test that fails and prevents
170 the other ones to run:
171 </para>
172
173<screen remap="test"><userinput>mv tests/fsck-tests/012-leaf-corruption/test.sh{,.broken}</userinput></screen>
174Substitute your test failure with the one above.
175 <para>
176 To test the results, run (as the
177 <systemitem class="username">root</systemitem> user):
178 </para>
179
180<screen role="root" remap="test"><userinput>make -j1 -k test</userinput></screen>
181-->
182 <note>
183 <para>
184 If the above mentioned kernel options are not enabled, some tests
185 fail, and prevent all the remaining tests to run, because the test
186 disk image is not cleanly unmounted.
187 </para>
188 </note>
189<!--
190 <para>
191 Two tests fail for unknown reasons in the
192 <command>test-libbtrfsutil</command> section. Tests take a very long
193 time, and it may be interesting to run only part of them. Running tests
194 only in one directory can be done with
195 <command>make TEST=&lt;DIR&gt; test</command>.
196 </para>
197-->
198 <para>
199 Install the package as the <systemitem
200 class="username">root</systemitem> user:
201 </para>
202
203<screen role="root"><userinput>make install</userinput></screen>
204
205 </sect2>
206
207 <sect2 role="commands">
208 <title>Command Explanations</title>
209
210 <para>
211 <option>--disable-documentation</option>: This option
212 is needed if the recommended dependencies are not installed.
213 </para>
214<!-- not anymore in the commands
215 <para>
216 <command>mv tests/{cli,convert,misc,fuzz}-tests/ ...</command>: Disables
217 tests that fail and prevent tests from completing.
218 </para>
219
220 <para>
221 <command>ln -s ... /usr/lib/libbtrfs.so</command>: Creates a
222 symbolic link in the directory where it is expected.
223 </para>
224
225 <para>
226 <command>rm /lib/libbtrfs.{a,so}</command>: Removes unneeded
227 library entries.
228 </para>
229-->
230 </sect2>
231
232 <sect2 role="content">
233 <title>Contents</title>
234
235 <segmentedlist>
236 <segtitle>Installed Programs</segtitle>
237 <segtitle>Installed Libraries</segtitle>
238 <segtitle>Installed Directories</segtitle>
239
240 <seglistitem>
241 <seg>
242 btrfs,
243 btrfs-convert,
244 btrfs-find-root,
245 btrfs-image,
246 btrfs-map-logical,
247 btrfs-select-super,
248 btrfsck (link to btrfs),
249 btrfstune,
250 fsck.btrfs, and
251 mkfs.btrfs
252 </seg>
253
254 <seg>
255 libbtrfs.so and
256 libbtrfsutil.so
257 </seg>
258
259 <seg>/usr/include/btrfs</seg>
260 </seglistitem>
261 </segmentedlist>
262
263 <variablelist>
264 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
265 <?dbfo list-presentation="list"?>
266 <?dbhtml list-presentation="table"?>
267
268 <varlistentry id="btrfs-prog">
269 <term><command>btrfs</command></term>
270 <listitem>
271 <para>
272 is the main interface into btrfs filesystem operations
273 </para>
274 <indexterm zone="btrfs-progs btrfs-prog">
275 <primary sortas="b-btrfs">btrfs</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="btrfs-convert">
281 <term><command>btrfs-convert</command></term>
282 <listitem>
283 <para>
284 converts from an ext2/3/4 or reiserfs filesystem to btrfs
285 </para>
286 <indexterm zone="btrfs-progs btrfs-convert">
287 <primary sortas="b-btrfs-convert">btrfs-convert</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="btrfs-find-root">
293 <term><command>btrfs-find-root</command></term>
294 <listitem>
295 <para>
296 is a filter to find btrfs root
297 </para>
298 <indexterm zone="btrfs-progs btrfs-find-root">
299 <primary sortas="b-btrfs-find-root">btrfs-find-root</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="btrfs-map-logical">
305 <term><command>btrfs-map-logical</command></term>
306 <listitem>
307 <para>
308 maps btrfs logical extent to physical extent
309 </para>
310 <indexterm zone="btrfs-progs btrfs-map-logical">
311 <primary sortas="b-btrfs-map-logical">btrfs-map-logical</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 <varlistentry id="btrfs-select-super">
317 <term><command>btrfs-select-super</command></term>
318 <listitem>
319 <para>
320 overwrites the primary superblock with a backup copy
321 </para>
322 <indexterm zone="btrfs-progs btrfs-select-super">
323 <primary sortas="b-btrfs-select-super">btrfs-select-super</primary>
324 </indexterm>
325 </listitem>
326 </varlistentry>
327
328 <varlistentry id="btrfstune">
329 <term><command>btrfstune</command></term>
330 <listitem>
331 <para>
332 tunes various filesystem parameters
333 </para>
334 <indexterm zone="btrfs-progs btrfstune">
335 <primary sortas="b-btrfstune">btrfstune</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="fsck.btrfs">
341 <term><command>fsck.btrfs</command></term>
342 <listitem>
343 <para>
344 does nothing, but is present for consistency with fstab
345 </para>
346 <indexterm zone="btrfs-progs fsck.btrfs">
347 <primary sortas="b-fsck.btrfs">fsck.btrfs</primary>
348 </indexterm>
349 </listitem>
350 </varlistentry>
351
352 <varlistentry id="mkfs.btrfs">
353 <term><command>mkfs.btrfs</command></term>
354 <listitem>
355 <para>
356 creates a btrfs file system
357 </para>
358 <indexterm zone="btrfs-progs mkfs.btrfs">
359 <primary sortas="b-mkfs.btrfs">mkfs.btrfs</primary>
360 </indexterm>
361 </listitem>
362 </varlistentry>
363
364 </variablelist>
365
366 </sect2>
367
368</sect1>
Note: See TracBrowser for help on using the repository browser.