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).
LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。
ダウンロード (HTTP): https://github.com/storaged-project/libblockdev/releases/download/3.0.4-1/libblockdev-3.0.4.tar.gz
ダウンロード MD5 sum: 74eed189c000cb3b0194c73c425c418c
ダウンロードサイズ: 1.0 MB
必要ディスク容量: 13 MB
概算ビルド時間: 0.1 SBU
cryptsetup-2.6.1, gobject-introspection-1.78.1 (GNOME にて必要), keyutils-1.6.1, libbytesize-2.10, libnvme-1.7.1, LVM2-2.03.23
btrfs-progs-6.6.1, GTK-Doc-1.33.2, mdadm-4.2, parted-3.6, volume_key, ndctl, targetcli (for tests)
以下のコマンドを実行して libblockdev をビルドします。
./configure --prefix=/usr \ --sysconfdir=/etc \ --with-python3 \ --without-escrow \ --without-gtk-doc \ --without-lvm \ --without-lvm_dbus \ --without-nvdimm \ --without-tools && make
The test suite requires targetcli, which is not a part of BLFS.
root
ユーザーになって以下を実行します。
make install
--without-escrow
: This
switch allows building libblockdev
without volume_key installed.
--without-lvm
--without-lvm_dbus
--without-tools
: The combination of
these switches allows building libblockdev without parted-3.6
installed. Remove it if you've installed parted-3.6 and wish
to build the lvm-cache-stats or vfat-resize utilities, or wish
libblockdev to support logical
volumes.
--without-btrfs --without-mdraid
--without-tools
: The combination of these switches allows
building libblockdev without
libbytesize-2.10 installed. The --without-mdraid
option will break UDisks-2.10.1, so
don't use it unless you really know what you are doing.
--without-crypto
: This switch allows
building libblockdev without
cryptsetup-2.6.1 or keyutils-1.6.1
installed. This switch will break UDisks-2.10.1, so don't
use it unless you really know what you are doing.
--without-dm --without-lvm --without-lvm_dbus
--without-mpath
: The combination of these switches allows
building libblockdev without
LVM2-2.03.23 installed. The --without-dm
and --without-mpath
options are not in the instructions
provided by the book because LVM2-2.03.23 is
required for cryptsetup-2.6.1 and cryptsetup-2.6.1 is a recommended dependency
of libblockdev anyway.
--without-nvme
: This switch allows
building libblockdev without
libnvme-1.7.1 installed. This switch will break
UDisks-2.10.1, so don't use it unless you
really know what you are doing.