]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: read from udev, add --disable-libmount-udev-support
authorKarel Zak <kzak@redhat.com>
Tue, 25 Nov 2025 11:56:07 +0000 (12:56 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Dec 2025 10:27:30 +0000 (11:27 +0100)
commit8bdc2546d38979ca65fa9bfd1bbd6e7b985c69db
tree210633336a026cab24602cec0e0ace5d963381ec
parent41521056a67bcd5c179b15df9e09265aba8ec732
libmount: read from udev, add --disable-libmount-udev-support

The library traditionally uses libblkid to obtain device properties
(such as FS-type if not specified). This can be a relatively costly
operation to scan the device and requires read access to the device.

All relevant libblkid information is usually cached by the udev DB.
This commit adds the possibility to reuse the information from udev,
with a fallback to libblkid if udev is not available.

The commit also adds

 $ ./configure --disable-libmount-udev-support
 $ meson setup build -Dbuild-libmount-udev-support=disabled

to completely disable this feature and avoid libmount's dependence
on libsystemd.

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
libmount/meson.build
libmount/src/Makemodule.am
libmount/src/cache.c
libmount/src/version.c
meson.build
meson_options.txt