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

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 c09f8696 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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