[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 " ">
|
---|
[ca31bd3] | 10 | <!ENTITY libblockdev-md5sum "d022c1ebb9b9a838c1a8c8b2b781b69d">
|
---|
[c513d6e6] | 11 | <!ENTITY libblockdev-size "912 KB">
|
---|
[ca31bd3] | 12 | <!ENTITY libblockdev-buildsize "12 MB">
|
---|
[9e629a4] | 13 | <!ENTITY libblockdev-time "0.2 SBU">
|
---|
[6dcb9e77] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="libblockdev" xreflabel="libblockdev-&libblockdev-version;">
|
---|
| 17 | <?dbhtml filename="libblockdev.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libblockdev-&libblockdev-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libblockdev">
|
---|
| 26 | <primary sortas="a-libblockdev">libblockdev</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libblockdev</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
[0ecaac7] | 33 | libblockdev is a C library supporting GObject Introspection for
|
---|
[6dcb9e77] | 34 | manipulation of block devices. It has a plugin-based architecture where
|
---|
| 35 | each technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a
|
---|
| 36 | separate plugin, possibly with multiple implementations (e.g. using LVM
|
---|
| 37 | CLI or the new LVM DBus API).
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[de22bfa] | 40 | &lfs111_checked;
|
---|
[6dcb9e77] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&libblockdev-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&libblockdev-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &libblockdev-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &libblockdev-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &libblockdev-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &libblockdev-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect3">libblockdev Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 79 | <para role="required">
|
---|
| 80 | <xref linkend="gobject-introspection"/>,
|
---|
[8558044] | 81 | <xref linkend="libbytesize"/>,
|
---|
[b738ceb] | 82 | <xref linkend="libyaml"/>,
|
---|
[8558044] | 83 | <xref linkend="parted"/>, and
|
---|
[b738ceb] | 84 | <xref linkend="volume_key"/>
|
---|
[6dcb9e77] | 85 | </para>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 88 | <para role="optional">
|
---|
| 89 | <xref linkend="btrfs-progs"/>,
|
---|
| 90 | <xref linkend="gtk-doc"/>,
|
---|
| 91 | <xref linkend="mdadm"/>,
|
---|
[c6b192c] | 92 | <ulink url="https://people.redhat.com/~heinzm/sw/dmraid/">dmraid</ulink>,
|
---|
[8ca7994] | 93 | <ulink url="http://bcachefs.org/">bcachefs</ulink>, and
|
---|
[16dc2c74] | 94 | <ulink url="https://github.com/pmem/ndctl">ndctl</ulink>
|
---|
[6dcb9e77] | 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <para condition="html" role="usernotes">User Notes:
|
---|
| 98 | <ulink url="&blfs-wiki;/libblockdev"/>
|
---|
| 99 | </para>
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="installation">
|
---|
| 103 | <title>Installation of libblockdev</title>
|
---|
[ca31bd3] | 104 | <!--
|
---|
[ce8e472] | 105 | <para>
|
---|
| 106 | Fix the usage of a glib function deprecated for security:
|
---|
| 107 | </para>
|
---|
| 108 |
|
---|
| 109 | <screen><userinput>sed 's/g_memdup/&2/' -i \
|
---|
| 110 | src/lib/plugin_apis/vdo.{c,api} \
|
---|
| 111 | src/plugins/vdo.c</userinput></screen>
|
---|
[ca31bd3] | 112 | -->
|
---|
[6dcb9e77] | 113 | <para>
|
---|
| 114 | Install <application>libblockdev</application> by running
|
---|
| 115 | the following commands:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
[60ddbaf] | 118 | <screen><userinput>./configure --prefix=/usr \
|
---|
[ce794256] | 119 | --sysconfdir=/etc \
|
---|
[66d9ef8] | 120 | --with-python3 \
|
---|
| 121 | --without-gtk-doc \
|
---|
[16dc2c74] | 122 | --without-nvdimm \
|
---|
[ce794256] | 123 | --without-dm &&
|
---|
[6dcb9e77] | 124 | make</userinput></screen>
|
---|
| 125 |
|
---|
| 126 | <para>
|
---|
[453073a8] | 127 | This package does not come with a working test suite.
|
---|
[6dcb9e77] | 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <para>
|
---|
| 131 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 132 | </para>
|
---|
| 133 |
|
---|
| 134 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 135 |
|
---|
| 136 | </sect2>
|
---|
| 137 | <!--
|
---|
| 138 | <sect2 role="commands">
|
---|
| 139 | <title>Command Explanations</title>
|
---|
| 140 |
|
---|
| 141 |
|
---|
| 142 | </sect2>
|
---|
| 143 | -->
|
---|
| 144 | <sect2 role="content">
|
---|
| 145 | <title>Contents</title>
|
---|
| 146 |
|
---|
| 147 | <segmentedlist>
|
---|
| 148 | <segtitle>Installed Programs</segtitle>
|
---|
| 149 | <segtitle>Installed Libraries</segtitle>
|
---|
| 150 | <segtitle>Installed Directories</segtitle>
|
---|
| 151 |
|
---|
| 152 | <seglistitem>
|
---|
| 153 | <seg>
|
---|
[4163b584] | 154 | lvm-cache-stats
|
---|
[6dcb9e77] | 155 | </seg>
|
---|
| 156 | <seg>
|
---|
[8558044] | 157 | libbd_btrfs.so,
|
---|
[6dcb9e77] | 158 | libbd_crypto.so,
|
---|
[8558044] | 159 | libbd_fs.so,
|
---|
[6dcb9e77] | 160 | libbd_kbd.so,
|
---|
| 161 | libbd_loop.so,
|
---|
| 162 | libbd_lvm.so,
|
---|
| 163 | libbd_lvm-dbus.so,
|
---|
| 164 | libbd_mdraid.so,
|
---|
| 165 | libbd_mpath.so,
|
---|
| 166 | libbd_part.so,
|
---|
| 167 | libbd_part_err.so,
|
---|
| 168 | libbd_swap.so,
|
---|
[4163b584] | 169 | libbd_utils.so,
|
---|
| 170 | libbd_vdo.so, and
|
---|
[6dcb9e77] | 171 | libblockdev.so
|
---|
| 172 | </seg>
|
---|
| 173 | <seg>
|
---|
[fa30d84] | 174 | /etc/libblockdev,
|
---|
| 175 | /usr/include/blockdev, and
|
---|
| 176 | /usr/share/gtk-doc/html/libblockdev
|
---|
[6dcb9e77] | 177 | </seg>
|
---|
| 178 | </seglistitem>
|
---|
| 179 | </segmentedlist>
|
---|
[4163b584] | 180 |
|
---|
[6dcb9e77] | 181 | <variablelist>
|
---|
| 182 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 183 | <?dbfo list-presentation="list"?>
|
---|
| 184 | <?dbhtml list-presentation="table"?>
|
---|
| 185 |
|
---|
[4163b584] | 186 | <varlistentry id="lvm-cache-stats">
|
---|
| 187 | <term><command>lvm-cache-stats</command></term>
|
---|
[6dcb9e77] | 188 | <listitem>
|
---|
| 189 | <para>
|
---|
[4c24eb0a] | 190 | prints statistics on caches on LVM Logical Volumes
|
---|
[6dcb9e77] | 191 | </para>
|
---|
[4163b584] | 192 | <indexterm zone="libblockdev lvm-cache-stats">
|
---|
| 193 | <primary sortas="b-lvm-cache-stats">lvm-cache-stats</primary>
|
---|
[6dcb9e77] | 194 | </indexterm>
|
---|
| 195 | </listitem>
|
---|
| 196 | </varlistentry>
|
---|
| 197 |
|
---|
| 198 | </variablelist>
|
---|
[4163b584] | 199 |
|
---|
[6dcb9e77] | 200 | </sect2>
|
---|
| 201 |
|
---|
| 202 | </sect1>
|
---|