]> git.ipfire.org Git - thirdparty/systemd.git/commit
blockdev-util: add correct API for detecting if block device has partition scanning...
authorLennart Poettering <lennart@poettering.net>
Thu, 6 Aug 2020 08:31:19 +0000 (10:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Aug 2020 08:29:43 +0000 (10:29 +0200)
commite8467cd31c9d5da28c31a6559fbe40ccb663fa7f
treed00e904a598b183d91c6734de429a777cfeb805a
parent96a4ce9f1d4fe5e28dfe04d5002b6e1b04338b67
blockdev-util: add correct API for detecting if block device has partition scanning enabled

Instead of checking the loopback ioctls, let's check sysfs, so that we
catch all kinds of block devices, not just loopback block devices.
src/basic/blockdev-util.c
src/basic/blockdev-util.h