source: postlfs/filesystems/xfsprogs.xml@ 3b988672

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 3b988672 was 3b988672, checked in by Ken Moffat <ken@…>, 6 years ago

Fix xfs-progs for glibc-2.27.

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

  • Property mode set to 100644
File size: 13.7 KB
RevLine 
[4122007]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[4122007]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[b8fa16e]6
[8dfc5c3]7 <!ENTITY xfsprogs-download-http "&kernel-dl;/linux/utils/fs/xfs/xfsprogs/xfsprogs-&xfsprogs-version;.tar.xz">
[3bb415b]8 <!ENTITY xfsprogs-download-ftp " ">
[2f74a35]9 <!ENTITY xfsprogs-md5sum "2d50e3751cc98e6c9364bc3d2297b9fd">
[a81e1b3]10 <!ENTITY xfsprogs-size "1.1 MB">
[2f74a35]11 <!ENTITY xfsprogs-buildsize "51 MB">
[3bb415b]12 <!ENTITY xfsprogs-time "0.6 SBU">
[4122007]13]>
14
[a3c54ef2]15<sect1 id="xfsprogs" xreflabel="xfsprogs-&xfsprogs-version;">
16 <?dbhtml filename="xfsprogs.html"?>
[152fb77]17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[8bc3edae]23 <title>xfsprogs-&xfsprogs-version;</title>
[152fb77]24
[a3c54ef2]25 <indexterm zone="xfsprogs">
26 <primary sortas="a-xfsprogs">xfsprogs</primary>
[152fb77]27 </indexterm>
28
29 <sect2 role="package">
[8bc3edae]30 <title>Introduction to xfsprogs</title>
[152fb77]31
[3bb415b]32 <para>The <application>xfsprogs</application> package contains
33 administration and debugging tools for the XFS file system.</para>
[152fb77]34
[110272ed]35 &lfs81_checked;
[8bc3edae]36
[152fb77]37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&xfsprogs-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&xfsprogs-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &xfsprogs-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &xfsprogs-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &xfsprogs-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &xfsprogs-time;</para>
56 </listitem>
57 </itemizedlist>
58
[3597eb6]59 <para condition="html" role="usernotes">User Notes:
60 <ulink url="&blfs-wiki;/xfs"/></para>
61
[152fb77]62 </sect2>
63
[a3c54ef2]64 <sect2 role="kernel" id="xfsprogs-kernel">
[d28198d3]65 <title>Kernel Configuration</title>
66
67 <para>Enable the following options in the kernel configuration
68 and recompile the kernel:</para>
69
[421128a1]70<screen><literal>File systems ---&gt;
71 &lt;*/M&gt; XFS filesystem support [CONFIG_XFS_FS]</literal></screen>
[d28198d3]72
[a3c54ef2]73 <indexterm zone="xfsprogs xfsprogs-kernel">
[d28198d3]74 <primary sortas="d-xfs">XFS Programs</primary>
75 </indexterm>
76
77 </sect2>
78
[152fb77]79 <sect2 role="installation">
[8bc3edae]80 <title>Installation of xfsprogs</title>
[152fb77]81
[8bc3edae]82 <para>Install <application>xfsprogs</application> by running the following
[152fb77]83 commands:</para>
84
[3b988672]85<screen><userinput>
86sed -i '/copy_file_range(/s/copy/xfs_&amp;/' io/copy_file_range.c &amp;&amp;
87make DEBUG=-DNDEBUG INSTALL_USER=root INSTALL_GROUP=root \
[a3c54ef2]88 LOCAL_CONFIGURE_OPTIONS="--enable-readline"</userinput></screen>
[1ba83240]89
90 <para>This package does not come with a test suite.</para>
[152fb77]91
92 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
93
[38fb1e3]94<screen role="root"><userinput>make PKG_DOC_DIR=/usr/share/doc/xfsprogs-&xfsprogs-version; install &amp;&amp;
95make PKG_DOC_DIR=/usr/share/doc/xfsprogs-&xfsprogs-version; install-dev &amp;&amp;
[beee921]96
[3b988672]97rm -rfv /usr/lib/libhandle.a &amp;&amp;
98rm -rfv /lib/libhandle.{a,la,so} &amp;&amp;
99ln -sfv ../../lib/libhandle.so.1 /usr/lib/libhandle.so &amp;&amp;
[d24742c]100sed -i "s@libdir='/lib@libdir='/usr/lib@" /usr/lib/libhandle.la</userinput></screen>
[2da2e6a]101
[152fb77]102 </sect2>
103
[55329727]104 <sect2 role="commands">
105 <title>Command Explanations</title>
106
[3b988672]107 <para><command>sed -i '/copy_file_range(/s/copy/xfs_&amp;/'</command>:
108 glibc-2.27 now defines copy_file, so rename the package function.</para>
109
[410e228b]110 <para><command>make DEBUG=-DNDEBUG</command>: Turns off debugging
[b160786]111 symbols.</para>
[2da2e6a]112
[1ba83240]113 <para><parameter>INSTALL_USER=root INSTALL_GROUP=root</parameter>: This
114 sets the owner and group of the installed files.</para>
[864b24de]115
[1ba83240]116 <para><parameter>LOCAL_CONFIGURE_OPTIONS="..."</parameter>: This passes
117 extra configuration options to the <filename>configure</filename> script.
[a3c54ef2]118 The example <parameter>--enable-readline</parameter> parameter
[1ba83240]119 enables linking the XFS programs with the
120 <filename class="libraryfile">libreadline.so</filename> library, in order
121 to allow editing interactive commands.</para>
[864b24de]122
[f1d7196]123 <para><option>OPTIMIZER="..."</option>: Adding this parameter to
[1ba83240]124 the end of the <command>make</command> command overrides the
125 default optimization settings.</para>
126
[55329727]127 </sect2>
128
[152fb77]129 <sect2 role="content">
130 <title>Contents</title>
131
132 <segmentedlist>
133 <segtitle>Installed Programs</segtitle>
[1ba83240]134 <segtitle>Installed Libraries</segtitle>
[a3c54ef2]135 <segtitle>Installed Directories</segtitle>
[152fb77]136
137 <seglistitem>
[518cff0]138 <seg>fsck.xfs, mkfs.xfs, xfs_admin, xfs_bmap, xfs_copy, xfs_db,
139 xfs_estimate, xfs_freeze, xfs_fsr, xfs_growfs, xfs_info, xfs_io,
140 xfs_logprint, xfs_mdrestore, xfs_metadump, xfs_mkfile, xfs_ncheck,
[3bb415b]141 xfs_quota, xfs_repair, xfs_rtcp, and xfs_spaceman</seg>
[a5416837]142 <seg>libhandle.so</seg>
[38fb1e3]143 <seg>/usr/include/xfs and /usr/share/doc/xfsprogs-&xfsprogs-version;</seg>
[152fb77]144 </seglistitem>
145 </segmentedlist>
146
147 <variablelist>
148 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
149 <?dbfo list-presentation="list"?>
150 <?dbhtml list-presentation="table"?>
151
152 <varlistentry id="fsck.xfs">
153 <term><command>fsck.xfs</command></term>
154 <listitem>
[99b1c520]155 <para>simply exits with a zero status, since XFS
[152fb77]156 partitions are checked at mount time.</para>
[a3c54ef2]157 <indexterm zone="xfsprogs fsck.xfs">
[152fb77]158 <primary sortas="b-fsck.xfs">fsck.xfs</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 <varlistentry id="mkfs.xfs">
164 <term><command>mkfs.xfs</command></term>
165 <listitem>
166 <para>constructs an XFS file system.</para>
[a3c54ef2]167 <indexterm zone="xfsprogs mkfs.xfs">
[152fb77]168 <primary sortas="b-mkfs.xfs">mkfs.xfs</primary>
169 </indexterm>
170 </listitem>
171 </varlistentry>
172
173 <varlistentry id="xfs_admin">
174 <term><command>xfs_admin</command></term>
175 <listitem>
176 <para>changes the parameters of an XFS file system.</para>
[a3c54ef2]177 <indexterm zone="xfsprogs xfs_admin">
[152fb77]178 <primary sortas="b-xfs_admin">xfs_admin</primary>
179 </indexterm>
180 </listitem>
181 </varlistentry>
182
183 <varlistentry id="xfs_bmap">
184 <term><command>xfs_bmap</command></term>
185 <listitem>
186 <para>prints block mapping for an XFS file.</para>
[a3c54ef2]187 <indexterm zone="xfsprogs xfs_bmap">
[152fb77]188 <primary sortas="b-xfs_bmap">xfs_bmap</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="xfs_copy">
194 <term><command>xfs_copy</command></term>
195 <listitem>
[99b1c520]196 <para>copies the contents of an XFS file system
[152fb77]197 to one or more targets in parallel.</para>
[a3c54ef2]198 <indexterm zone="xfsprogs xfs_copy">
[152fb77]199 <primary sortas="b-xfs_copy">xfs_copy</primary>
200 </indexterm>
201 </listitem>
202 </varlistentry>
203
[518cff0]204 <varlistentry id="xfs_estimate">
205 <term><command>xfs_estimate</command></term>
206 <listitem>
207 <para>for each directory argument, estimates the space that directory
208 would take if it were copied to an XFS filesystem
209 (does not cross mount points).</para>
210 <indexterm zone="xfsprogs xfs_estimate">
211 <primary sortas="b-xfs_estimate">xfs_estimate</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
[152fb77]216 <varlistentry id="xfs_db">
217 <term><command>xfs_db</command></term>
218 <listitem>
219 <para>is used to debug an XFS file system.</para>
[a3c54ef2]220 <indexterm zone="xfsprogs xfs_db">
[152fb77]221 <primary sortas="b-xfs_db">xfs_db</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="xfs_freeze">
227 <term><command>xfs_freeze</command></term>
228 <listitem>
229 <para>suspends access to an XFS file system.</para>
[a3c54ef2]230 <indexterm zone="xfsprogs xfs_freeze">
[152fb77]231 <primary sortas="b-xfs_freeze">xfs_freeze</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
[518cff0]236 <varlistentry id="xfs_fsr">
237 <term><command>xfs_fsr</command></term>
238 <listitem>
239 <para>applicable only to XFS filesystems, improves the organization
240 of mounted filesystems, the reorganization algorithm operates on one
241 file at a time, compacting or othewise improving the layout of the
242 file extents (contiguous blocks of file data).</para>
243 <indexterm zone="xfsprogs xfs_fsr">
244 <primary sortas="b-xfs_fsr">xfs_fsr</primary>
245 </indexterm>
246 </listitem>
247 </varlistentry>
248
[152fb77]249 <varlistentry id="xfs_growfs">
250 <term><command>xfs_growfs</command></term>
251 <listitem>
252 <para>expands an XFS file system.</para>
[a3c54ef2]253 <indexterm zone="xfsprogs xfs_growfs">
[152fb77]254 <primary sortas="b-xfs_growfs">xfs_growfs</primary>
255 </indexterm>
256 </listitem>
257 </varlistentry>
258
259 <varlistentry id="xfs_info">
260 <term><command>xfs_info</command></term>
261 <listitem>
[99b1c520]262 <para>is equivalent to invoking <command>xfs_growfs</command>, but
[152fb77]263 specifying that no change to the file system is to be made.</para>
[a3c54ef2]264 <indexterm zone="xfsprogs xfs_info">
[152fb77]265 <primary sortas="b-xfs_info">xfs_info</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="xfs_io">
271 <term><command>xfs_io</command></term>
272 <listitem>
[99b1c520]273 <para>is a debugging tool like <command>xfs_db</command>, but is
274 aimed at examining the regular file I/O path rather than the raw
[152fb77]275 XFS volume itself.</para>
[a3c54ef2]276 <indexterm zone="xfsprogs xfs_io">
[152fb77]277 <primary sortas="b-xfs_io">xfs_io</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="xfs_logprint">
283 <term><command>xfs_logprint</command></term>
284 <listitem>
285 <para>prints the log of an XFS file system.</para>
[a3c54ef2]286 <indexterm zone="xfsprogs xfs_logprint">
[152fb77]287 <primary sortas="b-xfs_logprint">xfs_logprint</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
[5e72fc7]292 <varlistentry id="xfs_mdrestore">
293 <term><command>xfs_mdrestore</command></term>
294 <listitem>
295 <para>restores an XFS metadump image to a filesystem image.</para>
[a3c54ef2]296 <indexterm zone="xfsprogs xfs_mdrestore">
[5e72fc7]297 <primary sortas="b-xfs_mdrestore">xfs_mdrestore</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 <varlistentry id="xfs_metadump">
303 <term><command>xfs_metadump</command></term>
304 <listitem>
305 <para>copies XFS filesystem metadata to a file.</para>
[a3c54ef2]306 <indexterm zone="xfsprogs xfs_metadump">
[5e72fc7]307 <primary sortas="b-xfs_metadump">xfs_metadump</primary>
308 </indexterm>
309 </listitem>
310 </varlistentry>
311
312 <varlistentry id="xfs_mkfile">
[152fb77]313 <term><command>xfs_mkfile</command></term>
314 <listitem>
315 <para>creates an XFS file, padded with zeroes by default.</para>
[a3c54ef2]316 <indexterm zone="xfsprogs xfs_mkfile">
[152fb77]317 <primary sortas="b-xfs_mkfile">xfs_mkfile</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="xfs_ncheck">
323 <term><command>xfs_ncheck</command></term>
324 <listitem>
[99b1c520]325 <para>generates pathnames from inode numbers for an
[152fb77]326 XFS file system.</para>
[a3c54ef2]327 <indexterm zone="xfsprogs xfs_ncheck">
[152fb77]328 <primary sortas="b-xfs_ncheck">xfs_ncheck</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
[2da2e6a]333 <varlistentry id="xfs_quota">
334 <term><command>xfs_quota</command></term>
335 <listitem>
336 <para>is a utility for reporting and editing various
337 aspects of filesystem quota.</para>
[a3c54ef2]338 <indexterm zone="xfsprogs xfs_quota">
[2da2e6a]339 <primary sortas="b-xfs_quota">xfs_quota</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
[152fb77]344 <varlistentry id="xfs_repair">
345 <term><command>xfs_repair</command></term>
346 <listitem>
347 <para>repairs corrupt or damaged XFS file systems.</para>
[a3c54ef2]348 <indexterm zone="xfsprogs xfs_repair">
[152fb77]349 <primary sortas="b-xfs_repair">xfs_repair</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="xfs_rtcp">
355 <term><command>xfs_rtcp</command></term>
356 <listitem>
[99b1c520]357 <para>copies a file to the real-time partition on an
[152fb77]358 XFS file system.</para>
[a3c54ef2]359 <indexterm zone="xfsprogs xfs_rtcp">
[152fb77]360 <primary sortas="b-xfs_rtcp">xfs_rtcp</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
[3bb415b]365 <varlistentry id="xfs_spaceman">
366 <term><command>xfs_spaceman</command></term>
367 <listitem>
368 <para>reports and controls free space usage in an
369 XFS file system.</para>
370 <indexterm zone="xfsprogs xfs_spaceman">
371 <primary sortas="b-xfs_spaceman">xfs_spaceman</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
[152fb77]376 <varlistentry id="libhandle">
[a3c54ef2]377 <term><filename class="libraryfile">libhandle.so</filename></term>
[152fb77]378 <listitem>
[1ba83240]379 <para>contains XFS-specific functions that provide a way to perform
[a4b9cd7]380 certain filesystem operations without using a file descriptor to
381 access filesystem objects.</para>
[a3c54ef2]382 <indexterm zone="xfsprogs libhandle">
[152fb77]383 <primary sortas="c-libhandle">libhandle.so</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
[864b24de]387
[152fb77]388 </variablelist>
389
390 </sect2>
[f45b1953]391
392</sect1>
Note: See TracBrowser for help on using the repository browser.