Introduction to libblockdev

libblockdev is a C library supporting GObject Introspection for manipulation of block devices. It has a plugin-based architecture where each technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate plugin, possibly with multiple implementations (e.g. using LVM CLI or the new LVM DBus API).

This package is known to build and work properly using an LFS-10.1 platform.

Package Information

libblockdev Dependencies


gobject-introspection-1.68.0, libbytesize-2.5, libyaml-0.2.4, parted-3.4, and volume_key-0.3.12


btrfs-progs-5.11.1, GTK-Doc-1.33.2, mdadm-4.1, dmraid, bcachefs, and ndctl

User Notes:

Installation of libblockdev

Fix the usage of a glib function deprecated for security:

sed 's/g_memdup/&2/' -i             \
    src/lib/plugin_apis/vdo.{c,api} \

Install libblockdev by running the following commands:

./configure --prefix=/usr     \
            --sysconfdir=/etc \
            --with-python3    \
            --without-gtk-doc \
            --without-nvdimm  \
            --without-dm      &&

This package does not come with a working test suite.

Now, as the root user:

make install


Installed Programs: lvm-cache-stats
Installed Libraries:,,,,,,,,,,,,,, and
Installed Directories: /etc/libblockdev, /usr/include/blockdev, and /usr/share/gtk-doc/html/libblockdev

Short Descriptions


prints statistics on caches on LVM Logical Volumes

Last updated on 2021-04-12 00:35:02 -0500