source: general/genlib/libblockdev.xml@ 66f1dbd

12.1 ken/TL2024 lazarus plabs/newcss rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 66f1dbd was 875b3b57, checked in by Pierre Labastie <pierre.labastie@…>, 7 months ago

Fix various option vs parameter problems

Sometimes there is no really a problem, but alos avoids that
automatic detection with "make test-options" return false positives

  • Property mode set to 100644
File size: 8.8 KB
RevLine 
[6dcb9e77]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 libblockdev-download-http
[5bffcec7]8 "https://github.com/storaged-project/libblockdev/releases/download/&libblockdev-version;-1/libblockdev-&libblockdev-version;.tar.gz">
[6dcb9e77]9 <!ENTITY libblockdev-download-ftp " ">
[bb79f7c]10 <!ENTITY libblockdev-md5sum "74eed189c000cb3b0194c73c425c418c">
[a4013fa]11 <!ENTITY libblockdev-size "1.0 MB">
[407c671]12 <!ENTITY libblockdev-buildsize "13 MB">
[a4013fa]13 <!ENTITY libblockdev-time "0.1 SBU">
[6dcb9e77]14]>
15
16<sect1 id="libblockdev" xreflabel="libblockdev-&libblockdev-version;">
17 <?dbhtml filename="libblockdev.html"?>
18
19
20 <title>libblockdev-&libblockdev-version;</title>
21
22 <indexterm zone="libblockdev">
23 <primary sortas="a-libblockdev">libblockdev</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to libblockdev</title>
28
29 <para>
[0ecaac7]30 libblockdev is a C library supporting GObject Introspection for
[6dcb9e77]31 manipulation of block devices. It has a plugin-based architecture where
32 each technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a
33 separate plugin, possibly with multiple implementations (e.g. using LVM
34 CLI or the new LVM DBus API).
35 </para>
36
[6aa631b]37 &lfs120_checked;
[6dcb9e77]38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&libblockdev-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&libblockdev-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &libblockdev-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &libblockdev-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &libblockdev-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &libblockdev-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">libblockdev Dependencies</bridgehead>
74
75 <bridgehead renderas="sect4">Required</bridgehead>
76 <para role="required">
[d5e4de79]77 <xref linkend="glib2"/>
[6dcb9e77]78 </para>
79
[a4013fa]80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
[d5e4de79]82 <xref linkend="cryptsetup"/>,
83 <xref linkend="gobject-introspection"/> (required for GNOME),
84 <xref linkend="keyutils"/>,
85 <xref linkend="libbytesize"/>,
86 <xref linkend="libnvme"/>, and
87 <xref linkend="lvm2"/>
[a4013fa]88 </para>
89
[6dcb9e77]90 <bridgehead renderas="sect4">Optional</bridgehead>
91 <para role="optional">
92 <xref linkend="btrfs-progs"/>,
93 <xref linkend="gtk-doc"/>,
94 <xref linkend="mdadm"/>,
[d5e4de79]95 <xref linkend="parted"/>,
[407c671]96 <ulink url="https://github.com/felixonmars/volume_key">volume_key</ulink>,
97<!-- <xref linkend="volume_key"/>,-->
[8040828]98<!-- <ulink url="https://people.redhat.com/~heinzm/sw/dmraid/">dmraid</ulink>, -->
99<!-- <ulink url="https://bcachefs.org/">bcachefs</ulink>, -->
[cbffe27]100 <ulink url="https://github.com/pmem/ndctl">ndctl</ulink>, and
101 <ulink url="https://github.com/Datera/targetcli">targetcli</ulink>
102 (for tests)
[6dcb9e77]103 </para>
104
105 </sect2>
106
107 <sect2 role="installation">
108 <title>Installation of libblockdev</title>
[ca31bd3]109<!--
[ce8e472]110 <para>
111 Fix the usage of a glib function deprecated for security:
112 </para>
113
114<screen><userinput>sed 's/g_memdup/&amp;2/' -i \
115 src/lib/plugin_apis/vdo.{c,api} \
116 src/plugins/vdo.c</userinput></screen>
[ca31bd3]117-->
[6dcb9e77]118 <para>
119 Install <application>libblockdev</application> by running
120 the following commands:
121 </para>
122
[d5e4de79]123<screen><userinput>./configure --prefix=/usr \
124 --sysconfdir=/etc \
125 --with-python3 \
126 --without-escrow \
127 --without-gtk-doc \
128 --without-lvm \
129 --without-lvm_dbus \
130 --without-nvdimm \
131 --without-tools &amp;&amp;
[6dcb9e77]132make</userinput></screen>
133
134 <para>
[cbffe27]135 The test suite requires <application>targetcli</application>, which
136 is not a part of BLFS.
[6dcb9e77]137 </para>
138
139 <para>
140 Now, as the <systemitem class="username">root</systemitem> user:
141 </para>
142
143<screen role="root"><userinput>make install</userinput></screen>
144
145 </sect2>
[d5e4de79]146
[6dcb9e77]147 <sect2 role="commands">
148 <title>Command Explanations</title>
149
[d5e4de79]150 <para>
151 <parameter>--without-escrow</parameter>: This switch allows building
[407c671]152 <application>libblockdev</application> without volume_key installed.
[d5e4de79]153 </para>
154
155 <para>
[875b3b57]156 <parameter>--without-lvm</parameter>
157 <parameter>--without-lvm_dbus</parameter>
158 <parameter>--without-tools</parameter>: The combination of these
159 switches allows
[d5e4de79]160 building <application>libblockdev</application> without
161 <xref linkend="parted"/> installed. Remove it if you've installed
162 <xref linkend="parted"/> and wish to build the
163 <command>lvm-cache-stats</command> or <command>vfat-resize</command>
164 utilities, or wish <application>libblockdev</application> to support
165 logical volumes.
166 </para>
167
168 <para>
169 <option>--without-btrfs --without-mdraid --without-tools</option>:
170 The combination of these switches allows building
171 <application>libblockdev</application> without
172 <xref linkend="libbytesize"/> installed. The
173 <option>--without-mdraid</option> option will break
174 <xref linkend="udisks2"/>, so don't use it unless you really know what
175 you are doing.
176 </para>
177
178 <para>
179 <option>--without-crypto</option>: This switch allows building
180 <application>libblockdev</application> without
181 <xref linkend="cryptsetup"/> or <xref linkend="keyutils"/> installed.
182 This switch will break <xref linkend="udisks2"/>, so don't use it
183 unless you really know what you are doing.
184 </para>
185
186 <para>
187 <option>--without-dm --without-lvm --without-lvm_dbus
188 --without-mpath</option>: The combination of these switches allows
189 building <application>libblockdev</application> without
190 <xref linkend="lvm2"/> installed. The <option>--without-dm</option>
[2c0da0f]191 and <option>--without-mpath</option> options are not in the instructions
192 provided by the book because <xref linkend="lvm2"/> is required for
193 <xref linkend="cryptsetup"/> and <xref linkend="cryptsetup"/> is a
194 recommended dependency of <application>libblockdev</application> anyway.
[d5e4de79]195 </para>
196
197 <para>
198 <option>--without-nvme</option>: This switch allows building
199 <application>libblockdev</application> without
200 <xref linkend="libnvme"/> installed. This switch will break
201 <xref linkend="udisks2"/>, so don't use it unless you really know what
202 you are doing.
203 </para>
[6dcb9e77]204
205 </sect2>
[d5e4de79]206
[6dcb9e77]207 <sect2 role="content">
208 <title>Contents</title>
209
210 <segmentedlist>
211 <segtitle>Installed Programs</segtitle>
212 <segtitle>Installed Libraries</segtitle>
213 <segtitle>Installed Directories</segtitle>
214
215 <seglistitem>
216 <seg>
[d5e4de79]217 lvm-cache-stats and vfat-resize (both optional)
[6dcb9e77]218 </seg>
219 <seg>
[8558044]220 libbd_btrfs.so,
[6dcb9e77]221 libbd_crypto.so,
[d5e4de79]222 libbd_dm.so,
[8558044]223 libbd_fs.so,
[6dcb9e77]224 libbd_loop.so,
[d5e4de79]225 libbd_lvm.so (optional),
226 libbd_lvm-dbus.so (optional),
[6dcb9e77]227 libbd_mdraid.so,
228 libbd_mpath.so,
[d5e4de79]229 libbd_nvme.so,
[6dcb9e77]230 libbd_part.so,
231 libbd_swap.so,
[d5e4de79]232 libbd_utils.so, and
[6dcb9e77]233 libblockdev.so
234 </seg>
235 <seg>
[fa30d84]236 /etc/libblockdev,
237 /usr/include/blockdev, and
[d5e4de79]238 /usr/share/gtk-doc/html/libblockdev (optional)
[6dcb9e77]239 </seg>
240 </seglistitem>
241 </segmentedlist>
[4163b584]242
[6dcb9e77]243 <variablelist>
244 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
245 <?dbfo list-presentation="list"?>
246 <?dbhtml list-presentation="table"?>
247
[4163b584]248 <varlistentry id="lvm-cache-stats">
249 <term><command>lvm-cache-stats</command></term>
[6dcb9e77]250 <listitem>
251 <para>
[4c24eb0a]252 prints statistics on caches on LVM Logical Volumes
[6dcb9e77]253 </para>
[4163b584]254 <indexterm zone="libblockdev lvm-cache-stats">
255 <primary sortas="b-lvm-cache-stats">lvm-cache-stats</primary>
[6dcb9e77]256 </indexterm>
257 </listitem>
258 </varlistentry>
259
[d5e4de79]260 <varlistentry id="vfat-resize">
261 <term><command>vfat-resize</command></term>
262 <listitem>
263 <para>
264 resizes <systemitem class="filesystem">vfat</systemitem>
265 file systems
266 </para>
267 <indexterm zone="libblockdev vfat-resize">
268 <primary sortas="b-vfat-resize">vfat-resize</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
[6dcb9e77]272 </variablelist>
[4163b584]273
[6dcb9e77]274 </sect2>
275
276</sect1>
Note: See TracBrowser for help on using the repository browser.