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

11.1 11.2 11.3 12.0 12.1 12.2 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c3e2b0e was 61ed6e9, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Update to btrfs-progs-5.16.

  • Property mode set to 100644
File size: 10.9 KB
RevLine 
[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
[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 " ">
[61ed6e9]9 <!ENTITY btrfs-progs-md5sum "ad0673504ece4c60ca041399a5826f78">
[6f75ffc]10 <!ENTITY btrfs-progs-size "2.2 MB">
[61ed6e9]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)">
[1f1a9e9]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
[29244b7]31 <para>
32 The <application>btrfs-progs</application> package contains
33 administration and debugging tools for the B-tree file system (btrfs).
34 </para>
[1f1a9e9]35
[34a6571]36 &lfs110a_checked;
[1f1a9e9]37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
[29244b7]41 <para>
42 Download (HTTP): <ulink url="&btrfs-progs-download-http;"/>
43 </para>
[1f1a9e9]44 </listitem>
45 <listitem>
[29244b7]46 <para>
47 Download (FTP): <ulink url="&btrfs-progs-download-ftp;"/>
48 </para>
[1f1a9e9]49 </listitem>
50 <listitem>
[29244b7]51 <para>
52 Download MD5 sum: &btrfs-progs-md5sum;
53 </para>
[1f1a9e9]54 </listitem>
55 <listitem>
[29244b7]56 <para>
57 Download size: &btrfs-progs-size;
58 </para>
[1f1a9e9]59 </listitem>
60 <listitem>
[29244b7]61 <para>
62 Estimated disk space required: &btrfs-progs-buildsize;
63 </para>
[1f1a9e9]64 </listitem>
65 <listitem>
[29244b7]66 <para>
67 Estimated build time: &btrfs-progs-time;
68 </para>
[1f1a9e9]69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">Btrfs-progs Dependencies</bridgehead>
73
[61439d5]74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
[8558044]76 <xref linkend="lzo"/>
[61439d5]77 </para>
78
[1f1a9e9]79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
[6f75ffc]81 <xref linkend="asciidoc"/> (or <xref role="nodep" linkend="asciidoctor"/>)
82 and <xref linkend="xmlto"/> (both required to generate man pages)
[1f1a9e9]83 </para>
84
[292a840]85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
[85ac148]87 <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests) and
[f33b456]88 <xref linkend="reiserfs"/> (for tests)
[292a840]89 </para>
90
[1f1a9e9]91 <para condition="html" role="usernotes">User Notes:
[0d4692d]92 <ulink url="&blfs-wiki;/btrfs-progs"/></para>
[1f1a9e9]93
94 </sect2>
95
96 <sect2 role="kernel" id="btrfs-progs-kernel">
97 <title>Kernel Configuration</title>
98
[29244b7]99 <para>
100 Enable the following option in the kernel configuration
101 and recompile the kernel:
102 </para>
[1f1a9e9]103
104<screen><literal>File systems ---&gt;
105 &lt;*/M&gt; Btrfs filesystem support [CONFIG_BTRFS_FS]</literal></screen>
106
[8388aa7]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>
[1f1a9e9]117
118 <indexterm zone="btrfs-progs btrfs-progs-kernel">
[2630345]119 <primary sortas="d-btrfs-progs">BTRFS Programs</primary>
[1f1a9e9]120 </indexterm>
121
122 </sect2>
123
124 <sect2 role="installation">
125 <title>Installation of btrfs-progs</title>
126
[29244b7]127 <para>
128 Install <application>btrfs-progs</application> by running the following
129 commands:
130 </para>
[7b2b4b11]131
[a600176]132<screen><userinput>./configure --prefix=/usr &amp;&amp;
[1f1a9e9]133make</userinput></screen>
134
[29244b7]135 <note>
136 <para>
137 Some tests require grep built with perl regular expressions. To
[170e308]138 obtain this, rebuild grep with the LFS Chapter 8 instructions after
[29244b7]139 installing <xref linkend="pcre"/>.
140 </para>
141 </note>
[85ac148]142<!-- Keeping this for now, but it seems that calling "make test" is
[16d563c]143 simpler and does the same thing -->
[29244b7]144 <para>
[16d563c]145 Before running tests, build a support program:
[29244b7]146 </para>
[1f1a9e9]147
[85ac148]148<screen remap="test"><userinput>make fssum</userinput></screen>
[32bc8e4c]149
[29244b7]150 <para>
151 To test the results, issue (as the <systemitem
[8558044]152 class="username">root</systemitem> user):
[29244b7]153 </para>
[32bc8e4c]154
[5af02b37]155<screen role="root" remap="test"><userinput>pushd tests
[85ac148]156 ./fsck-tests.sh
157 ./mkfs-tests.sh
158 ./cli-tests.sh
159 ./convert-tests.sh
160 ./misc-tests.sh
[61ed6e9]161 #./fuzz-tests.sh
[32bc8e4c]162popd</userinput></screen>
[8388aa7]163
[61ed6e9]164 <para>
165 The fuzz-tests are currently broken.
166 </para>
167
[16d563c]168<!-- Template for failed test removal:
[8388aa7]169 <para>
[37ede2a]170 To test the results, first disable one test that fails and prevents
[8388aa7]171 the other ones to run:
172 </para>
173
[37ede2a]174<screen remap="test"><userinput>mv tests/fsck-tests/012-leaf-corruption/test.sh{,.broken}</userinput></screen>
[8558044]175Substitute your test failure with the one above.
[85ac148]176 <para>
177 To test the results, run (as the
[949387d0]178 <systemitem class="username">root</systemitem> user):
[85ac148]179 </para>
180
[8388aa7]181<screen role="root" remap="test"><userinput>make -j1 -k test</userinput></screen>
[16d563c]182-->
[85ac148]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>
[16d563c]190<!--
[85ac148]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>
[16d563c]198-->
[29244b7]199 <para>
200 Install the package as the <systemitem
201 class="username">root</systemitem> user:
202 </para>
[1f1a9e9]203
[16d563c]204<screen role="root"><userinput>make install</userinput></screen>
[1f1a9e9]205
206 </sect2>
207
208 <sect2 role="commands">
209 <title>Command Explanations</title>
210
[29244b7]211 <para>
212 <option>--disable-documentation</option>: This option
213 is needed if the recommended dependencies are not installed.
214 </para>
[85ac148]215<!-- not anymore in the commands
[29244b7]216 <para>
217 <command>mv tests/{cli,convert,misc,fuzz}-tests/ ...</command>: Disables
218 tests that fail and prevent tests from completing.
219 </para>
[16d563c]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>
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
[5d01724]255 <seg>
256 libbtrfs.so and
257 libbtrfsutil.so
258 </seg>
[1f1a9e9]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>
[4c24eb0a]273 is the main interface into btrfs filesystem operations
[1f1a9e9]274 </para>
275 <indexterm zone="btrfs-progs btrfs-prog">
276 <primary sortas="b-btrfs">btrfs</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
[292a840]281 <varlistentry id="btrfs-convert">
282 <term><command>btrfs-convert</command></term>
283 <listitem>
284 <para>
[37ede2a]285 converts from an ext2/3/4 or reiserfs filesystem to btrfs
[292a840]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>
[4c24eb0a]297 is a filter to find btrfs root
[292a840]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>
[4c24eb0a]309 maps btrfs logical extent to physical extent
[292a840]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>
[4c24eb0a]321 overwrites the primary superblock with a backup copy
[292a840]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>
[4c24eb0a]333 tunes various filesystem parameters
[292a840]334 </para>
335 <indexterm zone="btrfs-progs btrfstune">
336 <primary sortas="b-btrfstune">btrfstune</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
[1f1a9e9]341 <varlistentry id="fsck.btrfs">
342 <term><command>fsck.btrfs</command></term>
343 <listitem>
344 <para>
[4c24eb0a]345 does nothing, but is present for consistency with fstab
[1f1a9e9]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>
[29244b7]356 <para>
[4c24eb0a]357 creates a btrfs file system
[29244b7]358 </para>
[1f1a9e9]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.