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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 ded8dfc was ded8dfc, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to btrfs-progs-4.12.
Update to whois-5.2.17.
Update to unrar-5.5.7.
Update to libinput-1.8.1.
Update to bluez-5.46.
Remove unneeded paragraph in NFS-Utils.
Also remove references to quotas in nfs-server bootscript.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18970 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.5 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 "https://www.kernel.org/pub/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 "4b1a143677597de413381118db8c10bb">
10 <!ENTITY btrfs-progs-size "1.5 MB">
11 <!ENTITY btrfs-progs-buildsize "44 MB (add 28 MB for tests)">
12 <!ENTITY btrfs-progs-time "0.3 SBU (add 12 SBU for tests)">
13]>
14
15<sect1 id="btrfs-progs" xreflabel="btrfs-progs-&btrfs-progs-version;">
16 <?dbhtml filename="btrfs-progs.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>btrfs-progs-&btrfs-progs-version;</title>
24
25 <indexterm zone="btrfs-progs">
26 <primary sortas="a-btrfs-progs">btrfs-progs</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to btrfs-progs</title>
31
32 <para>The <application>btrfs-progs</application> package contains administration
33 and debugging tools for the B-tree file system (btrfs).</para>
34
35 &lfs80_checked;
36 &gcc7_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&btrfs-progs-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&btrfs-progs-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &btrfs-progs-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &btrfs-progs-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &btrfs-progs-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &btrfs-progs-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">Btrfs-progs Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Required</bridgehead>
63 <para role="required">
64 <xref linkend="lzo"/>
65 </para>
66
67 <bridgehead renderas="sect4">Recommended</bridgehead>
68 <para role="recommended">
69 <xref linkend="asciidoc"/> and
70 <xref linkend="xmlto"/> (both required to generate man pages)
71 </para>
72
73 <bridgehead renderas="sect4">Optional</bridgehead>
74 <para role="optional">
75 <xref linkend="lvm2"/> (<command>dmsetup</command> is used in tests)
76 </para>
77
78 <para condition="html" role="usernotes">User Notes:
79 <ulink url="&blfs-wiki;/xfs"/></para>
80
81 </sect2>
82
83 <sect2 role="kernel" id="btrfs-progs-kernel">
84 <title>Kernel Configuration</title>
85
86 <para>Enable the following option in the kernel configuration
87 and recompile the kernel:</para>
88
89<screen><literal>File systems ---&gt;
90 &lt;*/M&gt; Btrfs filesystem support [CONFIG_BTRFS_FS]</literal></screen>
91
92 <note><para>CONFIG_BTRFS_FS_POSIX_ACL is required for the tests.
93 Other Btrfs options in the kernel are optional.</para></note>
94
95 <indexterm zone="btrfs-progs btrfs-progs-kernel">
96 <primary sortas="d-xfs">BTRFS Programs</primary>
97 </indexterm>
98
99 </sect2>
100
101 <sect2 role="installation">
102 <title>Installation of btrfs-progs</title>
103
104 <para>Install <application>btrfs-progs</application> by running the following
105 commands:</para>
106
107<screen><userinput>sed -i '1,100 s/\.gz//g' Documentation/Makefile.in &amp;&amp;
108
109./configure --prefix=/usr \
110 --bindir=/bin \
111 --libdir=/lib &amp;&amp;
112make</userinput></screen>
113
114 <para>Before running tests, disable several that fail:</para>
115
116<screen><userinput>mv tests/fuzz-tests/003-multi-check-unmounted/test.sh{,.broken} &amp;&amp;
117mv tests/fuzz-tests/004-simple-dump-tree/test.sh{,.broken} &amp;&amp;
118mv tests/fuzz-tests/007-simple-super-recover/test.sh{,.broken} &amp;&amp;
119mv tests/fuzz-tests/009-simple-zero-log/test.sh{,.broken} &amp;&amp;
120mv tests/misc-tests/019-receive-clones-on-munted-subvol/test.sh{,.broken}</userinput></screen>
121
122 <para>To test the results, issue (as the <systemitem
123 class="username">root</systemitem> user): </para>
124
125<screen><userinput>pushd tests
126 ./fsck-tests.sh
127 ./mkfs-tests.sh
128 ./convert-tests.sh
129 ./misc-tests.sh
130 ./cli-tests.sh
131 ./fuzz-tests.sh
132popd</userinput></screen>
133
134 <para>Install the package as the <systemitem
135 class="username">root</systemitem> user:</para>
136
137<screen role="root"><userinput>make install &amp;&amp;
138
139ln -sfv ../../lib/$(readlink /lib/libbtrfs.so) /usr/lib/libbtrfs.so &amp;&amp;
140rm -v /lib/libbtrfs.{a,so}</userinput></screen>
141
142 </sect2>
143
144 <sect2 role="commands">
145 <title>Command Explanations</title>
146
147 <para><command>sed ... Documentation/Makefile.in</command>: Disables
148 compressing man pages to be consistent with the rest of BLFS.</para>
149
150 <para><option>--disable-documentation</option>: This option
151 is needed if the recommended dependencies are not installed.</para>
152
153 <para><command>mv tests/fuzz-tests/ ...</command>: Disables
154 tests that fail and prevent tests from completing.</para>
155
156 <para><command>ln -s ... /usr/lib/libbtrfs.so</command>: Creates a
157 symbolic link in the directory where it is expected.</para>
158
159 <para><command>rm /lib/libbtrfs.{a,so}</command>: Removes unneeded
160 library entries.</para>
161
162 </sect2>
163
164 <sect2 role="content">
165 <title>Contents</title>
166
167 <segmentedlist>
168 <segtitle>Installed Programs</segtitle>
169 <segtitle>Installed Libraries</segtitle>
170 <segtitle>Installed Directories</segtitle>
171
172 <seglistitem>
173 <seg>
174 btrfs,
175 btrfs-convert,
176 btrfs-debug-tree,
177 btrfs-find-root,
178 btrfs-image,
179 btrfs-map-logical,
180 btrfs-select-super,
181 btrfs-show-super,
182 btrfs-zero-log,
183 btrfsck (link to btrfs),
184 btrfstune,
185 fsck.btrfs, and
186 mkfs.btrfs
187 </seg>
188
189 <seg>libbtrfs.so</seg>
190
191 <seg>/usr/include/btrfs</seg>
192 </seglistitem>
193 </segmentedlist>
194
195 <variablelist>
196 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
197 <?dbfo list-presentation="list"?>
198 <?dbhtml list-presentation="table"?>
199
200 <varlistentry id="btrfs-prog">
201 <term><command>btrfs</command></term>
202 <listitem>
203 <para>
204 is the main interface into btrfs filesystem operations.
205 </para>
206 <indexterm zone="btrfs-progs btrfs-prog">
207 <primary sortas="b-btrfs">btrfs</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="btrfs-convert">
213 <term><command>btrfs-convert</command></term>
214 <listitem>
215 <para>
216 converts from ext2/3/4 filesystem to btrfs.
217 </para>
218 <indexterm zone="btrfs-progs btrfs-convert">
219 <primary sortas="b-btrfs-convert">btrfs-convert</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="btrfs-debug-tree">
225 <term><command>btrfs-debug-tree</command></term>
226 <listitem>
227 <para>
228 queries various internal information.
229 </para>
230 <indexterm zone="btrfs-progs btrfs-debug-tree">
231 <primary sortas="b-btrfs-debug-tree">btrfs-debug-tree</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="btrfs-find-root">
237 <term><command>btrfs-find-root</command></term>
238 <listitem>
239 <para>
240 is a filter to find btrfs root.
241 </para>
242 <indexterm zone="btrfs-progs btrfs-find-root">
243 <primary sortas="b-btrfs-find-root">btrfs-find-root</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="btrfs-map-logical">
249 <term><command>btrfs-map-logical</command></term>
250 <listitem>
251 <para>
252 maps btrfs logical extent to physical extent.
253 </para>
254 <indexterm zone="btrfs-progs btrfs-map-logical">
255 <primary sortas="b-btrfs-map-logical">btrfs-map-logical</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="btrfs-select-super">
261 <term><command>btrfs-select-super</command></term>
262 <listitem>
263 <para>
264 overwrites primary superblock with a backup copy.
265 </para>
266 <indexterm zone="btrfs-progs btrfs-select-super">
267 <primary sortas="b-btrfs-select-super">btrfs-select-super</primary>
268 </indexterm>
269 </listitem>
270 </varlistentry>
271
272 <varlistentry id="btrfs-show-super">
273 <term><command>btrfs-show-super</command></term>
274 <listitem>
275 <para>
276 queries various internal information.
277 </para>
278 <indexterm zone="btrfs-progs btrfs-show-super">
279 <primary sortas="b-btrfs-show-super">btrfs-show-super</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="btrfs-zero-log">
285 <term><command>btrfs-zero-log</command></term>
286 <listitem>
287 <para>
288 recovers a damaged btrfs filesystem.
289 </para>
290 <indexterm zone="btrfs-progs btrfs-zero-log">
291 <primary sortas="b-btrfs-zero-log">btrfs-zero-log</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="btrfstune">
297 <term><command>btrfstune</command></term>
298 <listitem>
299 <para>
300 tunes various filesystem parameters.
301 </para>
302 <indexterm zone="btrfs-progs btrfstune">
303 <primary sortas="b-btrfstune">btrfstune</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="fsck.btrfs">
309 <term><command>fsck.btrfs</command></term>
310 <listitem>
311 <para>
312 does nothing, but is present for consistency with fstab.
313 </para>
314 <indexterm zone="btrfs-progs fsck.btrfs">
315 <primary sortas="b-fsck.btrfs">fsck.btrfs</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="mkfs.btrfs">
321 <term><command>mkfs.btrfs</command></term>
322 <listitem>
323 <para>creates a btrfs file system.</para>
324 <indexterm zone="btrfs-progs mkfs.btrfs">
325 <primary sortas="b-mkfs.btrfs">mkfs.btrfs</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 </variablelist>
331
332 </sect2>
333
334</sect1>
Note: See TracBrowser for help on using the repository browser.