source: general/genlib/libblockdev.xml@ 6eecc7a

trunk
Last change on this file since 6eecc7a was d4a3f02, checked in by Bruce Dubbs <bdubbs@…>, 7 days ago

Fix libblockdev URL.

  • Property mode set to 100644
File size: 8.6 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[6dcb9e77]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
[d4a3f02]8 "https://github.com/storaged-project/libblockdev/releases/download/&libblockdev-version;/libblockdev-&libblockdev-version;.tar.gz">
[6dcb9e77]9 <!ENTITY libblockdev-download-ftp " ">
[8cebdef4]10 <!ENTITY libblockdev-md5sum "60a52413f14303147c79a6f368aced92">
11 <!ENTITY libblockdev-size "1.1 MB">
12 <!ENTITY libblockdev-buildsize "16 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
[7426e905]37 &lfs122_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">
[c0bc0a9]77 <xref linkend="glib2"/> (GObject Introspection required for GNOME)
[6dcb9e77]78 </para>
79
[a4013fa]80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
[d5e4de79]82 <xref linkend="cryptsetup"/>,
83 <xref linkend="keyutils"/>,
84 <xref linkend="libbytesize"/>,
85 <xref linkend="libnvme"/>, and
86 <xref linkend="lvm2"/>
[a4013fa]87 </para>
88
[6dcb9e77]89 <bridgehead renderas="sect4">Optional</bridgehead>
90 <para role="optional">
91 <xref linkend="btrfs-progs"/>,
92 <xref linkend="gtk-doc"/>,
93 <xref linkend="mdadm"/>,
[d5e4de79]94 <xref linkend="parted"/>,
[407c671]95 <ulink url="https://github.com/felixonmars/volume_key">volume_key</ulink>,
[cbffe27]96 <ulink url="https://github.com/pmem/ndctl">ndctl</ulink>, and
97 <ulink url="https://github.com/Datera/targetcli">targetcli</ulink>
98 (for tests)
[6dcb9e77]99 </para>
100
101 </sect2>
102
103 <sect2 role="installation">
104 <title>Installation of libblockdev</title>
[8cebdef4]105<!--
[ce8e472]106 <para>
[772d443]107 First, work around a problem when using e2fsprogs-1.47.1 or later:
[ce8e472]108 </para>
109
[3eeb383f]110<screen><userinput>find -name Makefile.in -exec sed -i "s/-Werror//" {} \;</userinput></screen>
[8cebdef4]111-->
[6dcb9e77]112 <para>
113 Install <application>libblockdev</application> by running
114 the following commands:
115 </para>
116
[d5e4de79]117<screen><userinput>./configure --prefix=/usr \
118 --sysconfdir=/etc \
119 --with-python3 \
120 --without-escrow \
121 --without-gtk-doc \
122 --without-lvm \
123 --without-lvm_dbus \
124 --without-nvdimm \
125 --without-tools &amp;&amp;
[6dcb9e77]126make</userinput></screen>
127
128 <para>
[cbffe27]129 The test suite requires <application>targetcli</application>, which
130 is not a part of BLFS.
[6dcb9e77]131 </para>
132
133 <para>
134 Now, as the <systemitem class="username">root</systemitem> user:
135 </para>
136
137<screen role="root"><userinput>make install</userinput></screen>
138
139 </sect2>
[d5e4de79]140
[6dcb9e77]141 <sect2 role="commands">
142 <title>Command Explanations</title>
143
[d5e4de79]144 <para>
145 <parameter>--without-escrow</parameter>: This switch allows building
[407c671]146 <application>libblockdev</application> without volume_key installed.
[d5e4de79]147 </para>
148
149 <para>
[875b3b57]150 <parameter>--without-lvm</parameter>
151 <parameter>--without-lvm_dbus</parameter>
152 <parameter>--without-tools</parameter>: The combination of these
153 switches allows
[d5e4de79]154 building <application>libblockdev</application> without
155 <xref linkend="parted"/> installed. Remove it if you've installed
156 <xref linkend="parted"/> and wish to build the
157 <command>lvm-cache-stats</command> or <command>vfat-resize</command>
158 utilities, or wish <application>libblockdev</application> to support
159 logical volumes.
160 </para>
161
162 <para>
163 <option>--without-btrfs --without-mdraid --without-tools</option>:
164 The combination of these switches allows building
165 <application>libblockdev</application> without
166 <xref linkend="libbytesize"/> installed. The
167 <option>--without-mdraid</option> option will break
168 <xref linkend="udisks2"/>, so don't use it unless you really know what
169 you are doing.
170 </para>
171
172 <para>
173 <option>--without-crypto</option>: This switch allows building
174 <application>libblockdev</application> without
175 <xref linkend="cryptsetup"/> or <xref linkend="keyutils"/> installed.
176 This switch will break <xref linkend="udisks2"/>, so don't use it
177 unless you really know what you are doing.
178 </para>
179
180 <para>
181 <option>--without-dm --without-lvm --without-lvm_dbus
182 --without-mpath</option>: The combination of these switches allows
183 building <application>libblockdev</application> without
184 <xref linkend="lvm2"/> installed. The <option>--without-dm</option>
[2c0da0f]185 and <option>--without-mpath</option> options are not in the instructions
186 provided by the book because <xref linkend="lvm2"/> is required for
187 <xref linkend="cryptsetup"/> and <xref linkend="cryptsetup"/> is a
188 recommended dependency of <application>libblockdev</application> anyway.
[d5e4de79]189 </para>
190
191 <para>
192 <option>--without-nvme</option>: This switch allows building
193 <application>libblockdev</application> without
194 <xref linkend="libnvme"/> installed. This switch will break
195 <xref linkend="udisks2"/>, so don't use it unless you really know what
196 you are doing.
197 </para>
[6dcb9e77]198
199 </sect2>
[d5e4de79]200
[6dcb9e77]201 <sect2 role="content">
202 <title>Contents</title>
203
204 <segmentedlist>
205 <segtitle>Installed Programs</segtitle>
206 <segtitle>Installed Libraries</segtitle>
207 <segtitle>Installed Directories</segtitle>
208
209 <seglistitem>
210 <seg>
[d5e4de79]211 lvm-cache-stats and vfat-resize (both optional)
[6dcb9e77]212 </seg>
213 <seg>
[8558044]214 libbd_btrfs.so,
[6dcb9e77]215 libbd_crypto.so,
[d5e4de79]216 libbd_dm.so,
[8558044]217 libbd_fs.so,
[6dcb9e77]218 libbd_loop.so,
[d5e4de79]219 libbd_lvm.so (optional),
220 libbd_lvm-dbus.so (optional),
[6dcb9e77]221 libbd_mdraid.so,
222 libbd_mpath.so,
[d5e4de79]223 libbd_nvme.so,
[6dcb9e77]224 libbd_part.so,
225 libbd_swap.so,
[d5e4de79]226 libbd_utils.so, and
[6dcb9e77]227 libblockdev.so
228 </seg>
229 <seg>
[fa30d84]230 /etc/libblockdev,
231 /usr/include/blockdev, and
[d5e4de79]232 /usr/share/gtk-doc/html/libblockdev (optional)
[6dcb9e77]233 </seg>
234 </seglistitem>
235 </segmentedlist>
[4163b584]236
[6dcb9e77]237 <variablelist>
238 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
239 <?dbfo list-presentation="list"?>
240 <?dbhtml list-presentation="table"?>
241
[4163b584]242 <varlistentry id="lvm-cache-stats">
243 <term><command>lvm-cache-stats</command></term>
[6dcb9e77]244 <listitem>
245 <para>
[4c24eb0a]246 prints statistics on caches on LVM Logical Volumes
[6dcb9e77]247 </para>
[4163b584]248 <indexterm zone="libblockdev lvm-cache-stats">
249 <primary sortas="b-lvm-cache-stats">lvm-cache-stats</primary>
[6dcb9e77]250 </indexterm>
251 </listitem>
252 </varlistentry>
253
[d5e4de79]254 <varlistentry id="vfat-resize">
255 <term><command>vfat-resize</command></term>
256 <listitem>
257 <para>
258 resizes <systemitem class="filesystem">vfat</systemitem>
259 file systems
260 </para>
261 <indexterm zone="libblockdev vfat-resize">
262 <primary sortas="b-vfat-resize">vfat-resize</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
[6dcb9e77]266 </variablelist>
[4163b584]267
[6dcb9e77]268 </sect2>
269
270</sect1>
Note: See TracBrowser for help on using the repository browser.